(even if you aren't vegan)
User:NachoMan/monobook.js
From Wiki User Wiki
< User:NachoMan
Revision as of 16:06, 17 August 2010 by Tyrannosaurus Lex (talk | contribs) (moved User:Andy "black" mcdarknesscurse/monobook.js to User:NachoMan/monobook.js over redirect: Automatically moved page while renaming the user "Andy "black" mcdarknesscurse" to "NachoMan")
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
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://wuw.clamburger.org/wiki/Category:To_Be_Deleted", "To Be Deleted, "");
addQuickbarLink("http://wuw.clamburger.org/wiki/Special:WhosOnline", "Who's Online, "");
addQuickbarLink("http://wuw.clamburger.org/wiki/Special:UnusedImages", "Unused Files, "");
}
if (window.addEventListener) window.addEventListener('load', addLinks, false);
else if (window.attachEvent) window.attachEvent('onload', addLinks);