User:Skill/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("/wiki/Special:Editcount/" + username, "count", "]", ""); addHeaderLink("/wiki/Special:Contributions/" + username, "contribs", "[", "&#183;"); }

// lead tab for all pages var title = encodeURIComponent( wgPageName ); addPortletLink("p-cactions", wgServer + "/index.php?title=" + title + "&action=edit&section=0", "edit lead", "ca-lead", "Edit lead"); });

function addHeaderLink( url, title, begin, end ) { var divContainer = document.createElement("span"); var anchor = "";

anchor = begin + '' + title + ''; divContainer.innerHTML = ' ' + anchor + ' '; var coos = document.getElementById("coordinates"); if(coos) coos.style.right = "4.5em"; document.getElementById("content").insertBefore(		divContainer, document.getElementsByTagName("h1")[0]); }