Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 31st, 2012  |  syntax: None  |  size: 2.75 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. try {
  2.     window.toStaticHTML = function toStaticHTML(s) {
  3.         var t = document.createElement("toStaticHTML");
  4.         t.setAttribute("data-source", s);
  5.         document.documentElement.appendChild(t);
  6.         var ev = document.createEvent("Events");
  7.         ev.initEvent("NoScript:toStaticHTML", true, false);
  8.         t.dispatchEvent(ev);
  9.         return t.innerHTML;
  10.     }
  11. } catch(e) {}
  12. try {
  13.     window.watch('ab',
  14.     function(o, a, b) {
  15.         return a === false && typeof(b) === 'string' ? false: b
  16.     })
  17. } catch(e) {}
  18. try { (function() {
  19.         var cookie = document.__proto__.__lookupGetter__('cookie');
  20.         document.__proto__.__defineGetter__('cookie',
  21.         function() {
  22.             var c = '; popunder=yes; popundr=yes; setover18=1';
  23.             return (cookie.apply(this).replace(c, '') + c).replace(/^; /, '')
  24.         });
  25.         var fid = '_FID_' + (Date.now().toString(16));
  26.         var open = window.__proto__.open;
  27.         window.__proto__.open = function(url, target, features) {
  28.             try {
  29.                 if (! (/^_(?:top|parent|self)$/i.test(target) || target in frames)) {
  30.                     var suspSrc,
  31.                     suspCall,
  32.                     fr,
  33.                     ff = [];
  34.                     for (var f, ev, aa = arguments; aa.callee && (f = aa.callee.caller) && ff.indexOf(f) < 0; ff.push(f)) {
  35.                         aa = f.arguments;
  36.                         if (!aa) break;
  37.                         ev = aa[0];
  38.                         suspCall = f.name == 'doPopUnder';
  39.                         if (!suspSrc) suspSrc = suspCall || /(?:\bpopunde?r|\bfocus\b.*\bblur|\bblur\b.*\bfocus|[pP]uShown)\b/.test(f.toSource());
  40.                         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))) {
  41.                             if (suspSrc) {
  42.                                 fr = document.getElementById(fid) || document.body.appendChild(document.createElement('iframe'));
  43.                                 fr.id = fid;
  44.                                 fr.src = 'data:text/html,';
  45.                                 fr.style.display = 'none';
  46.                                 var w = fr.contentWindow;
  47.                                 w.blur = function() {};
  48.                                 return w;
  49.                             }
  50.                         }
  51.                     }
  52.                 }
  53.             } catch(e) {}
  54.             return open.apply(null, arguments)
  55.         }
  56.     })()
  57. } catch(e) {};
  58. void(0)