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.
/*
 * This is my global JavaScript.
 * It is used on all wikis by default. My global Vector skin is here: [[User:Church_of_emacs/global-vector.js]]
 */

/*****************************
** On all wikis
*****************************/
/**
 * 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');

/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/wiki/TemplateScript
 * @update-token [[File:pathoschild/templatescript.js]]
 */
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
	pathoschild.TemplateScript.add([
		{ name: 'delNoArti', template: '{{delete|No article --[[m:User:Church of emacs|Church of emacs]] ([[m:User talk:Church of emacs|contact me]])}}' },
	]);
});
// </nowiki>

/**
 * Ajax sysop
 * @see https://meta.wikimedia.org/wiki/Ajax_sysop
 * @update-token [[File:pathoschild/ajaxsysop.js]]
 */
//Currently not used, but might be useful someday
//mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

/**
 * UTC clock
 * by [[w:User:AzaToth]]
 */
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');

//User:Mike.lifeguard/remote.js
//modrollback.js
//By GeorgeMoney
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/remote.js&action=raw&ctype=text/javascript');


/*****************************
** On specific wikis
*****************************/
switch(mw.config.get('wgDBname')) {
	/* de.wikipedia.org */
	case 'dewiki':
		/*
		*  addPurge():
		*
		*  Adds a tab allowing you to purge the page
		*
		*  Author: [[:en:User:ABCD]]
		*  copied 2007/02/21
		*  Modifiziert für de.WP von [[Benutzer:PDD]]
		*
		*  (http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Add_purge_to_tabs)
		*/
		$(function() {
			var hist;
			var url;
			if (!(hist = document.getElementById('ca-history') )) return;
			if (!(url = hist.getElementsByTagName('a')[0] )) return;
			if (!(url = url.href )) return;
			mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'Purge', 'ca-purge', 'Purge server cache for this page', '0');
		});
	break;
	
	/* en.wikipedia.org */
	case 'enwiki':
		mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');

		// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PDD/godmode-light.js&action=raw&ctype=text/javascript'); // [[User:PDD/godmode-light.js]]

		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PDD/markAdmins.js&action=raw&ctype=text/javascript'); // [[User:PDD/markAdmins.js]]
		
		// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ais523/topcontrib.js&action=raw&ctype=text/javascript'); // [[User:Ais523/topcontrib.js]]
		
		window.TwinkleConfig = {
		        userTalkPageMode                :       'blank',
		        watchRevertedPages              :        [ ],
		};

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

		mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs&action=raw&ctype=text/javascript');
		break;
}