User:LordTBT/monobook.js

function hiderollback { if(document.title.indexOf('User contributions')==-1) return; var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; var botlink = document.location.href; if(botlink.indexOf('?')==-1) { botlink += '?bot=1'; } else { botlink += '&bot=1'; } var botlink = addlilink(tabs, botlink, '&bot=1', 'ca-bot'); } addOnloadHook(hiderollback)

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