User:Polyglot/monobook.js

popupAdminLinks=true; popupOnEditSelection=false;

//Import local script asyncronously (to avoid slowing page load too much) window.setTimeout(function {importScriptURI('http://localhost/0/wt/javascript/creation.js');}, 100);

//importScript('User:Lupin/popups.js','en.wikipedia.org','114364398'); //importScript('User:Connel MacKenzie/mess-with-popups.js'); //importScript('MediaWiki:SectionWatchLinks.js‎');

//importScript('User:Conrad.Irwin/parser.js');

//importScript('User:Conrad.Irwin/iwiki.js');

importScript('MediaWiki:langcode2name.js');

//importScript('User:Conrad.Irwin/edittools.js');

//importScript('User:Connel MacKenzie/ajaxtranslinks.js');

//importScript('User:Conrad.Irwin/ipa2sampa.js');

//importScript('User:Conrad.Irwin/feedback.js');

//importScript('User:Conrad.Irwin/isblocked.js');

//importScript('User:Conrad.Irwin/aspell.js');

// importScript('User:Conrad.Irwin/citationstab.js'); in Common.js

//importScript('User:TheDaveRoss/CIDR.js');

if(wgPageName=='Special:Search'){ importScript('User:Conrad.Irwin/searchtoggles.js'); } /* importScript('User:Conrad.Irwin/navframes.js');



document.onclick = function{ document.beenUsed = true };

addOnloadHook( function{    if(!document.beenUsed){      var input = document.getElementById('bodySearchIput');      if(! input) input = document.getElementById('searchInput');     if(input)input.focus;    }  } );

/* Let's see about those Tooltips */ $( function{ for( var lnk in document.getElementsByTagName('a') ){    if(lnk.title && lnk.title.indexOf(':')){      lnk.title = lnk.title.replace(/^w:(.*)$/,"$1 on Wikipedia");    }  } } );

/* $ (function {  importExternalScript ('http://en.wikipedia.org/w/api.php?format=json&titles='+encodeURIComponent (wgPageName)+'&action=query&callback=replyFromWikipedia') })



function replyFromWikipedia (obj) {

exists = true;

try{ if (obj['query']['pages']['-1']) exists = false; }catch (e){ exists = false; } window.title+=exists }