AnchoredRollback allows you to make rollbacks without changing location. This is useful where multiple edits are being rollbacked, especially on a user's contributions page or recent changes. This makes it especially easier to manually rollback multiple pages from a single page without the use of tedious workarounds such as opening in new tab.
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.
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: