THE WUW IS OPEN FOR BUSINESS
(even if you aren't vegan)

Difference between revisions of "User:Bluebry/monobook.js"

From Wiki User Wiki
Jump to: navigation, search
(hmm)
 
(No difference)

Latest revision as of 16:40, 24 December 2008

 function addQuickbarLink(href, title, before)
 {
  var li = document.createElement('li');
  var a = document.createElement('a');
  a.appendChild(document.createTextNode(title));
  a.href = href;
  li.appendChild(a);
  if (!before)
  {
    document.getElementById('pt-logout').parentNode.appendChild(li);
  }
  else
  {
    before = document.getElementById('pt-'+before);
    before.parentNode.insertBefore(li, before);
  }
 }
 function addLinks()
 {
  addQuickbarLink("http://fanstuff.hrwiki.org/index.php/Main_Page", "Fanstuff", "");
addQuickbarLink("http://z13.invisionfree.com/Fanstuff/index.php?", "Forum", "");
  addQuickbarLink("irc://irc.freenode.net/hrwiki", "IRC", "");
  addQuickbarLink("irc://irc.freenode.net/hrwiki-fanstuff", "fanstuff IRC", "");
  addQuickbarLink("irc://irc.freenode.net/hrwiki-rc", "RC IRC", "");
 addQuickbarLink("http://www.hrwiki.org/index.php/HRWiki:Featured_Article_Selection", "Featured Article Selection", "");
 }
 if (window.addEventListener) window.addEventListener('load', addLinks, false);
 else if (window.attachEvent) window.attachEvent('onload', addLinks);