User:Onion/monobook.js

importScript('User:Nx/Scripts/botrollback.js');

function hotban(target) { var req = sajax_init_object; req.open('POST', wgServer + wgScriptPath + '/index.php?title=Special:Block&action=submit&wpBlockAddress=' + encodeURIComponent(target) + '&wpBlockExpiry=9%20hours&wpAnonOnly=0&wpEnableAutoblock=1&wpCreateAccount=0&wpBlockReasonList=other&wpBlockReason=Justanothervandal&wpEditToken=' + encodeURIComponent(gettoken_api), true); req.onreadystatechange = function { if(req.readyState==4) { if(req.status==200) { /*alert('B&');*/ } else { alert('Oh noes! ' + req.responseText); }   }  };  req.send(null); }

function setuphotban { var anchors = document.getElementsByTagName('a'); for ( i in anchors ) { if (anchors[i].title != undefined && anchors[i].title.indexOf("Special:Block/") != -1) { target = anchors[i].title.substring(14,anchors[i].title.length); var qba = document.createElement('a'); qba.innerHTML = "| ►◉◄"; qba.style.cursor = "not-allowed"; qbonc(qba,target,hotban); if (anchors[i].nextSibling == undefined) { anchors[i].parentNode.appendChild(document.createTextNode(" ")); anchors[i].parentNode.appendChild(qba); } else { anchors[i].parentNode.insertBefore(qba,anchors[i].nextSibling); anchors[i].parentNode.insertBefore(document.createTextNode(" "),qba); }   }  } } addOnloadHook(setuphotban);