Jump to content

User:Barras/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.
/*****************************
*** On all wikis
*****************************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/removeSpam.js&action=raw&ctype=text/javascript');

/**
 * Ajax sysop
 * @see https://meta.wikimedia.org/wiki/Ajax_sysop
 * @update-token [[File:pathoschild/ajaxsysop.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

/**
 * Forces left-to-right layout and editing on RTL wikis.
 * @see https://meta.wikimedia.org/wiki/Force_ltr
 * @update-token [[File:pathoschild/forceltr.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');

/************
*** XWikiRollback
*** by [[m:User:Erwin]]
*************/
mw.loader.load('//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('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');

/**********
*** StewardLinks
*** by [[m:User:Erwin]]
**********/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Erwin/stewardlinks.js&action=raw&ctype=text/javascript');


mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:MarcoAurelio/bpi.js&action=raw&ctype=text/javascript');

/*************
*** Page tagger
*** by m:User:Hoo_man
***************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript');

/*************
*** Active sysops
*** by m:User:Hoo_man ([[File:Hoo man/active_sysops.js]])
***************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');

/**************
*** Smart rollback
*** by m:User:Hoo_man ([[File:Hoo man/smart_rollback.js]])
***************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');


/*****************************
*** On specific wikis
*****************************/
switch(mw.config.get('wgDBname')) {

	/* meta.wikimedia.org */
	case 'metawiki':
		var disable_activeSysops = true;
		$('#pt-betafeatures').hide();

		/**
		 * StewardScript extends the user interface for Wikimedia stewards' convenience.
		 * @see https://meta.wikimedia.org/wiki/StewardScript
		 * @update-token [[File:pathoschild/stewardscript.js]]
		 */
		mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.stewardscript.js');

		/**
		* Fixes bug T47412; Links in block reason on [[Special:CentralAuth]] link to the local wiki
		* Thanks to the volunteer for that script!
		**/
		mw.loader.load('//www.mediawiki.org/w/index.php?title=User:PerfektesChaos/js/fixCentralAuthLocalLinks.js&action=raw&bcache=1&ctype=text/javascript');

		/**
		* To not forget a reason when doing a global rename
		* Thanks to User:DerHexer for the script
		**/
		if ((mw.config.get('wgCanonicalSpecialPageName') === "GlobalRenameQueue") && document.getElementById('mw-renamequeue-reason')) document.getElementById('mw-renamequeue-reason').value = 'see [[m:'+mw.config.get('wgPageName')+']]';
		break;

		importScript('User:Barras/prosesize.js'); //[[User:Barras/prosesize.js]]
		importScript('User:Grunny/ajaxquickrfdclose.js'); //[[User:Grunny/ajaxquickrfdclose.js]]
		break;
}