Jump to content

User:DanKeshet/monobook.js

From Wikipedia, the free encyclopedia
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);	
	}	
}