FANDOM


//
//Originally by Deadcoder
//Optimized and modified by Kangaroopower
//Later fixed by Ismael777
//Consolidated by Deadcoder
$(function(){
   var translateButton = ' <button id="TranslateButton" class="wikia-button" style="background-color:#BB00BB;color:#00FF00; font-weight:800; vertical-align:top; padding:0.5em;"> A / 穴 </button>';
   $("#WikiaSearch").after(translateButton);
   $("#searchBody").after(translateButton);
 
   $("#TranslateButton").click(function(){
      var url = "http://translate.google.com/translate?hl=" + mw.config.get("wgUserLanguage") + "&sl=" + mw.config.get("wgPageContentLanguage") + "&u=" + location.href;
 
         window.open(url);
   });
});
 
 
$('#PowerShareMenu').ready(function(){
   $('#PowerShareMenu').append('<button id="ShareTranslateButton" class="wikia-button" style="font-weight:800; width:6em; background-color:#BB00BB;color:#00FF00; height:6em; padding:0.5em; vertical-align:top;"> A / 穴 </button>');
   $('#ShareTranslateButton').click(function(){
   window.open( "http://translate.google.com/translate?hl=" + mw.config.get("wgUserLanguage") + "&sl=" + mw.config.get("wgPageContentLanguage") + "&u=" + location.href );
   });
   $('#TranslateButton').remove();
});
//

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.