User:WikiDwarf/common.js: Difference between revisions

no edit summary
(Created page with "mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );")
 
No edit summary
Line 1: Line 1:
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
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 );
});