User:Citicat/monobook.js

// Wikipedia:Tools/Navigation popups mw.loader.load('/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript' ); mw.loader.load('/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=ctype=text/css', 'text/css');

// install User:Cacycle/wikEd in-browser text editor document.write('');

importScript('Wikipedia:WikiProject User scripts/Scripts/AutoAFD.js');

importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');

// jncsp-start The section below (up to jncsp-end) is maintained by WikiProject_User_scripts/User-script_manager // jncsp-config

if (location.href == "http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/User-script_manager") document.write(' ');

// jncsp-end

// var isIE=((self.navigator.appName).indexOf("Microsoft")!=-1);

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'); loadJS('User:Zocky/PicturePopups.js'); }

//

/* Script to warn you if your userpage is changed by another user. By User:ais53. Note that the message persists until you edit your userpage yourself. */ function upm_checkthisisme(xmlreq) { var junk; try {   var ed=xmlreq.responseText.split('"+ed.split('<').join('&lt;').split('>').join('&gt;').split('&').join('&amp;')+""+ " (your userpage, "+      "last change)"; } catch(junk) {}; }

$(function{ if (typeof sajax_init_object === 'undefined') return'  var a = sajax_init_object;  if(!a) return;  a.open('GET', mw.config.get('wgServer')+mw.config.get('wgScriptPath')+'/api.php?action=query&prop=revisions&titles=User:'+ encodeURI(mw.config.get('wgUserName'))+'&rvlimit=1&rvprop=user&format=xml'); a.send('');  a.onreadystatechange = function{if(a.readystate==4) upm_checkthisisme(a)}; });

/** * Popups stuff */

//window.localCSS=true; //loadJS('User:Lupin/popupsdev.js'); tmpJS('popupsdev.js'); popupAdminLinks=true; popupShortcutKeys=true; popupFixDabs=true; popupPreviewKillTemplates=false; popupPreviewFirstParOnly=false; popupOnlyArticleLinks=false; popupEditCounterTool='interiot'; popupExtraUserMenu=' <>|<> '; popupFixRedirs=true; popupRedlinkRemoval=true; extraPopupFilters=[ function(data) { if (/[{]{2}[Ff]eatured article[}]{2}/.test(data) ) return ''; 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(''); }

/** * messy stuff */

function fixWatchlistLink { for (var i=0; i0) { 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.wikipedia.org/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.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(' '); }

function loadJS(page){ page=page.replace(/^\[\[(.*)\]\]$/, '$1'); var lang='en'; if (page.match(/^(.*?):(.*:.*)/)) { lang=RegExp.$1; page=RegExp.$2; } document.write(' '); }

//