Jump to content

User:Jethro B/common.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.
importScript('User:Porchcorpter/rollback.js');

importScript('User:Equazcion/SidebarHistoryTools.js');

importScript('User:Kephir/gadgets/rater.js'); // [[User:Kephir/gadgets/rater]]

importScript('User:Ohconfucius/script/Common Terms.js');  //[[User:Ohconfucius/script/Common Terms.js]]

importScript('User:Ohconfucius/script/MOSNUM dates.js');  //[[User:Ohconfucius/script/MOSNUM dates.js]]

importScript('User:Equazcion/SidebarTranslate.js'); //[[User:Equazcion/SidebarTranslate]]

importScript('User:Writ Keeper/Scripts/SearchNamespace.js');

importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]

importScript('User:Amalthea/userhighlighter.js');

importScript("User:GregU/dashes.js"); 

importScript('User:TheJosh/Scripts/NewPagePatrol.js');

importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]

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);
      }
    }
}

 mw.util.addPortletLink(
 'p-personal',
 '/wiki/Special:PrefixIndex/User:AnkhMorpork',
 'My subpages',
 'pt-mysubpages',
 'Show my subpages',
 null,
 '#pt-preferences'
 );

importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user

importScript("User:Writ Keeper/Scripts/teahouseTalkback.js"); // Adds Talkback reminder when you save an edit at the Teahouse

importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse

importScript('User:Equazcion/TeahouseRespond.js'); // Adds a styled "respond to this discussion" link on the Q&A questions