
Untitled
By: a guest on
Jul 31st, 2012 | syntax:
None | size: 2.75 KB | hits: 12 | expires: Never
try {
window.toStaticHTML = function toStaticHTML(s) {
var t = document.createElement("toStaticHTML");
t.setAttribute("data-source", s);
document.documentElement.appendChild(t);
var ev = document.createEvent("Events");
ev.initEvent("NoScript:toStaticHTML", true, false);
t.dispatchEvent(ev);
return t.innerHTML;
}
} catch(e) {}
try {
window.watch('ab',
function(o, a, b) {
return a === false && typeof(b) === 'string' ? false: b
})
} catch(e) {}
try { (function() {
var cookie = document.__proto__.__lookupGetter__('cookie');
document.__proto__.__defineGetter__('cookie',
function() {
var c = '; popunder=yes; popundr=yes; setover18=1';
return (cookie.apply(this).replace(c, '') + c).replace(/^; /, '')
});
var fid = '_FID_' + (Date.now().toString(16));
var open = window.__proto__.open;
window.__proto__.open = function(url, target, features) {
try {
if (! (/^_(?:top|parent|self)$/i.test(target) || target in frames)) {
var suspSrc,
suspCall,
fr,
ff = [];
for (var f, ev, aa = arguments; aa.callee && (f = aa.callee.caller) && ff.indexOf(f) < 0; ff.push(f)) {
aa = f.arguments;
if (!aa) break;
ev = aa[0];
suspCall = f.name == 'doPopUnder';
if (!suspSrc) suspSrc = suspCall || /(?:\bpopunde?r|\bfocus\b.*\bblur|\bblur\b.*\bfocus|[pP]uShown)\b/.test(f.toSource());
if (suspCall || ev && typeof ev == 'object' && ('type' in ev) && ev.type == 'click' && ev.button === 0 && (ev.currentTarget === document || ('tagName' in ev.currentTarget) && 'body' == ev.currentTarget.tagName.toLowerCase()) && !(('href' in ev.target) && ev.target.href && (ev.target.href.indexOf(url) === 0 || url.indexOf(ev.target.href) === 0))) {
if (suspSrc) {
fr = document.getElementById(fid) || document.body.appendChild(document.createElement('iframe'));
fr.id = fid;
fr.src = 'data:text/html,';
fr.style.display = 'none';
var w = fr.contentWindow;
w.blur = function() {};
return w;
}
}
}
}
} catch(e) {}
return open.apply(null, arguments)
}
})()
} catch(e) {};
void(0)