User:EVula/monobook.js

// adding persistent link to my reference page addOnloadHook(ppersonal) function ppersonal { //example of adding a p-personal item. var tb = document.getElementById('p-personal').getElementsByTagName('ul')[0]; addlilink(tb, '/wiki/User:EVula/admin', 'admin', 'pt-admin'); ta['pt-admin'] = ['1', 'admin']; akeytt; //refresh tooltip additions }

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; }