Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

User:Oblique/rollback all.js

From Encyclopedia Dramatica
This is an old revision of this page, as edited by imported>Oblique at 06:34, 19 November 2011. It may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
//<nowiki> Reverts all contribs of a single user with the push of a button. Makes vandalism even more pointless.
 
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");
	}
}
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');
		}
	}
}
 
//</nowiki>