User:Oxymoron83/blockadd.js

/* */ if ( wgPageName == "Special:Block" ) { var NOS = 12; //Number of socks var aSocks = new Array (NOS); var aDescr = new Array (NOS);

aSocks[0] = "User:Grawp"; aDescr[0] = "malicious page moves, hagger"; aSocks[1] = "User:Runtshit"; aDescr[1] = "Rance"; aSocks[2] = "User:Tile join"; aDescr[2] = "genesis, "; aSocks[3] = "User:Serafin"; aDescr[3] = "Copernicus was POLISH, 131.104.128.0/17"; aSocks[4] = "User:General Tojo"; aDescr[4] = "Parkinson's disease, undoes edits from and attacks User:Chris 73 - 88.104.0.0 - 88.107.255.255 etc"; aSocks[5] = "User:Random-5000"; aDescr[5] = "ghosts eat toast, wank; Ghost, Toilet, Beer, Blank, Steven Johns is gay; 121.90.0.0/16"; aSocks[6] = "User:Dingbat2007"; aDescr[6] = "TV - accounts: Word, Fran, Rebafan; AT&T TX: 76.x.x.x, San Diego"; aSocks[7] = "Czech vandal (Administrators' noticeboard/IncidentArchive207)"; aDescr[7] = "71.99.x.x; Czech topics"; aSocks[8] = "User:Mariam83"; aDescr[8] = "reverts to preferred versions on African topics; AT&T TX, Houston"; aSocks[9] = "User:Tooj117"; aDescr[9] = "geek, nerd related; attacks Ohnoitsjamie"; aSocks[10] = "User:Mark753"; aDescr[10] = "nonsense on talk pages - 142.162.0.0/16"; aSocks[11] = "User:Primetime"; aDescr[11] = "Revert to the revision prior to revision x dated y by Will Beback using popups";

//	aSocks[12] = ""; //	aDescr[12] = "";

//build addOnloadHook(blockadd); }

function blockadd { var sitesubadd = document.getElementById('blockip'); var blockLink = new Array (NOS); var cur = sitesubadd.insertBefore(document.createElement('br'), sitesubadd.firstChild); for (var i=0; i<NOS; i++) { blockLink[i] = document.createElement('a'); blockLink[i].href = "javascript:blockexecute(" + i + ")"; blockLink[i].appendChild( document.createTextNode(aSocks[i]) );

cur = sitesubadd.insertBefore(blockLink[i], cur.nextSibling); cur = sitesubadd.insertBefore(document.createTextNode(' — ' + aDescr[i]), cur.nextSibling); cur = sitesubadd.insertBefore(document.createElement('br'), cur.nextSibling); }

cur = sitesubadd.insertBefore(document.createElement('br'), cur.nextSibling); }

function blockexecute(sockid) { if (document.forms["blockip"].wpBlockAddress.value.match(/\d+\.\d+\.\d+\.\d+/)) { document.forms["blockip"].wpBlockReason.value = aSocks[sockid]; document.forms["blockip"].wpBlockOther.value = "24 hours"; } else { document.forms["blockip"].wpBlockReason.value = "Abusing sock puppet accounts: " + aSocks[sockid]; document.forms["blockip"].wpBlockOther.value = "indefinite"; document.forms["blockip"].wpEmailBan.checked = true; document.forms["blockip"].wpAllowUsertalk.checked = false; } } /* */