Jump to content

User:CnkALTDS/global.js

From Meta, a Wikimedia project coordination wiki

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
function importAnyScript(lang,family,script) {
	mw.loader.load('https://'
		+ lang + '.'
		+ family + '.org/w/index.php?title='
		+ script + '&action=raw&ctype=text/javascript');
}
 
importAnyScript('meta','wikimedia','User:Mike.lifeguard/removeSpam.js');
mw.loader.load('//meta.wikimedia.org/wiki/User:Erwin/stewardlinks.js&action=raw&ctype=text/javascript&dontcountme=s'); 

/************
*** XWikiRollback
*** by [[m:User:Erwin]]
*************/
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Erwin/xwikirollback.js&action=raw&ctype=text/javascript');
 
/************
*** [[User:Lupin/popups.js]] 
*** by [[en:User:Lupin]]
*************/
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');

mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');


// -- Auto Message --
if (mwCustomEditButtons) {
 
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b0/EXPBT1.png",
      "speedTip": "Please stop",
      "tagOpen": "Please stop vandalizing on pages! Thank you. Best, --\x7E\x7E\x7E\x7E",
      "tagClose": "",
      "sampleText": ""};
};

// Add contribution tools (SULutil, X!'s tool, global contributions) to toolbox.
function addContribTools(username) {
   addOnloadHook(function() {
      mw.util.addPortletLink('p-tb', 'http://toolserver.org/~vvv/sulutil.php?user=' + username, 'SULutil', 't-sul', 'SULutil', '', document.getElementById('t-log')); 
      mw.util.addPortletLink('p-tb', 'http://toolserver.org/~soxred93/pcount/index.php?name=' + username + '&lang=' + langCode + '&wiki=' + wikiCode, 'X!\'s tool', 't-soxred', 'X!\'s tool', '', document.getElementById('t-sul'));
      mw.util.addPortletLink('p-tb', 'http://toolserver.org/~luxo/contributions/contributions.php?user=' + username + '&blocks=true', 'Global contribs', 't-luxo', 'Global contribs', '', document.getElementById('t-soxred'));
   });
}
 
if(wgCanonicalNamespace == 'User' || wgCanonicalNamespace == 'User_talk') {
  addContribTools(wgTitle);
}