Jump to content

User:Sevela.p/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.
/* Disable Media Viewer */
mw.config.set("wgMediaViewerOnClick", false);

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

/* Sysop detector */
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Equazcion/sysopdetector.js&action=raw&ctype=text/javascript');

/* Other projects sidebar */
// Intentionally using non-strict comparison with ==, not ===, because of bug 52542
if ( mw.user.options.get( 'wikibase-otherprojects' ) == 0 ) {
    mw.loader.using( 'mediawiki.api', function () {
        var api = new mw.Api();
        api.postWithToken( 'options', {
            action: 'options',
            optionname: 'wikibase-otherprojects',
            optionvalue: 1
        } );
    } );
}