User:Mdaniels5757/markAdmins
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
[edit]If 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
[edit]Default groups
[edit]The 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
[edit]The 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 groups hidden by default:
["global-rollbacker", "vrt-permissions"]
- "Global" (metawiki) group hidden by default:
["global-renamer"]
- 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
[edit]Any of the following can be mixed and matched!
Enable/disable default groups
[edit]To 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 },
'global-renamer': { enabled: true },
'global-rollbacker': { enabled: true },
}
};
Change abbreviations
[edit]To 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
[edit]Data Source
[edit]For 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
[edit]The 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
[edit]This script was derived from the now-gadget on Wikimedia Commons, which was (mostly?) written by c:User:Rillke