Jump to content

User:Zhuyifei1999/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.
// Global js page
GoButton=true; // [[:c:Commons:Village_pump/Archive/2011/09#Internal_search_engine]]

mw.loader.load("//commons.wikimedia.org/w/index.php?title=User:Zhuyifei1999/uploadwmo.js&action=raw&ctype=text/javascript");

//mw.loader.load("//bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false&lang=en&modules=ext.gadget.typographyrefreshoverride");
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');
//mw.loader.load("//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&lang=en&modules=ext.gadget.BugStatusUpdate");
mw.loader.load("//meta.wikimedia.org/w/load.php?debug=false&lang=en&modules=ext.gadget.UTCLiveClock");

(function(){
	if ( (mw.config.get("wgDBname") !== "wikidatawiki") && (mw.config.get("wgDBname") !== "testwikidatawiki") ) { // Don't work in Wikidata
		if (mw.loader.moduleRegistry['ext.gadget.Twinkle'] !== undefined) {
			mw.loader.load('ext.gadget.Twinkle');
		} else {
			/*
			// Morebits, a library for Twinkle-like gadgets by AzaToth
			mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript');
			// Fork of Twinkle intended to work on as many wikis as possible
			mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/twinkle.js&action=raw&ctype=text/javascript');
			*/
		}
	}
})();