User:SomeStranger/monobook.js

// install User:Cacycle/diff text diff code document.write(' ');

// install User:Pilaf/Live_Preview page preview tool document.write(' ');

// install User:Cacycle/editor edit tool document.write(' ');

// Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); } // END

// User:Lupin/popups.js mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s'); popupFixDabs = true; // END

// Indicate where you would like "Kate" to appear: //   pt-userpage, pt-mytalk, pt-preferences, //   pt-watchlist, pt-mycontris, pt-logout // gsKateInsertBefore = 'pt-mycontris'; // leave blank to append after "logout" // function KateLink { var user = document.getElementById( 'pt-userpage' ).firstChild.firstChild.data;

var li = document.createElement( 'li' ); li.id = 'pt-kate';

var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( 'monobook' ) ); // eh, the css makes the text lowercase a.href = 'http://en.wikipedia.org/wiki/User:SomeStranger/monobook.js';

li.appendChild( a );

if ( ! gsKateInsertBefore ) // append to end (right) of list { document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); } else { var before = document.getElementById( gsKateInsertBefore ); before.appendChild( li, before ); } }  if ( window.addEventListener ) window.addEventListener( 'load', KateLink, false ); else if ( window.attachEvent     ) window.attachEvent   ( 'onload', KateLink ); // END // Script from User:Lupin/recent2.js mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'             + '&action=raw&ctype=text/javascript&dontcountme=s'); // END

// Book Selection function externISBN { for (var i = 0; i < document.links.length; i++) {               var ln = document.links[i].href.match(/isbn=(.*)/); if (ln) { document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1; }   }

} addOnloadHook(externISBN); //

// add tab function function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; return addlilink(tabs, url, name, id, title, key) }; // // // addLastDiff and Tfd addOnloadHook(function {    z=document.getElementById("content").childNodes;    for (var n=0;n<z.length;n++) {       if (z[n].className=="firstHeading") {        var pname=z[n].textContent;      }    }    var l=addTab("http://en.wikipedia.org/w/index.php?title=" + pname + "&diff=cur&oldid=prev", 'last', );    var m=addTab("http://en.wikipedia.org/w/index.php?title=Wikipedia:Templates for deletion", 'tfd', );    l.lastChild.title="Show most recent diff";    m.lastChild.title="Templates for deletion"; }); // // function addlilink(tabs, url, name, id, title, key){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); tabs.appendChild(li); if(id) {       if(key && title) {           ta[id] = [key, title]; }       else if(key) {           ta[id] = [key, '']; }       else if(title) {           ta[id] = ['', title]; }   }    // re-render the title and accesskeys from existing code in wikibits.js    akeytt; return li; } // //

/**** afd helper ****/ document.write(' ');

/* This is to keep track of who is using this extension: User:Jnothman/afd_helper/script.js */ // END // A clock that autoupdates addOnloadHook(loadclock) function loadclock {   // add a clock var title = document.title.split(' - ')[0].split(' (section)')[0].replace('Editing ',''); title = title.replace("+", "%2B").replace("+", "%2B").replace("+", "%2B"); title = title.replace("/", "%2F").replace("/", "%2F").replace("/", "%2F"); title = title.replace("&","%26").replace("&","%26").replace("&","%26"); var toplinks = document.getElementById('p-personal').getElementsByTagName('ul')[0]; addlilink(toplinks, 'http://en.wikipedia.org/w/index.php?title=' + title + '&action=purge', '', 'utcdate'); showtime; }

function showtime {   var timerID; var now = new Date; var timeValue = now.toUTCString.substring(0,22) + " UTC"; document.getElementById('utcdate').firstChild.innerHTML = timeValue; timerID = setTimeout('showtime', 1000); } //

// History tools mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Voice_of_All/History/monobook.js'             + '&action=raw&ctype=text/javascript&dontcountme=s');

//