Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// Returns <li><a href="url">name</a></li>functionaddlilink(url,name){varna=document.createElement('a');na.setAttribute('href',url);vartxt=document.createTextNode(name);na.appendChild(txt);varli=document.createElement('li');li.appendChild(na);returnli;}// Get's the URL version of the page title.functionget_tidy_title(){vareditlk=document.getElementById('ca-edit').getElementsByTagName('a')[0].href;// cut everything up to "title=" from the start and everything past "&action=edit" from the endeditlk=editlk.substring(editlk.indexOf('title=')+6,editlk.lastIndexOf('&action=edit'));returneditlk;}functionadd_image_tabs(){varimagetitle=get_tidy_title();varc1=document.getElementById('column-one');vartabs=c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];tabs.appendChild(addlilink('http://www.juelich.de/avatar/check-usage/check-usage.php?filename='+imagetitle+'&template','check-usage'));}functiondo_onload(){if(document.title.indexOf('Image:')==0)add_image_tabs();if(document.title.indexOf('User:')==0||document.title.indexOf('User talk:')==0)add_block_tab();elseif(document.title.indexOf('Block user')==0)// could stand to be more robustdo_blockip_stuff();}if(window.addEventListener)window.addEventListener("load",do_onload,false);elseif(window.attachEvent)window.attachEvent("onload",do_onload);