User:Bearborg/global.js

$(".mw-userlink").each(function (i, elem) {   elem.onclick = function (event) {        if (!confirm('Revert edit?')) {            event.preventDefault;            return false;        }    }; });

console.log($(".mw-rollback-link > a").item(0).onclick);