FANDOM


AnchoredRollback allows you to perform rollbacks without changing location. This is especially useful where multiple edits are being reverted, 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

Configuration

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 script import.

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

Using configuration options with FANDOM Developers Wiki scripts

The instructions on this page describe how to use configuration options with a script. Here on the FANDOM Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.

Configuration options load too late, don't work
// 1. AjaxRC import statement
importScriptPage('AjaxRC/code.js','dev');
 
// 2. AjaxRC configuration option
var ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
 
// 2. AjaxRC import statement
importScriptPage('AjaxRC/code.js','dev');