User:Iamunknown/monobook.js

importScript('User:Iamunknown/image-templates.js'); importScript('User:Lupin/popups.js'); // User:Lupin/popups.js - As I remember, Lupin wanted links to his popups script so that a list could be made of people to contact pending updates importScript('Wikipedia:WikiProject User scripts/Scripts/Time'); importScript('Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs');

function stopRedlinksEditing{ var len=document.links.length; for(var i=0; i<len; ++i) { var l=document.links[i]; if (l.className=='new') { l.href=l.href.replace('&action=edit', ''); }   } } addOnloadHook(stopRedlinksEditing);

if (wgNamespaceNumber == 0) { importScript('User:AndyZ/peerreviewer2.js'); toolbarLink_PR = true; } else if (wgNamespaceNumber == 6) { mwCustomEditButtons[mwCustomEditButtons.length] = {   "imageId":    "mw-editbutton-info", "imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Info_Sign.svg/23px-Info_Sign.svg.png", "speedTip":  "Information template", "tagOpen":   "", "tagClose":  "", "sampleText": "\n\n" }; }

/** * In the "Revision history of ..." on history pages, * add quotation marks around the title. */ if(window.location.toString.match(/(?:\?|&)action=history/)) { addOnloadHook(function { var i, header, headerList, prefix  headerList = document.getElementsByTagName("h1");  prefix = "Revision history of ";  for(i=0; i<headerList.length; i++) {   if (headerList[i].className == "firstHeading") {    header = headerList[i];   }  }  header.innerHTML = header.innerHTML.substr(0, prefix.length)                    + "“"                    + header.innerHTML.substr(prefix.length, header.innerHTML.length)                    + "”"; }); }