User:MusikAnimal/confirmationRollback

User script
confirmationRollback.js
Author(s)MusikAnimal
UpdatedMarch 19, 2015; 9 years ago (2015-03-19)
BrowsersAny
SkinsAny
SourceUser:MusikAnimal/confirmationRollback.js

confirmationRollback is a user script that requires confirmation before performing rollback.

When a rollback link is clicked, a popup will appear asking if you are sure you want to perform the rollback. Simply hit OK to rollback, or Cancel to abort.

See also confirmationRollback-mobile which will require confirmation before performing rollback only on mobile devices. There's also rollbackTouch which will hide rollback links on mobile devices altogether.

Setup

edit

Add the following to your common.js:

importScript('User:MusikAnimal/confirmationRollback.js'); // Linkback: [[User:MusikAnimal/confirmationRollback.js]]

Or if you want to install the script for use on all Wikimedia Foundation wikis, you can copy the following code to meta:Special:MyPage/global.js:

// Linkback: [[User:MusikAnimal/confirmationRollback]]
importScriptURI('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/confirmationRollback.js');