Jump to content

User:DanKeshet/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DanKeshet (talk | contribs) at 08:58, 8 August 2004 (try again). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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 off tool tips
ta = false

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

function moveToolsToTabs() {
  // Move what links here and Related Changes into tabs at top
  // (they have to do with document, so they belong there.)
  var wlh = document.getElementById("t-whatlinkshere");
  var rcl = document.getElementById("t-recentchangeslinked");
  var tab_list = document.getElementById("ca-watch").parentNode;
  tab_list.appendChild(wlh);
  tab_list.appendChild(rcl);
}