User:MusikAnimal/confirmationRollback.js

// //To install, add the following to your common.js: User:MusikAnimal/confirmationRollback.js $.when( mw.loader.using( ['mediawiki.util'] ), $.ready).then( function {	$(".mw-rollback-link").on('click', function(e) { var count = e.target.innerText.match(/\d/) ? e.target.innerText.match(/\d+/)[0] : null, message = 'Rollback ' + (count ? count + ' edits' : 'edit') + ' by ' + mw.util.getParamValue('from',e.target.href) + '?'; if(!confirm(message)) return e.preventDefault; }); }); //