User:Iamunknown/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:Iamunknown/monobook.css. |
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": "/media/wikipedia/commons/thumb/2/21/Info_Sign.svg/23px-Info_Sign.svg.png",
"speedTip": "Information template",
"tagOpen": "",
"tagClose": "",
"sampleText": "\n{{Information\n"
+ "|Description = \n"
+ "|Source = \n"
+ "|Date = \n"
+ "|Author = \n"
+ "|Permission = \n"
+ "|other_versions = \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)
+ "”";
});
}