User:Codename Noreste/common.js

From Test Wiki
Revision as of 07:39, 24 June 2024 by Codename Noreste (talk | contribs) (Adding a rollback script.)
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.
// Selective Rollback ([[User:Dragoniez/Selective Rollback.js]])
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3ADragoniez%2FSelective%20Rollback.js&action=raw&ctype=text/javascript');
window.selectiveRollbackConfig = {};
selectiveRollbackConfig.confirm = 'never';
selectiveRollbackConfig.mobileConfirm = 'always';
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AAnimum%2Fmassdelete.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterDiff.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2FfilterTest.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ASuffusion_of_Yellow%2Fbatchtest-plus.js&action=raw&ctype=text/javascript');
importScript('MediaWiki:Gadget-AllInOne.js'); // Backlink: [[MediaWiki:Gadget-AllInOne.js]]
if (typeof(p4js_all_in_one) === 'undefined') p4js_all_in_one = {};
p4js_all_in_one.reasons = {
    block: ["Vandalism", "Vandalism-only account", "Spamming links to external sites", "Spam-only account or spambot", "Intimidating behavior/harassment", "Long-term abuse", "{{blocked proxy}}"],
    pagedelete: ["Unambiguous spam", "Complete vandalism", "Created by blocked user evading their block", "Not a translation"],
    revisiondelete: ["Copyright violation", "Correction of a mistake in revision deletion", "Grossly insulting, degrading, or offensive material", "Potentially libelous information", "Purely disruptive material", "Other valid non-test deletion"],
}
// You can select these suffixes to append to your block and (revision) delete rationales.
p4js_all_in_one.suffixes = ["", " (bureaucrat action)", " <!-- Bureaucrat action, but can be changed as a steward action if necessary. -->"];