Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/** userRights (for Bureaucrats only) **/
$(function() {
// Get variables from the modern mw.config object
var ns = mw.config.get('wgNamespaceNumber');
var title = mw.config.get('wgTitle');
var script = mw.config.get('wgScript');
if ( ns !== 2 && ns !== 3 ) { // User or User talk
return;
}
var user = title.split( '/' )[0];
var url = script + '?title=Special:UserRights&user=' + encodeURIComponent( user );
// addPortletLink is still supported, but mw.util.addPortletLink is preferred
mw.util.addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user );
});
importScript('User:WikiDwarf/gadgets/Draftify.js');