User:Bastique/sandbox/monobook.js

function runOnloadHook{ urlString = document.location.search; if(urlString.search("newusers")>0){ bC = document.getElementById("bodyContent"); liArray = bC.getElementsByTagName("li"); for(i=0;i<liArray.length;i++){ liANode = liArray[i].childNodes[1]; liANodeNext = liArray[i].childNodes[2]; liA = liANode.innerHTML; newAtext = "http://en.wikipedia.org/w/index.php?title=Special:Blockip&action=submit&wpBlockAddress="; newAtext = newAtext + liA; newAtext = newAtext + "&wpBlockExpiry=infinite&wpBlockReason=&wpEditToken= "; xliA = liArray[i].childNodes[1].cloneNode(true); liArray[i].appendChild(xliA,liANodeNext); xliA.innerHTML = " (Quick Block) "; xliA.href = newAtext; } } }