|
|
Line 1: |
Line 1: |
- | // jncsp-start The section below (up to jncsp-end) is maintained by [[Wikipedia:WikiProject_User_scripts/User-script_manager]] | + | // Filter changes live |
- | // jncsp-config
| + | // [[User:Lupin/recent2.js]] - please include this line |
- | | + | document.write('<script type="text/javascript" src="' |
- | if (location.href == "http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/User-script_manager")
| + | + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js' |
- | document.write('<script type="text/javascript" src="http://en.wikipedia.org/w' +
| + | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
- | '/index.php?title=User:Jitse_Niesen/Client-side_preferences/Main.js&action=raw&ctype=text/javascript"></script>');
| + | document.write('<script type="text/javascript" src="' |
- | | + | + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/autoedit.js' |
- | // jncsp-end
| + | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
- | | + | |
- | //<pre>
| + | |
- | var isIE=((self.navigator.appName).indexOf("Microsoft")!=-1);
| + | |
- | | + | |
- | loadJS('[[User:Dantheox/watchlistdiff.js]]');
| + | |
- | loadJS('[[User:Hotbot/wpus.js]]');
| + | |
- | loadJS('[[User:Hotbot/redlinks.js]]');
| + | |
- | loadJS('[[User:Hotbot/watchlistfilter.js]]');
| + | |
- | loadJS('[[User:Hotbot/listsince.js]]');
| + | |
- | //tmpJS('[[User:Hotbot/recent2.js]]');
| + | |
- | loadJS('[[User:Hotbot/recent2.js]]');
| + | |
- | //loadJS('[[User:Hotbot/sectionkeys.js]]');
| + | |
- | loadJS('[[User:Hotbot/evaluator.js]]');
| + | |
- | loadJS('[[User:Hotbot/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:Hotbot/editcount.js]]');
| + | |
- | tmpJS('ec.js');
| + | |
- | if (!isIE) {
| + | |
- | loadJS('[[User:Hotbot/summarynag.js]]');
| + | |
- | loadJS('[[User:Zocky/PicturePopups.js]]');
| + | |
- | }
| + | |
- | | + | |
- | //<nowiki>
| + | |
- | | + | |
- | /**
| + | |
- | * Popups stuff | + | |
- | */
| + | |
- | | + | |
- | //window.localCSS=true;
| + | |
- | //loadJS('[[User:Hotbot/popupsdev.js]]');
| + | |
- | tmpJS('popupsdev.js');
| + | |
- | popupAdminLinks=true; popupShortcutKeys=true; popupFixDabs=true;
| + | |
- | popupPreviewKillTemplates=false; popupPreviewFirstParOnly=false;
| + | |
- | popupOnlyArticleLinks=false;
| + | |
- | popupEditCounterTool='interiot';
| + | |
- | popupExtraUserMenu='<menurow><<monobook|shortcut=M>>|<<editMonobook|edit>></menurow>';
| + | |
- | popupFixRedirs=true;
| + | |
- | popupRedlinkRemoval=true;
| + | |
- | extraPopupFilters=[
| + | |
- | function(data) { if (/[{]{2}[Ff]eatured article[}]{2}/.test(data) )
| + | |
- | return '<img src="http://upload.wikimedia.org/wikipedia/en/thumb/c/cf/Cscr-featured.png/7px-Cscr-featured.png">';
| + | |
- | else return ''; }
| + | |
- | ];
| + | |
- | if (!isIE) { popupStructure='menus'; }
| + | |
- | popupDragHandle='popupTopLinks';
| + | |
- | popupEditCounterTool='custom';
| + | |
- | popupEditCounterUrl='http://en.wikipedia.org/wiki/User:$1?ectarget=$1';
| + | |
- | //popupModifier='shift';
| + | |
- | /**
| + | |
- | * IE nonsense
| + | |
- | */
| + | |
- | | + | |
- | if (isIE) {
| + | |
- | document.write('<link rel="stylesheet" type="text/css" href="http://localhost:8080/js/ie.css">');
| + | |
- | }
| + | |
- | | + | |
- | /**
| + | |
- | * 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:Hotbot/annoy.js]]');
| + | |
- | //window.annoy={ freq: 1000*60*15, duration: 1000*60,
| + | |
- | // target: 'http://en.wikipedia.org/wiki/Wikipedia:Recovering_from_Wikipediholism' };
| + | |
- | | + | |
- | // Show diffs on recent changes, history pages and so on
| + | |
- | // loadJS('[[User:Hotbot/recentdiffs.js]]');
| + | |
- | | + | |
- | // loadJS('[[User:Hotbot/editblind.js]]');
| + | |
- | | + | |
- | // addOnloadHook(function(){window.popupShortcutKeys=true;}); // for testing
| + | |
- | | + | |
- | // if (location.href == "http://en.wikipedia.org/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 + '.wikipedia.org/w/index.php?title=' + page +
| + | |
- | '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
| + | |
- | }
| + | |
- | | + | |
- | //</nowiki></pre>
| + | |