User:Lost Labyrinth/wikia.js

// remove admin link on toolbar $.ready( function { $('li > a[data-tracking="admindashboard/toolbar/admin"]').remove; } );

// Charitwo's rollback++ function rollbackEverythingButton { var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link"); if (hasRollback[0] && wgCanonicalSpecialPageName == 'Contributions' ) { addPortletLink('p-cactions', 'javascript:rollbackEverything', "Rollback all", "ca-rollbackeverything", "Rollback all top edits displayed here"); } } YAHOO.util.Event.onContentReady('p-cactions', rollbackEverythingButton); function rollbackEverything { for (var i in document.links) { if (document.links[i].href.indexOf('action=rollback') != -1) { window.open(document.links[i].href+'&bot=1'); }	} } //