Jump to content

User:Tom-/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tom- (talk | contribs) at 00:18, 1 June 2004. 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.
function __tomAddTab(text, url)
{
  var newListItem = document.createElement("li");
  var newLink = document.createElement("a");
  newLink.appendChild(document.createTextNode(text));
  newListItem.appendChild(newLink);
  document.getElementById("p-cactions").getElementsByTagName("ul")[0].appendChild(newListItem);
}

onload = function()
{
  var tabBar = document.getElementById("p-cactions");
  var toolBox = document.getElementById("p-tb");
  tabBar.appendChild(toolBox.getElementsByTagName("li")[0].cloneNode(true));
  tabBar.appendChild(toolBox.getElementsByTagName("li")[1].cloneNode(true));
alert("moo")
}