Jump to content

User:Minorax/wiki.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() {
	
	$(document).ready(function() {
		mw.loader.using( ['mediawiki.util'], function() {
			// show shortcuts if not editing
			if (!mw.config.get('wgEditMessage')) {
				mw.util.addPortletLink("p-navigation", "https://meta.wikimedia.org/wiki/Special:RecentChanges", "meta");
				mw.util.addPortletLink("p-navigation", "https://commons.wikimedia.org/", "commons");
				mw.util.addPortletLink("p-navigation", "https://wikidata.org/", "wikidata");
				mw.util.addPortletLink("p-navigation", "https://en.wikipedia.org/", "en.wp");
				mw.util.addPortletLink("p-navigation", "https://simple.wiktionary.org/wiki/Special:RecentChanges", "simple.wikt");
				mw.util.addPortletLink("p-navigation", "https://www.wikifunctions.org/wiki/Special:RecentChanges", "wikifunctions");
				mw.util.addPortletLink("p-navigation", "https://ftools.toolforge.org/general/ip-range-calc.html", "RB calculator");
				return;
			}
		});
	});
}());