User:WikiDwarf/common.js: Difference between revisions
(testing) Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 9: | Line 9: | ||
}); | }); | ||
importScript('User:WikiDwarf/gadgets/Draftify.js'); | importScript('User:WikiDwarf/gadgets/Draftify.js'); | ||
Revision as of 19:45, 2 March 2024
/** 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 );
});
importScript('User:WikiDwarf/gadgets/Draftify.js');