User:KenWalker/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:KenWalker/monobook.css. |
// [[User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// installation of the wikEd editing page extension
// install [[User:Cacycle/diff]] text diff code
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// install [[User:Pilaf/Live_Preview]] page preview tool
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// install [[User:Mboverload/RegExTypoFix|RegExTypoFix]] common typo fixer
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/RegExTypoFix.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[User:Outriggr/metadatatest.js]]
importScript('User:Outriggr/metadatatest.js');
assessmentDefaultProject = "WPBiography";
assessmentMyTemplateCode = ["{"+"{WikiProject Canada|class=|importance=|type =|cangov =|ppap =|canlaw =|caned =|nested=}}", "{"+"{WPBiography|class=|priority=|needs-infobox =|needs-photo =|listas=}}","{"+"{Saskatchewanproject}}", "{"+"{WPSchools|class=|importance=|needs-infobox=|info=|page=|move=|nested=}}", "{"+"{WikiProject Law|quality=|importance=}}", "{"+"{WikiProject Ships|class=|importance=|nested=}}", "{"+"{TrainsWikiProject|class=|importance=}}", "{"+"{ShipwrecksWikiProject|class=|nested=yes}}", "{"+"{River|Mapneeded=|nested=}}", "{"+"{lake project|quality=|nested=}}", "{"+"{NorthAmNative|class=|nested=}}", "{"+"{Canada Roads WikiProject|class=}}", "{"+"{Lighthouse}}", "{"+"{Mountain}}", "{"+"{WPLinux|class=}}", "{"+"{BCproject|class =|importance =|nested =}}"];
assessmentMarkAsMinor = false;
// skip talk page on categories when assessing - time saver
function catSwapButton() {
if(document.title.indexOf('Category:' == 0)) {
mw.util.addPortletLink('p-cactions','javascript:catSwap();','De-Talkify','ca-catswap','change category links from talk pages to article pages');
}
}
addOnloadHook(catSwapButton);
function catSwap() {
var cat = document.getElementById('mw-pages');
cat.innerHTML = cat.innerHTML.replace(/Talk\:/g,'').replace(/[_\s]talk\:/g,':');
}
//saving tab
addOnloadHook(addsaveaction);
function addsaveaction() {
if(document.title.indexOf('Editing ') == 0) mw.util.addPortletLink('p-cactions','javascript:document.getElementById("wpSave").click();','save','Save');
}