User:Pixial/gadgets.js

/*******************************************/ /* VARIOUS GADGETS FROM WIKIMEDIA PROJECTS */ /*******************************************/

mw.loader.using( ['mediawiki.user', 'mediawiki.util', 'mediawiki.api'], function {

// Twinkle mw.loader.load("https://dev.miraheze.org/wiki/MediaWiki:Twinkle.js?action=raw&ctype=text/javascript");

// MoreMenu (Updated 20211111) mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js');

mw.hook('moremenu.ready').add(function (config) {	MoreMenu.addLink( 'user', 'User rights log', mw.util.getUrl( "Special:Log", {			type: 'rights',			page: "User:" + mw.config.get("wgRelevantUserName"),		}), 'mm-user-user-groups' );	MoreMenu.addLink( 'user', 'Global user rights', mw.util.getUrl( "Special:GlobalUserRights", {			user: mw.config.get("wgRelevantUserName")		}), 'mm-user-uploads' ); });

// RevisionJumper: quickly navigate between page revisions mw.loader.load( '//de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-revisionjumper.js&action=raw&ctype=text/javascript' );

// Replaces "New section" with "+" mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-addsection-plus.js&action=raw&ctype=text/javascript' );

// MarkBlocked: Strike usernames that have been blocked mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript' );

});