User:Bearborg/global.js

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

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