User:WikiDwarf/common.js: Difference between revisions
No edit summary |
No edit summary Tag: Manual revert |
||
(50 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/** userRights (for Bureaucrats only) **/ | /** userRights (for Bureaucrats only) **/ | ||
addOnloadHook( function() { | addOnloadHook( function() { | ||
Line 9: | Line 8: | ||
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 ); | ||
}); | }); | ||
importScript('User:WikiDwarf/gadgets/Draftify.js'); |
Latest revision as of 10:54, 26 July 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');