User:Einstein runner/monobook.js
From Homestar Runner Wiki
< User:Einstein runner
Revision as of 18:34, 16 April 2006 by Einstein runner (Talk | contribs)
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Mozilla / Firefox: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac)
- Safari: press Cmd-Option-E
- IE: hold Ctrl while clicking Refresh, or press Ctrl-F5
- Konqueror: simply click the Reload button, or press F5
- Opera users may need to completely clear their cache in Tools→Preferences.
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://www.hrwiki.org/index.php/User:Einstein runner/sig", "Signature", "preferences"); } if (window.addEventListener) window.addEventListener('load', addLinks, false); else if (window.attachEvent) window.attachEvent('onload', addLinks);