User:Bobo192/monobook.js

function ppersonal { var tb = document.getElementById('p-personal').getElementsByTagName('ul')[0]; addlilink(tb, '/wiki/User:Bobo192/Sandbox', 'sandbox', 'p-sandbox', 'User:Bobo192/Sandbox', '1'); addlilink(tb, '/w/index.php?title=Special:Recentchanges&limit=10&hideliu=1', 'RC-10', 'p-rc10', 'Special:Recentchanges&limit=10&hideliu=1', '4'); addlilink(tb, '/w/index.php?title=Special:Recentchanges&limit=15&hideliu=1', 'RC-15', 'p-rc15', 'Special:Recentchanges&limit=15&hideliu=1', '5'); addlilink(tb, '/wiki/User:Bobo192/Football club seasons', 'FCS', 'p-FCS', 'User:Bobo192/Football club seasons', '7')

} addOnloadHook(ppersonal);

function addlilink(tabs, url, name, id, title, key) { var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); tabs.appendChild(li); if(id) {       if(key && title) {           ta[id] = [key, title]; }       else if(key) {           ta[id] = [key, '']; }       else if(title) {           ta[id] = ['', title]; }   }    // re-render the title and accesskeys from existing code in wikibits.js    akeytt; return li; }