User:Super Sonic X/monobook.js
From Homestar Runner Wiki
< User:Super Sonic X
Revision as of 06:24, 10 January 2009 by Super Sonic X (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.
/* NOT MY OWN WORK. MADE BY OTHER USERS. */
/* <nowiki> */
/* Thanks to http://en.wikipedia.org/wiki/User:Trilobite/Tools for the below tweaks! */
window.onload = Main;
function Main() {
addtoolboxlinks();
LivePreviewInstall();
morelinks();
}
/* Adds some useful links to the "toolbox" on the sidebar. */
function addlilink(tabs, url, name, id) {
var na = document.createElement('a');
na.href = url;
na.id = id;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
/* I don't mind if the following section is copied. */
function addtoolboxlinks() {
var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
addlilink(tb, 'http://s13.invisionfree.com/Fanstuff/', 'Forum','');
addlilink(tb, '/index.php/User:Super Sonic X/Sig', 'Edit Signature', '');
}
/* Adds "LivePreview" [http://en.wikipedia.org/wiki/User:Pilaf/Live_Preview]. */
wpUserName = 'Super Sonic X';
wpShowImages = true;
document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* </nowiki> */
