Fandom Developers Wiki
Advertisement

MassProtect provides a link to a modal (without changing location) which allows the user to list pages to be protected. Protections include autoconfirmed ("Block new and unregistered users"), administrator ("Administrators and Content Moderators only") and none ("Allow all users"). There are also options for edit, move, upload, or create protections.

Installation

Importing multiple scripts? This quick guide shows how to combine the imports.
  • For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:MassProtect/code.js
  • For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:MassProtect/code.js',
    ]
});

Usage

File:How to get MassProtect? Wiki

Complete Tutorial

In order to protect multiple pages, add the page names (not page URLs) each on a new line (including their namespace if necessary) and proceed to protect them. The script will stop when it reaches an empty line.

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

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

Please note you must not have the toolbar at the bottom hidden or the script will not function. If you do not see the "My Tools" (or other language equivalent), try clicking Customize and then "reset defaults" to not hide the "My Tools".

Advertisement