User:Eurohunter/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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
mw.loader.using( [
'user.options',
'mediawiki.api.options'
] ).done( function () {
var option = 'compact-language-links';
if ( !!mw.user.options.get( option ) ) {
new mw.Api().saveOption( option, 0 );
}
} );
// Enables a small box under a Wikipedia article's title displaying the label, description, aliases and the identifier of the related Wikidata item
mw.loader.load('https://www.wikidata.org/w/index.php?title=User:Yair_rand/WikidataInfo.js&action=raw&ctype=text/javascript');
// Enables legacy toolbar (2006)
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-legacyToolbar.js&action=raw&ctype=text/javascript');
// Enables extra buttons for legacy toolbar (2006)
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-extra-toolbar-buttons.js&action=raw&ctype=text/javascript');
// Enables gadget HotCat
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');
// Bolds and moves to the top of the list of user-defined interwiki
mw.loader.load('https://pl.wikipedia.org/w/index.php?title=Wikipedysta:Lampak/MyLanguages.js&action=raw&ctype=text/javascript');
var mylangsArray = ["en"];