User:MF-Warburg/global.js
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.
if ( mw.config.get( 'wgDBname' ) !== 'incubatorwiki' ) {
mw.loader.load('//incubator.wikimedia.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');
mw.loader.using('mediawiki.util', function() { if( mw.config.get('wgDBname') !== 'metawiki') mw.util.addCSS('#centralNotice { display: none; }'); });
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');
var usefulLinksIpTools = { gblock: {
url : '//meta.wikimedia.org/wiki/Special:GlobalBlock/$1',
linkText : 'Global block'
}};
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Erwin/stewardlinks.js&action=raw&ctype=text/javascript');
mw.config.set("wgMediaViewerOnClick", false);
// above code does not apply to Incubator
}
/* Set skin to MonoBook */
mw.loader.using("mediawiki.user", function() {
if ( mw.user.options.get('skin') !== 'monobook' ) {
( new mw.Api() ).postWithToken( 'options', {
action: "options",
change: "skin=monobook"
} ).done( function() {
mw.loader.using([], function(){
mw.notify( "Skin has been changed to MonoBook. Please refresh the page." );
} );
} );
}
} );