Jump to content

User:Calmer Waters/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// <nowiki>
//Mass rollback function
//Written by John254
//Adapted from User:Mr.Z-man/rollbackSummary.js
//Instructions: Selecting the "rollback all" tab when viewing a user's contributions history
//will open all rollback links displayed there. (Use with caution)
 
function rollbackEverythingButton() {
  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");
  }
}
$(rollbackEverythingButton);
function rollbackEverything() {
    for (var i in document.links) {
      if (document.links[i].href.indexOf('action=rollback') != -1) {
        window.open(document.links[i].href);
      }
    }
}importScript('User:Shubinator/DYKcheck.js'); 
importScript('User:TheDJ/Gadget-HotCat.js');
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript('User:Henrik/js/afc-helper.js');
importScript('User:Bawolff/DYKVerified.js');
importScript("User:Drilnoth/delresized.js");
importScript('User:Splarka/ajaxfilemove.js');
importScript('User:TheDJ/qui.js');
importScript('User:AWeenieMan/furme.js');

importScript('User:Mr.Z-man/closeAFD.js');// simple script to enable the reviewer bit and leave the user a note
 
MakeReviewerConfig = {
    groupReason : "User is linked from [[Wikipedia:Database reports/Potential reviewer candidates]]",
    sectionHeader : "Reviewer granted",
    sectionBody : "{{subst\:reviewer-notice}} ~~\~~"
};
 
importScript("User:Amalthea/MakeReviewer.js");

// Add [[WP:Reflinks]] launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName') 
   + "?client=script&citeweb=on&overwrite=&limit=20&lang=" + mw.config.get('wgContentLanguage'),
  "Reflinks"  // link label
)});
// </nowiki>