markAdmins | |
---|---|
Description | Mark users with certain additional rights. |
Author(s) | Mdaniels5757 |
Status | Active |
Version | 1.4 |
Updated | May 30, 2020 |
Browsers | Tested with Chrome, but others should work. |
Skins | Tested on Vector. |
Source | User:Mdaniels5757/markAdmins.js |
GitHub repository | enwikiMarkAdmins |
markAdmins (source) is a userscript that adds letters after users with special permissions' names.
Installation instructions
editIf you haven't gotten Enterprisey's ScriptInstaller yet, what are you doing with your life? Go install that, refresh this page, and click the big blue "install" button in the infobox.
If you are a luddite pleb still want to install it manually (for some reason):
- Place
{{subst:iusc|User:Mdaniels5757/markAdmins.js}}
on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js. - Clear your cache and enjoy!
More information
editDefault groups
editThe following groups are shown by default (with their abbreviation bolded next to them): Administrators (A), Arbitration Committee Members (ARB), Bureaucrats (B),Checkusers (CU), Interface administrators (IA), Oversighters (OS), and Stewards (S).
Supported groups
editThe following groups are supported:
- Local groups displayed by default:
["bureaucrat", "checkuser", "interface-admin", "oversight", "sysop"]
- Local groups hidden by default:
["abusefilter", "abusefilter-helper", "accountcreator", "extendedmover", "filemover", "massmessage-sender", "templateeditor"]
- Local non-group displayed by default:
["arbcom"]
- Global group displayed by default:
["steward"]
- Global group hidden by default:
["vrt-permissions"]
- Local groups hidden by default, and even if enabled, only display if a user is in one of the above groups:
["autoreviewer", "patroller", "reviewer", "rollbacker"]
The following groups may be supported in the future, but it will require some amount of more work:
- Local: ?
- Global: ?
Custom configurations
editAny of the following can be mixed and matched!
Enable/disable default groups
editTo unmark users in the "steward"
group, insert the following into your common.js:
window.markAdminCfg = {
groups: {
'steward': { enabled: false }
}
};
To enable all currently supported groups, insert the following into your common.js:
window.markAdminCfg = {
groups: {
'abusefilter': { enabled: true },
'abusefilter-helper': { enabled: true },
'accountcreator': { enabled: true },
'autoreviewer': { enabled: true },
'extendedmover': { enabled: true },
'filemover': { enabled: true },
'massmessage-sender': { enabled: true },
'templateeditor': { enabled: true },
'vrt-permissions': { enabled: true },
'patroller': { enabled: true },
'reviewer': { enabled: true },
'rollbacker': { enabled: true },
}
};
Change abbreviations
editTo make the abbreviation for "steward"
s "ST" instead of "S", insert the following into your common.js:
window.markAdminCfg = {
groups: {
'steward': {
label: 'ST',
enabled: true
}
}
};
Known incompatibilities
edit- Wikipedia:Comments_in_Local_Time (but User:Mxn/CommentsInLocalTime seems to work)
- User:Kephir/gadgets/unclutter (at least with signature information enabled)
WP:REPLYLINK (sometimes. pull request submitted) --Mdaniels5757 (talk) 22:35, 1 June 2020 (UTC)Fixed at Special:Diff/965395861 --Mdaniels5757 (talk) 19:32, 1 July 2020 (UTC)
Technical information
editData Source
editFor arbcom members, data is first scraped from User:AmoryBot/crathighlighter.js/arbcom.json.
They are then combined by User:MDanielsBot with all other supported data at User:MDanielsBot/markAdmins-Data.js periodically.
JS Files
editThe core user script (the one that should be installed) is located at User:Mdaniels5757/markAdmins.js. That script does two things. First, it loads the data from User:MDanielsBot/markAdmins-Data.js, then it loads the core script from User:Mdaniels5757/markAdmins-core.js. Neither of those two scripts should be installed directly.
Attribution
editThis script was derived from the now-gadget on Wikimedia Commons, which was (mostly?) written by c:User:Rillke