Jump to content

User:DanKeshet/monobook.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by DanKeshet (talk | contribs) at 09:26, 8 August 2004 (once more, with feeling (I hate javascript)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//turn tooltips off
ta = false;

if (window.addEventListener) window.addEventListener("load",movelinks,false);
else if (window.attachEvent) window.attachEvent("onload",movelinks);

//move toolbox links to the top
function movelinks() {
	var wlh = document.getElementById("t-whatlinkshere");
	var rcl = document.getElementById("t-recentchangeslinked");
	var cactions = document.getElementById("p-cactions")
	var tab_list = null;
	var kids = cactions.childNodes
	for (var x=0; x<kids.length; x++) {
		if (kids[x].tagName == 'UL') {
			tab_list = kids[x];
			break;
		}
	}
	if (tab_list != null) {
		tab_list.appendChild(wlh);
		tab_list.appendChild(rcl);	
	}	
}