User:Homestar tiger/monobook.js
From Grundy Wiki
< User:Homestar tiger(Difference between revisions)
Current revision as of 18:47, 18 May 2007
/* <nowiki> */ window.onload = Main; function Main() { addtoolboxlinks(); 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; } function addtoolboxlinks() { var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0]; addlilink(tb, '/grundy_wiki/Grundy_Wiki:About', 'Thing to work on', ''); addlilink(tb, '/grundy_wiki/Special:Blockip', 'Bye-bye., ''); addlilink(tb, '/grundy_wiki/Flash_Grundy', 'Flashy!',''); addlilink(tb, '/grundy_wiki/Template:MainPageNews', 'Main page news', ''); } /* </nowiki> */