There are 6 previous versions of this script.
// ==UserScript==
// @name serials.ws ==> crap/ad/spam killer
// @namespace #
// @description Shows only the real search results and rewrites the link to open new box, turning this site into something nice.
// @version 0.2.6
// @include http://*serials.ws/*
// ==/UserScript==
function single(A, B) {return document.evaluate(A, B || document, null, 9, null).singleNodeValue;}
function remove(A) {if(A) A.parentNode.removeChild(A);}
function $(A) {return document.getElementById(A);}
function loop(A, B) {
A = document.evaluate(A, document, null, 6, null);
var i = A.snapshotLength, a;
while(a=A.snapshotItem(--i)) B(a, i);
}
remove(single("//b[text()='Last 20 referers:']/.."));
loop("//td/a[starts-with(@href,'javascript')]", function(link) {
link.href = "/d.php?n="+link.href.match(/\d+/)[0];
link.target = "_blank";
});
remove(single("//b[text()='speed']/../../../.."));
function selector(e) {
this.select();
}
if(/d\.php/.test(location.href)) {
var t = document.getElementsByTagName("textarea")[0];
t.value = t.value.replace(/\s*(?:your|registration)\s*/gi, "\n").replace(/\n{2,}/g, "\n");
if(t.value.match(/(?:(?:nam|nombr)e)(?: is)?\s*:\s*(.+)\s*(?:s\/n|serial|code)(?: is)?\s*:\s*(.+)/i)) {
function makeIn(t) {var z=document.createElement("input");z.value=t;z.setAttribute("style", "width:100%;");z.addEventListener("click", selector, false);return z;}
var d = document.createElement("table");
var r1 = d.insertRow(0), r2 = d.insertRow(-1);
var c1 = r1.insertCell(-1), c2 = r1.insertCell(0), c3 = r2.insertCell(-1), c4 = r2.insertCell(0);
c2.textContent = "Name:";
c1.appendChild(makeIn(RegExp.$1));
c4.textContent = "Serial:";
c3.appendChild(makeIn(RegExp.$2));
d.setAttribute("style", "background: white;color:black;font-weight:bold;width:100%;");
document.body.appendChild(d);
}
} else {
t.addEventLisener("click",selector, false);
}
