User:Queex/vector.js

function makecute { var blocklinks = getElementsByClassName(document.getElementById('bodyContent'),"*","mw-usertoollinks"); var goobgoobgjoob = new Array; var rollbacklinks = getElementsByClassName(document.getElementById('bodyContent'),"*","mw-rollback-link"); for (var j = 0; j< blocklinks.length; j++) { goobgoobgjoob = blocklinks[j].getElementsByTagName('a'); var talka = goobgoobgjoob[0]; talka.innerHTML = "t"; if (goobgoobgjoob.length == 2) { var conta = goobgoobgjoob[1]; conta.innerHTML = "c"; } }  for (var j = 0; j< rollbacklinks.length; j++) { var rva = rollbacklinks[j].getElementsByTagName('a')[0]; rva.innerHTML = "rv"; } } addOnloadHook(makecute);

function editlead { var header = document.getElementsByTagName('h1'); var headerHTML = header[0].innerHTML; var anchor = document.createElement('a'); anchor.href = "/w/index.php?title=" + wgPageName + "&action=edit&section=0"; anchor.innerHTML = "edit"; var span = document.createElement('span'); span.setAttribute('class', "editsection"); span.appendChild(document.createTextNode("[")); span.appendChild(anchor); span.appendChild(document.createTextNode("]")); header[0].appendChild(span); } addOnloadHook(editlead);