FANDOM


Nuvola apps important
This script is for PERSONAL use only!
You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate FANDOM's Terms of Use.
(See the customization policy)

AnchoredRollback allows you to perform rollbacks without changing location. This is especially useful where multiple edits are being rollbacked, mainly on a user's contributions page or recent changes, mitigating the need to use tedious workarounds such as opening in new tab.

This script is compatible with AjaxRC.

Installation

importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AnchoredRollback.js',
    ]
});


You may add an optional config before importing the script which will mark all your rollbacks as bot edits if done while being in the sysop usergroup. This can be done by adding anchoredRollbackBot = true; above the import, like below:

anchoredRollbackBot = true;
importScriptPage('MediaWiki:AnchoredRollback/code.js', 'dev');

Being in the bot usergroup will have your edits marked as bot edits by default regardless of whether the config is added or not.

If you're already using importArticles(), you can import the script by adding the below to the article list.

"u:dev:MediaWiki:AnchoredRollback/code.js",