User:Chenzw/monobook.js

From Simple English Wikipedia, the free encyclopedia

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
var popupFixRedirs=true;
var popupFixDabs=true;
var popupAdminLinks=true;

$(document).ready(function () {
  if (mw.config.get("wgCanonicalNamespace") == 'User_talk' || mw.config.get("wgCanonicalNamespace") == 'User') {
  	mw.util.addPortletLink('p-tb', mw.config.get("wgServer") + mw.config.get("wgScript") + '?title=Special:PrefixIndex/'
  	  + mw.config.get("wgPageName") + '/', 'Subpages', 't-subpages', 'Subpages');
    mw.util.addPortletLink('p-tb', mw.config.get("wgServer") + mw.config.get("wgScript") + '?title=Special:Contributions/'
      + mw.config.get("wgRelevantUserName") + "&bot=1", 'Bot rollback', 't-roll', 'Bot rollback');
} else if (mw.config.get("wgCanonicalNamespace") === "") {
	mw.util.addPortletLink('p-tb', 'https://tools.wmflabs.org/refill/result.php?page=' + encodeURIComponent(mw.config.get("wgPageName")) + '&defaults=y&nowatch=y&wiki=simple', 'reFill');
}
mw.util.addPortletLink('p-tb', mw.config.get("wgServer") + mw.config.get("wgScript") + '?title=Special:BlockList', 'Blocked addresses and users', 't-bl', 'Blocked addresses and users');
}
);

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/rollbackSummary.js&action=raw&ctype=text/javascript');

importScript('User:Chenzw/quickblock.js');

mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ShowMessageNames.js&action=raw&ctype=text/javascript' );

mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:DannyS712/Undo.js&action=raw&ctype=text/javascript' );