MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ // extension req //v3.0 Originally by User:fngplg. modified by User:Vish in 2021 //set active tab: https://jojowiki.com/page#activeTab (function ($){   var nstarget = window.location.hash.replace('#', );    if (nstarget === ) return;    //convert wiki-utf 2 ansi    nstarget = nstarget.replace(/\./g, '%');    nstarget = decodeURIComponent(nstarget).replace(/_/g, ' ');    //console.log('trgt:'+nstarget);    $(function{ setTimeout(function {           var nt2a = $('.tabberlive>.tabbernav>li>a[title="' + nstarget + '"]');            if(nt2a.get(0) !== undefined) {            	nt2a.click;            	nt2a.get(0).scrollIntoView({inline: "nearest"});        	}        }, 100);//settimeout });//doc.rdy   })(jQuery);

window.hotcat_use_category_links = false;

/** * @source https://www.mediawiki.org/wiki/Snippets/Open_specific_links_in_new_window * @version 2018-09-15 */ $( function {	$( '#mw-content-text' ).on( 'click', '.newwin > a', function  { var otherWindow = window.open; otherWindow.opener = null; otherWindow.location = this; return false; } ); } );

/* setTimeout(function{0===document.documentElement.scrollTop&&0===document.body.scrollTop||function{if(document.getElementById("div-gpt-ad-jjw-1").hasChildNodes == false){var e=document.getElementById("sidepic");e.style.backgroundImage="url('https://static.jojowiki.com/customizations/SpeedwagonMsg.png')",e.style.backgroundRepeat="no-repeat",e.style.height="600px"}}},4800);

setTimeout(function{0===document.documentElement.scrollTop&&0===document.body.scrollTop||function{if(document.getElementById("div-gpt-ad-jjw-3").hasChildNodes == false){var e=document.getElementById("bottomthree");e.style.backgroundImage="url('https://static.jojowiki.com/customizations/JotaroJosukeMsg.png')",e.style.backgroundRepeat="no-repeat",e.style.height="280px",e.style.backgroundPosition="center"}}},12800);