Gebruiker:Anrie/Monobook.js: Verskil tussen weergawes

Content deleted Content added
k Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
 
Lyn 8:
var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link");
if (hasRollback[0] && (document.title.indexOf("User contributions") != -1) ) {
mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverything()', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here");
}
}
Lyn 16:
if (document.links[i].href.indexOf('action=rollback') != -1) {
window.open(document.links[i].href);
}}}