User:Dan653/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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*****************************
** On all wikis
*****************************/
// TWINKLE
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript');
// try mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/twinkle.js&action=raw&ctype=text/javascript');


/*****************************
** On specific wikis
*****************************/
switch(mw.config.get('wgDBname')) {
	/* en.wikipedia.org */
	case 'enwiki':
		//importScript( 'User:Bility/copySectionLink.js' );
		importScript("User:A930913/vada/import.js"); //[[User:A930913/vada/import.js]]
		break;
	
	/* meta.wikimedia.org */
	case 'metawiki':
		// [[File:Krinkle_Global_SUL.js]]
		mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Tools/Global_SUL.js&action=raw&ctype=text/javascript');
		break;
}