User:WikiDwarf/common.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user ); | addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user ); | ||
}); | }); | ||
mw.loader.load( '// | mw.loader.load( '//commons.wikimedia.org/w/index.php?title=User:Kanonkas/twinkle.js&action=raw&ctype=text/javascript' ); |
Revision as of 17:35, 3 October 2020
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
/** userRights (for Bureaucrats only) **/
addOnloadHook( function() {
if ( wgNamespaceNumber != 2 && wgNamespaceNumber != 3 ) { // User or User talk
return;
}
var user = wgTitle.split( '/' )[0];
var url = wgScript + '?title=Special:UserRights&user=' + encodeURIComponent( user );
addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user );
});
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=User:Kanonkas/twinkle.js&action=raw&ctype=text/javascript' );