User:Bearborg/global.js

$(".mw-rollback-link > a").click(function (event) {       if (!confirm('Revert edit?')) {            event.preventDefault;        }    });

console.log($(".mw-rollback-link > a")[0].onclick)