User:Perryprog/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.
function load(wiki, page) {
	mw.loader.load('//' + wiki + '/w/index.php?title=' + page + '&action=raw&ctype=text/javascript');
}

// Backlink: [[:en:MediaWiki:Gadget-markblocked.js]]
load('en.wikipedia.org', 'MediaWiki:Gadget-markblocked.js');

// Documentation: [[MoreMenu]], backlink: [[MediaWiki:MoreMenu.import.js]]
load('meta.wikimedia.org', 'MediaWiki:MoreMenu.import.js');

// Documentation: [[:mw:XTools]], backlink: [[:mw:XTools/ArticleInfo.js]]
load('mediawiki.org', 'XTools/ArticleInfo.js');

// Documentation: [[User:Xiplus/TwinkleGlobal]], backlink: [[User:Xiplus/TwinkleGlobal.js]]
load('meta.wikimedia.org', 'User:Xiplus/TwinkleGlobal.js');

// Documentation: [[:en:User:Enterprisey/diff-permalink]], backlink: [[:en:User:Enterprisey/diff-permalink.js]]
load('en.wikipedia.org', 'User:Enterprisey/diff-permalink.js');

// Backlink: [[:en:User:GeneralNotability/mark-locked.js]]
load('en.wikipedia.org', 'User:GeneralNotability/mark-locked.js');

// Backlink: [[m:User:Jon Harald Søby/diffedit.js]]
load('meta.wikimedia.org', 'User:Jon_Harald_Søby/diffedit.js');

// This is probably right... ¯\_(ツ)_/¯ 
if ($('#ca-addsection').length) mw.loader.using('ext.discussionTools.init');