FANDOM


MassUserRights provides a link to a modal (without changing location) which allows the user to list users to be promoted/demoted. The default usergroups bureaucrat, administrator, discussions moderator, chat moderator, rollback and content moderator are listed, though custom usergroups can be added for particular wikis (see below).

Installation

To configure the delay:

window.massUserRightsDelay = 1000;

Interface

Select whether you would like to add or remove users from a usergroup with the dropdown menu (it is set at "Add" by default). In order to handle multiple users, add the usernames (without the User: prefix) each on a new line and proceed to handle them. The script will stop when it reaches an empty line.

In order to add custom usergroups, you need to follow this particular format for each entry, and add it above the import:

window.massUserRightsCustom = [
  "1|2|3"
];

Where:

  • 1 - the wiki URL name, for example Fandom Developers Wiki is "dev"
  • 2 - the usergroup database name; for example the Code Editor usergroup is listed as codeeditor on Special:ListGroupRights after clicking (list of members), so we would use "codeeditor"
  • 3 - the usergroup display name; for example codeeditor would display as Code Editor, so we would use "Code Editor"

Going by what the above explanation said, the way we can add the usergroup would be:

massUserRightsCustom = [
  "dev|codeeditor|Code Editor"
];

An example of custom multiple wikis and usergroups:

massUserRightsCustom = [
  "dev|codeeditor|Code Editor",
  "answers|patroller|Patroller",
  "mlp|imagecontrol|Image Control"
];

The script also has an "Add Group Contents" button, which will input a list of users from the usergroup of your choice.

It is strongly recommended that you are using an account that has a bot flag when using this script excessively, as excessive user rights changes can flood the recent changes/wiki activity.

By default, the script will do one page per second. If you'd like to modify that, add the config massUserRightsDelay before importing the script with your own number (in milliseconds) instead.

The option to use the Mass User Rights script will appear under your "My Tools" list (the toolbar at the bottom of your screen).


Text above can be found here (edit)


Community content is available under CC-BY-SA unless otherwise noted.