User:Spencemac724/monobook.js

/* */

// from WikiProject User scripts/Scripts/User Contribs Tabs // modified by me addOnloadHook(function {

// remove special pages if (wgCanonicalNamespace == "Special" || wgCanonicalNamespace == "Media") { return; }

// user and user talk links if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {

if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) { // don't include history or subpages return; }

var username = encodeURIComponent( wgTitle ); addHeaderLink("http://samspade.org/whois?query=" + username, "whois", "", "]"); addHeaderLink("/index.php?title=Special:Log&type=block&page=User:" + username, "blocks", "", "&#183;"); addHeaderLink("/wiki/Special:Editcount/" + username, "count", "", "&#183;"); addHeaderLink("/wiki/Special:Contributions/" + username, "contribs", "[", "&#183;"); }

// remove problem report tab - it's annoying var problemReport = document.getElementById("ca-report-problem");

if (problemReport) { problemReport.innerHTML = ' '; } });

function addHeaderLink( url, title, begin, end ) { var divContainer = document.createElement("span"); var anchor = begin + '' + title + '' + end; divContainer.innerHTML = ' ' + anchor + ' '; var coos = document.getElementById("coordinates"); if(coos) coos.style.right = "4.5em"; document.getElementById("content").insertBefore(		divContainer, document.getElementsByTagName("h1")[0]);

}

/* */