Jump to content

User:Chrs/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Chrs (talk | contribs) at 16:45, 8 April 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if(mw.config.get("wgPageName") == "Wikipedia:Miscellany_for_deletion" && !window.location.hash && !window.location.pathname.includes("index.php")) { 
	window.location = window.location.origin + window.location.pathname + "#toc"
}

if(mw.config.get("wgPageName") != "Main_Page"){
	mw.loader.load( '/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript' );
}

$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-interaction',
    'https://en.wikipedia.org/w/index.php?title=Special:Log&limit=500&type=newusers&subtype=create',
    'Recent new users',
    't-newusers',
    'New users log'
  );
});