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.



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
// 2. AjaxRC configuration option
var ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
// 2. AjaxRC import statement
Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+