User script
markAdmins
A screenshot of the script in action on WP:AN.
DescriptionMark users with certain additional rights.
Author(s)Mdaniels5757
StatusActive
Version1.4
UpdatedMay 30, 2020; 4 years ago (2020-05-30)
BrowsersTested with Chrome, but others should work.
SkinsTested on Vector.
SourceUser:Mdaniels5757/markAdmins.js
GitHub repositoryenwikiMarkAdmins

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):

  1. Place {{subst:iusc|User:Mdaniels5757/markAdmins.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. 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 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

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 },
	}
};

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

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