User:Gimmetrow/monobook.js

// /*** based on User:Lightdarkness/monobook.js's include function ***/ function inc (file) { var file2 = file.substring(2, file.length-2); mw.loader.load('/w/index.php?title='+file2+'&action=raw&ctype=text/javascript&dontcountme=s'); //var lt = String.fromCharCode(60); //var gt = String.fromCharCode(62); //document.writeln(lt+'script type="text/javascript" src="/w/index.php?title='+file2+'&amp;action=raw&amp;ctype=text/javascript&amp;dontcountme=s"'+gt+lt+'/script'+gt); } // inc("User:Lupin/popups.js"); inc("User:Lupin/recent2.js"); // inc("User:AndyZ/peerreviewer.js"); // does this still work? allSpaces_PR = true;       //use link on all namespaces select_PR = true;          //select text upon opening toolbarLink_PR = true;     //creates link in normal mode also (instead of just edit mode) spellcheck_PR = true;      //simple spell-checker toolbar_PR = "tb";           //link in toolbar inc("User:Dr_pda/prosesize.js"); // prose size calculator inc("User:Dr_pda/articlehistory.js"); // oldid tool inc("User:Gimmetrow/edit0.js") // copied from User:Clindberg/monobook.js inc("User:Gimmetrow/regexp.js"); // regexp tools inc("User:Gimmetrow/dates.js"); // dates tools inc("User:Gimmetrow/fixRefs.js"); // fixref tools inc("User:Gimmetrow/MOS.js"); // MOS tools //inc("User:Gimmetrow/dynabars.js"); // dynamic navbar testing //inc("User:Gimmetrow/qprev.js"); // quick preview inc("User:Gimmetrow/clock.js"); // clock+purge // inc("User:Gimmetrow/unotice.js"); // test // inc("User:Gimmetrow/unnotice.js"); // test inc("User:Dr_pda/editrefs.js"); // tryout

// inc("User:Lightmouse/monobook.js/script.js]]"); // alt dates tool //from WikiProject_User_scripts/Scripts/Add_tab function addTab(url, name, id, title, key) { return mw.util.addPortletLink('p-cactions', url, name, id, title, key); } //Please leave the following line //User:Where/usertabs addOnloadHook(function { if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history     return;  }  if (document.title.indexOf("User:") == 0 || document.title.indexOf("User talk:") == 0) {     username_a = document.URL.match(/:.*:(.*)/);     username=username_a[1];     addTab("http://en.wikipedia.org/wiki/Special:Contributions/" + username, "contrib", "ca-contrib", "contribs", "");     addTab("http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=move&user=" + username, "page moves", "ca-pagemoves", "page moves", "");     addTab("http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=block&user=" + username, "block log", "ca-blog", "blog", "");     addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki_p&user=" + username, "edit count", "ca-kate", "kate", "");  } }); popupOnEditSelection = false; imagePopupsForImages = false; //popupSubPopups = false; popupLastEditLink = false; popupSummaryData = false; popupImages = false; popupDelay = 1.0; popupQueriedRevertSummary = 'JS: Restore oldid=$1 dated $2 by $3'; popupQueriedRevertToPreviousSummary = 'JS: Revert to oldid=$1 dated $2 by $3'; // inc("User:Cryptic/dblredir.js"); // doesn't seem to work now //inc("User:Voice_of_All/Addtabs/monobook.js"); //inc("User:Interiot/Tool2/code.js"); // old edit counter //inc("User:Where/usertabs"); // tabs on user pages (***doesn't seem to like inc) //inc("User:Clindberg/monobook.js"); // edit0 //inc("User:VoA/monobook.js"); // big set of tools //document.write('<\/SCRIPT>'); //from WikiProject_User_scripts/Scripts/Add_LI_link /* function addlilink(node, href, text, id, tooltip, accesskey) { // the code below is mostly copied from mw.util.addPortletLink var link = document.createElement( "a" ); link.appendChild( document.createTextNode( text ) ); link.href = href; var item = document.createElement( "li" ); item.appendChild( link ); if ( id ) item.id = id; if ( accesskey ) { link.setAttribute( "accesskey", accesskey ); tooltip += " ["+accesskey+"]"; } 	if ( tooltip ) { link.setAttribute( "title", tooltip ); } 	updateTooltipAccessKeys( new Array( link ) ); node.appendChild( item ); return item; } */ //inc("User:Omegatron/monobook.js/addlink.js"); /* A helper function to add a button to one of the toolbars in the interface. */ /* function addLink(where, url, name, id, title, key, after) { // addLink accepts either an id or a DOM node, mw.util.addPortletLink only takes a node if (after && !after.cloneNode) after = document.getElementById(after);

return mw.util.addPortletLink(where, url, name, id, title, key, after); } */ //document.write(' ');