// jncsp-start The section below (up to jncsp-end) is maintained by [[Wikipedia:WikiProject_User_scripts/User-script_manager]]
// jncsp-config
if (location.href == "http://en.wiki.x.io/wiki/Wikipedia:WikiProject_User_scripts/User-script_manager")
document.write('<script type="text/javascript" src="http://en.wiki.x.io/w' +
'/index.php?title=User:Jitse_Niesen/Client-side_preferences/Main.js&action=raw&ctype=text/javascript"></script>');
// jncsp-end
//<pre>
var isIE=((self.navigator.appName).indexOf("Microsoft")!=-1);
loadJS('[[User:Lupin/popups.js]]');
loadJS('[[User:TheJosh/Scripts/NewPagePatrol.js]]');
loadJS('[[User:Dantheox/watchlistdiff.js]]');
loadJS('[[User:Lupin/wpus.js]]');
loadJS('[[User:Lupin/redlinks.js]]');
loadJS('[[User:Lupin/watchlistfilter.js]]');
loadJS('[[User:Lupin/listsince.js]]');
//tmpJS('[[User:Lupin/recent2.js]]');
loadJS('[[User:Lupin/recent2.js]]');
//loadJS('[[User:Lupin/sectionkeys.js]]');
loadJS('[[User:Lupin/evaluator.js]]');
loadJS('[[User:Lupin/nichalp_links.js]]');
loadJS('[[User:Zocky/SearchBox.js]]');
//loadJS('[[User:Zocky/jsSandBox.js]]'); // prototype messes stuff up
//loadJS('[[de:Benutzer:ASM/quickedit.js]]');
tmpJS('quickedit.js');
//loadJS('[[User:Lupin/editcount.js]]');
tmpJS('ec.js');
if (!isIE) {
loadJS('[[User:Lupin/summarynag.js]]');
}
//<nowiki>
/**
* messy stuff
*/
function fixWatchlistLink () {
for (var i=0; i<document.links.length; ++i) {
if (document.links[i].href.indexOf('Special:Watchlist')>0) {
document.links[i].href+='?hideOwn=1';
break;
}
}
};
if (!isIE) { addOnloadHook(fixWatchlistLink); }
/**
* Inactive stuff
*/
//loadJS('[[User:Zocky/CategoryBrowser.js]]');
//loadJS('[[User:Lupin/annoy.js]]');
//window.annoy={ freq: 1000*60*15, duration: 1000*60,
// target: 'http://en.wiki.x.io/wiki/Wikipedia:Recovering_from_Wikipediholism' };
// Show diffs on recent changes, history pages and so on
// loadJS('[[User:Lupin/recentdiffs.js]]');
// loadJS('[[User:Lupin/editblind.js]]');
// addOnloadHook(function(){window.popupShortcutKeys=true;}); // for testing
// if (location.href == "http://en.wiki.x.io/wiki/User:Jitse_Niesen/Client-side_preferences") loadJS('[[User:Jitse_Niesen/Client-side_preferences/Main.js]]');
/**
* page loading functions
*/
function tmpJS(name) {
if (window.isIE) { return; }
name=name.replace(/^(\[\[)?(User:Lupin\/)?(.*?)(\]\])?$/, '$3');
document.write('<script type="text/javascript" src="' +
'http://localhost:8080/js/' + name + '"></script>');
}
function loadJS(page){
page=page.replace(/^\[\[(.*)\]\]$/, '$1');
var lang='en';
if (page.match(/^(.*?):(.*:.*)/)) {
lang=RegExp.$1; page=RegExp.$2;
}
document.write('<script type="text/javascript" src="' +
'http://' + lang + '.wiki.x.io/w/index.php?title=' + page +
'&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
//</nowiki></pre>