Skip to content

Instantly share code, notes, and snippets.

@dvlop
Forked from theseanl/README.md
Created March 3, 2024 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvlop/7417b49c438f96f02454b2571b9548f3 to your computer and use it in GitHub Desktop.
Save dvlop/7417b49c438f96f02454b2571b9548f3 to your computer and use it in GitHub Desktop.
Collecting popup/popunder scripts.

Collecting popup/popunder scripts.

Obnoxious ones

  1. dai0eej.bid, found in http://www.nowvideo.li/video/81e35ec6727ee
  2. onclasrv.com, found in https://thehiddenbay.xyz/

Ordinary ones

  1. watchmygf.me, found in http://www.watchmygf.me/
  2. bravotube.net, found in http://www.bravotube.net/videos/perfect-babe-wakes-up-mom-s-boyfriend-and-fucks-him-like-an-animal/?promoid=14723235008740
  3. vidto.me, found in http://vidto.me/a0c8gij8072t.html
// Original source: http://www.bravotube.net/js/_p4.php
var config = {
th_zone: 24966,
th_hours: 12
},
currentScript;
currentScript = document.currentScript || document.scripts[document.scripts.length - 1];
currentScript.parentNode.removeChild(currentScript);
! function(d, e) {
function u(a) {
a = e.querySelector("meta[name='" + a + "']");
return null !== a ? a.getAttribute("content") : ""
}
function v(a) {
var b, f, c, d = e.cookie.split(";");
for (b = 0; b < d.length; b += 1)
if (f = d[b].substr(0, d[b].indexOf("=")), c = d[b].substr(d[b].indexOf("=") + 1), f = f.replace(/^s+|s+$/g, ""), f === a) return decodeURIComponent(c)
}
function h(a, b, c) {
a.addEventListener ? a.addEventListener(b, c, !1) : a.attachEvent ? (a["e" + b + c] = c, a[b + c] = function() {
a["e" + b + c](d.event)
}, a.attachEvent("on" + b, a[b + c])) : a["on" + b] = a["e" + b + c]
}
var c, g, p = encodeURIComponent((u("keywords") + " " + u("description") + " " + e.title).replace(/W/g, " ").replace(/[ ]{2,}/g, " ").trim()).substring(0, 500),
q = "undefined" != typeof d.config && "undefined" != typeof d.config.th_zone && parseInt(d.config.th_zone, 10) ? d.config.th_zone : 32813,
w = "undefined" != typeof d.config && "undefined" != typeof d.config.th_hours && parseInt(d.config.th_hours, 10) ? d.config.th_hours : 12,
n = encodeURI((new Date).getTime()),
k = "https://ab.advertiserurl.com/aff/zbo.php?offer=ZS&sub=" + q + "&sub2=32813&loc=" +
p + "&cb=" + n,
r = "th-pop-" + q,
p = v(r),
l = null;
if (Date.prototype.addHours = function(a) {
return this.setHours(this.getHours() + a), this
}, c = {
settings: {
top: d.screenTop || d.screenY,
left: d.screenLeft || d.screenX,
width: d.innerWidth || e.documentElement.clientWidth,
height: d.innerHeight || e.documentElement.clientHeight
},
init: function() {
var a = c.browser;
if (l = d.self, d.top !== d.self) try {
d.top.document.location.toString() && (l = d.top)
} catch (b) {}
return a.isMobile.any(l) ? void c.binders.mobile() : a.is.msie ? void c.binders.firefox() : a.is.firefox ?
void c.binders.firefox() : a.is.chrome && a.versionBetween(33, 40) && -1 !== navigator.appVersion.indexOf("Mac") ? void c.binders.chrome31() : a.is.chrome && a.versionBetween(30, 40) && -1 !== navigator.appVersion.indexOf("Mac") ? void c.binders.chrome30_mac() : a.is.chrome && a.versionOlderThan(30) ? void c.binders.chromeUntil30() : a.is.chrome && a.versionIs(30) ? void c.binders.chrome30() : a.is.chrome && a.versionBetween(31, 40) ? void c.binders.chrome31() : a.is.chrome && a.versionFrom(41) ? void c.binders.chrome41() : a.is.safari ? void c.binders.safari() :
void c.binders.firefox()
},
windowParams: function() {
return "width=" + c.settings.width + ",height=" + c.settings.height + ",top=" + c.settings.top + ",left=" + c.settings.left + ",scrollbars=1,location=1,toolbar=0,menubar=0,resizable=1,statusbar=1"
},
status: {
opened: !1
},
opened: function() {
return c.status.opened || v(r)
},
setAsOpened: function() {
this.status.opened = !0;
var a;
a = new Date;
a.addHours(w);
a = encodeURIComponent(1) + "; expires=" + a.toUTCString() + "; domain=" + d.location.host + "; path=/";
e.cookie = r + "=" + a
},
preventDefault: function(a) {
return a.preventDefault &&
a.preventDefault(), a.returnValue = !1, !1
},
findParentLink: function(a) {
var b = 0;
if (null === a.getAttribute("target") && "html" !== a.nodeName.toLowerCase())
for (; a.parentNode && 4 >= b && "html" !== a.nodeName.toLowerCase() && (b += 1, a = a.parentNode, "a" !== a.nodeName.toLowerCase() || "" === a.href););
return a
},
triggers: {
firefox: function() {
if (c.opened()) return !0;
var a = "about:blank",
b = c.windowParams();
(b = l.window.open(a, n, b)) && (b.blur(), -1 < navigator.userAgent.toLowerCase().indexOf("applewebkit") && (l.window.blur(), l.window.focus()),
b.Init = function(b) {
b.Main = function() {
var c;
a = b.Params.PopURL;
"undefined" != typeof d.mozPaintCount ? (c = b.window.open("about:blank"), c.close()) : -1 < navigator.userAgent.toLowerCase().indexOf("chrome/2") && (c = b.window.open("about:blank"), c.close());
try {
b.opener.window.focus()
} catch (y) {}
b.window.location = a;
b.window.blur()
};
b.Main()
}, b.Params = {
PopURL: k
}, b.Init(b));
c.setAsOpened()
},
chromeUntil30: function() {
if (c.opened()) return !0;
d.open("javascript:window.focus()", "_self");
var a = d.open("about:blank", n, c.windowParams()),
b = e.createElement("a"),
f = e.createEvent("MouseEvents");
b.setAttribute("href", "data:text/html,<script>window.close();\x3c/script>");
b.style.display = "none";
e.body.appendChild(b);
f.initMouseEvent("click", !0, !0, d, 0, 0, 0, 0, 0, !0, !1, !1, !0, 0, null);
b.dispatchEvent(f);
e.body.removeChild(b);
a.document.open().write("<script type='text/javascript'>window.location='" + k + "';\x3c/script>");
a.document.close();
c.setAsOpened()
},
chrome30: function(a) {
if (c.opened()) return !0;
var b = e.createElement("a"),
f = e.createEvent("MouseEvents");
a = a.target || a.srcElement;
b.href = "javascript:window.open('" + k + "','" + n + "','" + c.windowParams() + "')";
e.body.appendChild(b);
b.webkitRequestFullscreen();
f.initMouseEvent("click", !0, !0, d, 0, 0, 0, 0, 0, !1, !1, !0, !1, 0, null);
b.dispatchEvent(f);
e.webkitCancelFullScreen();
setTimeout(function() {
d.getSelection().empty()
}, 250);
a.click();
c.setAsOpened()
},
chrome41: function(a) {
if (c.opened()) return !0;
var b, f = d.location.href,
e = a.target || a.srcElement;
"a" !== e.nodeName.toLowerCase() && (e = c.findParentLink(e));
null !== e.getAttribute("href") &&
-1 === e.getAttribute("href").indexOf("javascript:") && (f = e.getAttribute("href"));
e = f;
return !(e = e.split("?")[0], /^https?:\/\/(?:[a-z0-9\-]+\.)+[a-z0-9]{2,6}(?:\/[^\/#?]+)+\.(?:jpg|gif|png)$/i.test(e)) && (b = d.open(d.location), b.location = f, c.setAsOpened(), l.document.location = k, void 0 !== a.preventDefault && (a.preventDefault(), a.stopPropagation()), void c.setAsOpened())
},
safari: function() {
if (c.opened()) return !0;
var a = l.window.open(k, n, c.windowParams()),
b = d.top.window.document.createElement("a"),
f = d.top.window.document.createEvent("MouseEvents");
a && (a.blur(), a.opener.window.focus(), d.self.window.focus(), d.focus(), b.href = "data:text/html,<script>window.close();\x3c/script>", e.getElementsByTagName("body")[0].appendChild(b), f.initMouseEvent("click", !1, !0, d, 0, 0, 0, 0, 0, !0, !1, !1, !0, 0, null), b.dispatchEvent(f), b.parentNode.removeChild(b));
c.setAsOpened()
},
tab: function() {
if (c.opened()) return !0;
var a = k ? k : "data:text/html,<script>window.close();\x3c/script>;",
b = d.top.window.document.createElement("a"),
f = e.createEvent("MouseEvents");
b.href = a;
e.getElementsByTagName("body")[0].appendChild(b);
f.initMouseEvent("click", !0, !0, d, 0, 0, 0, 0, 0, !0, !1, !1, !0, 0, null);
b.dispatchEvent(f);
b.parentNode.removeChild(b);
c.setAsOpened()
},
mobile: function(a) {
if (c.opened()) return !0;
var b = null,
f = !1;
if ("undefined" != typeof a) {
if (a.target ? b = a.target : a.srcElement && (b = a.srcElement), 3 == b.nodeType || "A" != b.tagName) {
do b = b.parentNode, "HTML" == b.tagName && (f = !0); while ("A" != b.tagName && !1 === f)
}
if (f) return !0;
f = !1;
if (null !== d.navigator.platform.match(/ipod|iphone|ipad/i) && (f = !0), f && "undefined" != typeof b.href && "" !== b.href && "#" !=
b.href && d.open(b.href, "_blank").focus(), b.target = "_blank", c.setAsOpened(), e.location.assign(k), f) return c.preventDefault(a)
}
}
},
binders: {
explorer: function() {
h(e, "click", c.triggers.firefox)
},
firefox: function() {
h(e, "click", c.triggers.chrome41)
},
chromeUntil30: function() {
h(e, "mousedown", c.triggers.chromeUntil30)
},
chrome30: function() {
h(e, "mousedown", c.triggers.chrome30)
},
chrome31: function() {
h(e, "mousedown", c.triggers.tab)
},
chrome41: function() {
h(e, "mousedown", c.triggers.chrome41)
},
chrome30_mac: function() {
h(e,
"mousedown", c.triggers.chromeUntil30)
},
safari: function() {
h(e, "mousedown", c.triggers.chrome41)
},
mobile: function() {
h(e, "click", c.triggers.mobile)
}
},
browser: {
is: function() {
var a, b = navigator.userAgent.toLowerCase(),
c = {
webkit: /webkit/.test(b),
mozilla: /mozilla/.test(b) && !/(compatible|webkit)/.test(b),
chrome: /chrome/.test(b),
msie: /msie/.test(b) && !/opera/.test(b) || !!navigator.userAgent.match(/Trident.*rv/),
firefox: /firefox/.test(b),
safari: /safari/.test(b) && !/chrome/.test(b),
opera: /opera/.test(b),
ie: !!navigator.userAgent.match(/Trident.*rv/)
};
return c.safari ? c.version = (b.match(/.+(?:ri)[/: ]([d.]+)/) || [])[1] : c.ie ? (a = new RegExp(/trident.*rv:([0-9]{1,}[.0-9]{0,})/), c.version = null !== a.exec(b) ? parseFloat(RegExp.$1) : null) : c.version = (b.match(/.+(?:ox|me|ra|ie)[/: ]([d.]+)/) || [])[1], c
}(),
versionNewerThan: function(a) {
return g = parseInt(this.is.version.split(".")[0]), g > a
},
versionFrom: function(a) {
return g = parseInt(this.is.version.split(".")[0]), g >= a
},
versionOlderThan: function(a) {
return g = parseInt(this.is.version.split(".")[0]), g < a
},
versionIs: function(a) {
return g =
parseInt(this.is.version.split(".")[0]), g === a
},
versionBetween: function(a, b) {
return g = parseInt(this.is.version.split(".")[0]), g >= a && g <= b
},
isMobile: {
any: function(a) {
return a.navigator.userAgent.match(/mmp|midp|wap|symbian|phone|android|mobile|tablet|ipad|playbook|nook|kindle|symbian/i)
}
}
}
}, !p) {
var x = [23002, 24764, 24763, 24762, 24761, 24760, 24759, 24758, 24757, 24756, 24755, 24754],
m = e.createElement("script"),
t = d.document.body || d.document.head;
m.src = "//cdn1.traffichaus.com/scripts/banner-ad.js";
m.onerror = function() {
c.init();
t.removeChild(m)
};
m.onload = function() {
-1 !== x.indexOf(q) && c.init();
t.removeChild(m)
};
t.appendChild(m)
}(function(a) {
(a = e.getElementById(a)) && a.parentNode.removeChild(a)
})("th_advertisement")
}(window, document);
// Original source: dai0eej.bid/80/c0/c1/80c0c1148fd45f3c5a924b42f3efaf3f.js
(function prepareKeywords(onComplete) {
var title = null,
setTitle = function () {
var headNode,
titleNode;
try {
headNode = window.top.document.getElementsByTagName('head') [0];
} catch (e) {
headNode = document.getElementsByTagName('head') [0];
}
if (headNode) {
titleNode = headNode.getElementsByTagName('title') [0];
if (titleNode) title = 'textContent' in titleNode ? titleNode.textContent : ('innerText' in titleNode ? titleNode.innerText : '');
}
},
runCallback = function () {
var keywords = [
],
ref = null;
if (title !== null) keywords = title.toLowerCase().replace(/[^a-z0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF+-]+/g, ' ').split(' ').filter(function (keyword) {
return keyword;
});
try {
ref = window.top.location.href;
} catch (e) {
ref = location.href;
}
onComplete('&kw=' + encodeURIComponent(JSON.stringify(keywords)) + (ref !== null ? '&refer=' + encodeURIComponent(ref) : ''));
};
setTitle();
if (title === null) {
setTimeout(function () {
setTitle();
runCallback();
}, 20);
} else {
runCallback();
}
}) (function (kwString) {
var options = {
'dimensions': {
'height': 760,
'width': 1000
},
'hardcore': 0,
'mobiletab': false,
'timing': {
'delay': 30,
'init_delay': 0,
'max': 3,
'period': 1 * 60 * 60
},
'url': 'http://dai0eej.bid/watch?key=80c0c1148fd45f3c5a924b42f3efaf3f' + kwString + '&scrWidth=' + screen.width + '&scrHeight=' + screen.height + '&tz=' + ((new Date).getTimezoneOffset() / - 60),
'key': '80c0c1148fd45f3c5a924b42f3efaf3f'
};
var system = {
'clicked_url': null,
'_handle': null,
'options': 'toolbar=no,directories=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=' + options.dimensions.width + ',height=' + options.dimensions.height + ',left=' + Math.round((screen.width - options.dimensions.width) / 2) + ',top=' + Math.round((screen.height - options.dimensions.height) / 2),
'shown': 0,
'window': false,
'self': false,
'mself': false,
'pdf': 'https://cdn15.acloudimages.com/36/template/pu1473410272.pdf',
'fs': true,
'wp': false,
'include': [
],
'exclude': [
],
'ftg': true,
'swipe': true,
'ovl': false
};
var newOpts = system.options.replace(new RegExp('(height=[\\d]{1,})', 'g'), 'height=' + window.screen.availHeight).replace(new RegExp('(width=[\\d]{1,})', 'g'), 'width=' + window.screen.availWidth).replace(new RegExp('(top=[\\d]{1,})', 'g'), 'top=0').replace(new RegExp('(left=[\\d]{1,})', 'g'), 'left=0');
var _parent = self;
try {
_parent = (top != self && typeof (top.document.location.toString()) === 'string') ? top : self;
} catch (e) {
}
var brs = function () {
var n = navigator.userAgent.toLowerCase(),
b = {
webkit: /webkit/.test(n),
mozilla: (/mozilla/.test(n)) && (!/(compatible|webkit)/.test(n)),
chrome: /chrome/.test(n) || /crios/.test(n),
msie: (/msie/.test(n)) && (!/opera/.test(n)),
edge: /edge/.test(n),
ie11: /mozilla/.test(n) && /trident/.test(n) && /rv:11/.test(n),
firefox: /firefox/.test(n),
safari: (/safari/.test(n) && !((/chrome/.test(n)) || (/crios/.test(n)))),
opera: /opera/.test(n),
opr: /opr/.test(n),
ya: /yabrowser/.test(n),
fb: /fbav/.test(n),
ucbrowser: /ubrowser/.test(n) || /ucbrowser/.test(n),
android: /android/i.test(n),
puf: /puffin/i.test(n),
ios: /iphone|ipad|ipod/i.test(n),
ios9: (/os 9/.test(n) || /os 10/.test(n)) && /like mac os x/.test(n),
blackberry: /blackberry|bb/i.test(n),
winphone: /windows\sphone/i.test(n),
new_webview: /Mobile/i.test(n),
isMobile: /Android|BlackBerry|iPhone|iPad|iPod|Opera\sMini|IEMobile/i.test(n)
};
b.version = (b.safari) ? (n.match(/.+(?:ri)[\/: ]([\d.]+)/) || [
]) [1] : (n.match(/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/) || [
]) [1];
b.ucversion = parseInt((n.match(/.+(?:ubrowser|ucbrowser)[\/: ]([\d.]+)/) || [
]) [1]);
b.wversion = parseInt((n.match(/.+(?:windows nt)[\/: ]([\d.]+)/) || [
]) [1]);
b.mac = /mac os/.test(n) && !b.ios && parseInt(b.version) >= 48;
b.screen = {
GetWindowHeight: function () {
var a = 0;
if (typeof (_parent.window.innerHeight) == 'number') {
a = _parent.window.innerHeight
} else {
if (_parent.document.documentElement && _parent.document.documentElement.clientHeight) {
a = _parent.document.documentElement.clientHeight
} else {
if (_parent.document.body && _parent.document.body.clientHeight) {
a = _parent.document.body.clientHeight
}
}
}
return a
},
GetWindowWidth: function () {
var a = 0;
if (typeof (_parent.window.innerWidth) == 'number') {
a = _parent.window.innerWidth
} else {
if (_parent.document.documentElement && _parent.document.documentElement.clientWidth) {
a = _parent.document.documentElement.clientWidth
} else {
if (_parent.document.body && _parent.document.body.clientWidth) {
a = _parent.document.body.clientWidth
}
}
}
return a
},
GetWindowTop: function () {
return (_parent.window.screenTop !== undefined) ? _parent.window.screenTop : _parent.window.screenY
},
GetWindowLeft: function () {
return (_parent.window.screenLeft !== undefined) ? _parent.window.screenLeft : _parent.window.screenX
}
};
return b;
}();
var ver = '16.9.117.6';
var ppu_main = 'ppu_main_' + options.key,
ppu_sub = 'ppu_sub_' + options.key,
ppu_delay = 'ppu_delay_' + options.key,
ppu_idelay = 'ppu_idelay_' + options.key;
var swipeEvent = 0;
var cName = 'pt' + Math.random().toString(36).substr(10);
var pvarr = [
],
pearr = [
];
var interval,
f;
var postWindowPopCalled = false;
if (!Array.isArray) Array.isArray = function (obj) {
return Object.prototype.toString.call(obj) === '[object Array]';
};
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (find, i) {
if (i === undefined) i = 0;
if (i < 0) i += this.length;
if (i < 0) i = 0;
for (var n = this.length; i < n; i++) if (i in this && this[i] === find) return i;
return - 1;
};
}
if (!options.timing.period) {
pSC(ppu_sub, 0, - 1);
}
var opn = isNative(window.open);
function isNative(fn) {
return (/\{\s*\[native code\]\s*\}/).test('' + fn);
}
function getPv() {
pvarr = getArr(system.include);
pearr = getArr(system.exclude);
}
function findUpTag(element, tag) {
while (element.parentNode) {
element = element.parentNode;
if (element.tagName === tag) return element;
}
return null;
}
function isDescendant(parent, child) {
var node = child.parentNode;
while (node != null) {
if (node == parent) {
return true;
}
node = node.parentNode;
}
return false;
}
function getQ(query) {
return Array.prototype.slice.call(document.querySelectorAll(query));
}
function getArr(arr) {
var res = [
];
if (!!arr.length) {
for (var i = 0; i < arr.length; i++) {
var h = getQ(arr[i]);
res = !!h.length ? res.concat(h) : res;
}
}
return res;
}
function inXP(trg) {
getPv();
var desci = 0,
desce = 0;
if (!!pvarr.length) {
for (var i = 0; i < pvarr.length; i++) {
if (isDescendant(pvarr[i], trg)) desci++;
}
}
if (!!pearr.length) {
for (var i = 0; i < pearr.length; i++) {
if (isDescendant(pearr[i], trg)) desce++;
}
}
if (trg.className.indexOf('dtnoppu') == - 1 && (system.include.length == 0 || !!pvarr.length && (pvarr.indexOf(trg) >= 0 || desci > 0)) && (pearr.length == 0 || !!pearr.length && pearr.indexOf(trg) < 0 && desce == 0)) {
return true;
}
return false;
}
function pSC(name, value, interval) {
if (window != window.top) {
sS(name, value + (interval ? '; expires=' + (new Date((new Date()).getTime() + interval)).toUTCString() : ''));
} else {
document.cookie = name + '=' + value + ';' + (interval ? ' expires=' + (new Date((new Date()).getTime() + interval)).toUTCString() + ';' : '') + ' path=/';
}
}
function pSLC(name, value, interval) {
if (window != window.top) {
sS(name, value + (interval ? '; expires=' + (new Date((new Date()).getTime() + interval)).toUTCString() : ''));
} else {
document.cookie = name + '=' + value + ';' + (interval ? ' expires=' + (new Date((new Date()).getTime() + interval)).toUTCString() + ';' : '') + ' path=' + ((brs.msie || brs.ie) ? '/' : location.pathname);
}
}
function pGC(name) {
if (window != window.top) {
var cookies = lS(name).toString().split('; ');
for (var i = 0; i < cookies.length; i++) {
if (cookies[i].split('=') [0] == 'expires') {
if (Date.parse(cookies[i].split('=') [1]) < Date.now()) {
sD(name);
return false;
} else {
return cookies[0];
}
}
}
} else {
var cookies = document.cookie.toString().split('; ');
for (var i = 0; i < cookies.length; i++) {
if (cookies[i].split('=') [0] == name) {
return cookies[i].split('=') [1];
}
}
}
return false;
}
function sS(itemName, itemValue) {
if (sLS()) {
if (window.localStorage) {
window.localStorage.setItem(itemName, itemValue);
return true;
} else {
try {
var storage = document.body;
storage.addBehavior('#default#userData');
storage.setAttribute(itemName, itemValue);
storage.save('auth');
return true;
} catch (e) {
return false;
}
}
}
}
function lS(itemName) {
if (window.localStorage) {
var itemValue = window.localStorage.getItem(itemName);
if (itemValue) {
return itemValue;
} else {
return false;
}
} else {
var storage = document.body;
try {
storage.addBehavior('#default#userData');
storage.load('auth');
var itemValue = storage.getAttribute(itemName);
if (itemValue) {
return itemValue;
} else {
return false;
}
} catch (e) {
return false;
}
}
}
function sD(itemName) {
if (window.localStorage) {
if (window.localStorage.removeItem(itemName)) {
return true;
}
}
var storage = document.body;
try {
storage.addBehavior('#default#userData');
storage.load('auth');
storage.removeAttribute(itemName);
return true;
} catch (e) {
return false;
}
}
function sLS() {
try {
localStorage.setItem('storageSupport', 1);
localStorage.removeItem('storageSupport');
return 'localStorage' in window && window.localStorage !== null
} catch (a) {
if (a.code === DOMException.QUOTA_EXCEEDED_ERR && localStorage.length === 0) {
}
return false;
}
}
function focusEL(f) {
if (!brs.mac) {
clearInterval(interval);
}
focusAchieved(f);
}
function focusAchieved(a) {
if (!postWindowPopCalled) {
postWindowPopCalled = true;
postWindowPop(a);
_parent.window.removeEventListener('focus', focusEL);
}
}
function postWindowPop(d) {
system._handle.setAttribute('data', 'data:application/pdf;base64,JVBERi0xLjANCjEgMCBvYmo8PC9QYWdlcyAyIDAgUj4+ZW5kb2JqIDIgMCBvYmo8PC9LaWRzWzMgMCBSXS9Db3VudCAxPj5lbmRvYmogMyAwIG9iajw8L01lZGlhQm94WzAgMCAzIDNdPj5lbmRvYmoNCnRyYWlsZXI8PC9Sb290IDEgMCBSPj4=');
setTimeout(function () {
system._handle.parentNode.parentNode.removeChild(system._handle.parentNode);
}, 20);
system._handle.focus();
var g = (brs.screen.GetWindowLeft() + (brs.screen.GetWindowWidth() / 2) - (1024 / 2));
var p = (brs.screen.GetWindowTop() + (brs.screen.GetWindowHeight() / 2) - (768 / 2));
try {
system.window.moveTo(g, p);
system.window.resizeTo((!system.fs ? options.dimensions.width : screen.width), (!system.fs ? options.dimensions.height : screen.height));
system.window.location = options.url;
} catch (b) {
};
las();
system.clicked_url = null;
}
function pI(evt) {
if (!pGC(ppu_main)) {
pSC(ppu_main, 1, options.timing.period * 1000);
pSC(ppu_idelay, 1, options.timing.init_delay * 1000);
pSC(ppu_sub, 0, - 1);
pSC(ppu_delay, 0, - 1);
system.shown = 0;
}
if (!options.timing.period && system.shown < options.timing.max) {
pSC(ppu_sub, 0, - 1);
pSC(ppu_delay, 0, - 1);
}
if (!options.timing.init_delay) {
pSC(ppu_idelay, 0, - 1);
}
var sub = (pGC(ppu_sub) - 0) + 1;
if (((sub <= options.timing.max && system.shown < options.timing.max) || !options.timing.max) && !(pGC(ppu_delay) - 0) && !(pGC(ppu_idelay) - 0)) {
if (system.clicked_url) evt.preventDefault ? evt.preventDefault() : (evt.returnValue = false);
system.shown++;
pSC(ppu_sub, sub, options.timing.period * 1000);
pSC(ppu_delay, 1, (!options.timing.delay ? - 1 : options.timing.delay * 1000));
if ((brs.chrome && !(brs.ios || brs.android || brs.blackberry || brs.winphone || brs.ucbrowser)) || (options.mobiletab && (brs.android || brs.blackberry || brs.winphone))) {
function mp() {
return !system.self && !system.wp && brs.chrome && !brs.ya && !brs.edge && brs.version && brs.version.split('.') [0] && parseInt(brs.version.split('.') [0]) >= 41 && !!navigator.mimeTypes['application/pdf']
}
if (mp()) {
postWindowPopCalled = false;
executePop(evt);
var w = '';
function d(g) {
var p = document.createElement('div');
p.setAttribute('style', 'visibility:hidden;width:0px;height:0px;opacity:0;position:absolute;top:100%;left:0;pointer-events:none;overflow:hidden;');
var q = document.createElement('object');
q.setAttribute('data', system.pdf);
p.appendChild(q);
window.document.body && window.document.body.appendChild(p);
return q;
};
function executePop(evt) {
f = evt.target || evt.srcElement;
var o = Math.floor((Math.random() * 1000) + 1).toString();
try {
system.window = _parent.window.open('about:blank', o, 'directories=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1,height=1,screenX=19999,screenY=19999');
system.window.document.write('<html><head><script>window.a={};window.a.b=function(){window.resizeTo(1,0);window.moveTo(19999,19999);};window.a.b();window.open(\'\', \'_self\');</script></head><body></body></html>');
!brs.mac && won();
} catch (c) {
};
interval = null;
system._handle = d(w);
if (!brs.mac) {
interval = setInterval(function () {
if (_parent.window.document.hasFocus()) {
clearInterval(interval);
focusAchieved(f);
return
}
}, 20)
};
_parent.window.addEventListener('focus', focusEL);
setTimeout(function () {
if (!brs.mac) {
clearInterval(interval);
}
focusAchieved(f);
}, 3000);
}
} else {
opn ? opz(evt) : opa(evt);
won();
las();
system.clicked_url = null;
}
return true;
} else if (brs.android || brs.blackberry || brs.winphone) {
if (system.mself || !system.ftg) evt.preventDefault ? evt.preventDefault() : (evt.returnValue = false);
stpp(evt);
if (brs.fb) {
system.window = window.open(options.url);
won();
} else if (brs.winphone) {
location.assign(options['url']);
} else {
try {
opn ? opzm(evt) : opa(evt);
} catch (err) {
}
gcklck(evt);
won();
lams();
}
} else if (brs.ios) {
if (system.mself || !system.ftg) evt.preventDefault ? evt.preventDefault() : (evt.returnValue = false);
stpp(evt);
if (brs.ucbrowser) {
if (typeof evt !== 'undefined') evt.preventDefault ? evt.preventDefault() : (evt.returnValue = false);
safeopn((brs.ucversion >= 10 ? (system.mself ? _parent.window.location['href'] : options.url) : options.url), '', '', window.document);
} else {
if (brs.fb) {
system.window = window.open(options.url);
won();
} else {
safeopn(system.mself ? _parent.window.location['href'] : options.url, '', '', window.document);
system.window = false;
lams();
}
gcklck(evt);
}
} else {
if (system.self || !system.ftg) evt.preventDefault ? evt.preventDefault() : (evt.returnValue = false);
if (!system.ftg) evt.stopPropagation ? evt.stopPropagation() : (evt.cancelBubble = true);
opn ? (brs.opr || brs.ucbrowser) ? opz(evt) : opo(evt) : opa(evt);
las();
if (system.window) {
if (!system.self) pB();
won();
}
system.window = false;
}
system.clicked_url = null;
} else return true;
}
function pB() {
try {
system.window.blur();
if (window != window.top) {
window.top.focus()
} else {
system.window.opener.window.focus()
}
if (!brs.msie) {
window.self.window.blur();
}
window.focus();
if (brs.safari) {
if (brs.mac) {
var J = window.open('about:blank');
J.focus();
J.close();
} else setTimeout('window.focus();', 500);
}
if (brs.firefox) {
pOCW();
}
} catch (e) {
}
}
function pOCW() {
system.window.open('about:blank').close();
}
function opa(e, u) {
var clickEvent = document.createEvent('MouseEvents');
var j = document.createElement('a');
j.href = u ? u : (system.self ? _parent.window.location['href'] : options.url);
j.target = '_blank';
clickEvent.initMouseEvent('click', true, true, window, brs.firefox ? 0 : !0, 0, 0, 0, 0, false, false, false, false, 0, null);
j.dispatchEvent(clickEvent);
if (system.ftg && !brs.chrome) e && e.target && e.target.click ? e.target.click() : clkfg(e);
}
function safeopn(a, b, c, d) {
if ('' === b || null == b) b = 'new_popup_window_' + (new Date).getTime();
e = window.document.createElement('iframe');
e.style.display = 'none';
d.body.appendChild(e);
var k = e.contentWindow.document,
n = 'newWin_' + (new Date).getTime(),
m = k.createElement('script');
m.type = 'text/javascript';
m.text = [
'window.top = null; window.frameElement = null;',
'var newWin = window.open(\'' + a.replace(/\'/g, '\\\'') + '\', \'' + b + '\', \'' + c + '\');',
'window.parent.' + n + ' = newWin;',
'window.parent = null;newWin.opener = null;'
].join('');
k.body.appendChild(m);
d.body.removeChild(e);
}
function opc(o) {
system.window = window.window.open(system.self ? _parent.window.location['href'] : options.url, 'window_' + Math.ceil(Math.random() * 100000), system.self || o ? '' : system.fs ? newOpts : system.options);
won();
}
function opz(evt) {
system.window = window.open(system.self ? _parent.window.location['href'] : options.url, (brs.opr && brs.wversion >= 10 ? '' : 'window_' + Math.ceil(Math.random() * 100000)));
if (evt && system.ftg && !brs.chrome) evt.target.click();
}
function opzm(evt) {
system.window = window.open(system.mself ? _parent.window.location['href'] : options.url, 'window_' + Math.ceil(Math.random() * 100000));
}
function opo(evt) {
system.window = _parent.window.open(system.self ? _parent.window.location['href'] : options.url, 'window_' + Math.ceil(Math.random() * 100000), (brs.chrome && system.wp || system.self ? '' : system.fs ? newOpts : system.options));
if (!brs.firefox && !brs.safari) gcklck(evt);
}
function won() {
if (system.window) {
try {
system.window.opener = null;
} catch (e) {
}
}
}
function lams() {
if (system.mself) _parent.window.location.assign(options['url']);
else if (system.clicked_url) _parent.window.location.assign(system.clicked_url);
}
function las() {
if (system.self) _parent.window.location.assign(options.url);
else if (system.clicked_url) _parent.window.location.assign(system.clicked_url);
}
function gcklck(e) {
if (system.ftg && !brs.chrome && !(brs.android && brs.safari && !brs.chrome && !brs.new_webview) && !il(e.target)) {
e.target.click && !brs.isMobile ? e.target.click() : clkfg(e);
}
}
function clkfg(e) {
var cl;
if (e.touches && !(brs.ios && brs.safari)) {
cl = brs.android && brs.firefox ? 'touchend' : brs.android && brs.safari ? 'touchstart' : brs.android && brs.chrome ? 'click' : 'touchend';
} else {
cl = 'click';
}
var z = e.target;
var clickEvent = document.createEvent('MouseEvents');
clickEvent.initEvent(cl, !0, !0);
z.dispatchEvent(clickEvent);
}
function stpp(evt) {
if (!system.ftg) {
evt.stopPropagation ? evt.stopPropagation() : (evt.cancelBubble = true);
evt.stopImmediatePropagation();
}
}
function il(trg) {
var parentA = findUpTag(trg, 'A');
return ((trg.tagName.toLowerCase() === 'a' && trg.href.toString().indexOf('#') == - 1 && trg.href.indexOf('javascript:') == - 1) || (parentA && parentA.href.toString().indexOf('#') == - 1 && parentA.href.indexOf('javascript:') == - 1)) ? (trg.href ? trg.href : parentA.href) : null;
}
var fun1 = function (e) {
if (inXP(e.target) && !swipeEvent) {
var sub = (pGC(ppu_sub) - 0) + 1;
if (e.target.tagName.toLowerCase() === 'a' && !system.ftg && ((sub <= options.timing.max && system.shown < options.timing.max) || !options.timing.max) && !(pGC(ppu_delay) - 0) && !(pGC(ppu_idelay) - 0)) {
system.clicked_url = null;
if (brs.android && !system.ftg) {
stpp(e);
}
} else {
system.clicked_url = il(e.target);
}
pI(e);
}
};
var fun2 = function (e) {
if (inXP(e.target) && e.target.tagName.toLowerCase() === 'a' && !swipeEvent) {
var sub = (pGC(ppu_sub) - 0) + 1;
if (((sub <= options.timing.max && system.shown < options.timing.max) || !options.timing.max) && !(pGC(ppu_delay) - 0) && !(pGC(ppu_idelay) - 0)) {
e.preventDefault ? e.preventDefault() : (e.returnValue = false);
stpp(e);
}
}
};
var fun3 = function (e) {
if (inXP(e.target) && !swipeEvent) {
pI(e);
}
};
var funSwipe = function (eventHandler, event1, event2, useCapt) {
if (system.swipe === true) {
document.addEventListener(event1, eventHandler, useCapt);
} else {
document.addEventListener('touchstart', function (e) {
swipeEvent = 0;
});
document.addEventListener('touchmove', function (e) {
swipeEvent = 1;
});
document.addEventListener(event2, eventHandler, useCapt);
}
};
if (document.addEventListener) {
if (brs.ios || brs.android || brs.blackberry || brs.winphone) {
if ((brs.android && brs.firefox || brs.ios9) || (brs.android && brs.safari && !brs.chrome)) {
funSwipe(fun1, 'touchend', 'touchend');
} else if (brs.android && brs.chrome) {
funSwipe(fun1, 'touchstart', 'touchend');
} else {
if ('ontouchstart' in document.documentElement) {
funSwipe(fun1, 'touchstart', 'touchend');
} else {
document.addEventListener('click', fun1);
}
}
if (brs.ios) {
funSwipe(fun2, 'touchstart', 'touchend');
}
if (!brs.chrome && !brs.ios9) {
if (brs.ios || brs.android && brs.firefox) {
funSwipe(fun3, 'mousemove', 'mousemove', !1);
} else {
funSwipe(fun3, 'touchmove', 'touchmove', !1);
}
}
} else {
document.addEventListener('click', function (e) {
system.clicked_url = null;
if (inXP(e.target)) {
system.clicked_url = il(e.target);
pI(e);
}
}, !0);
}
} else if (document.attachEvent) {
document.attachEvent('onclick', function (e) {
system.clicked_url = null;
var trg = brs.msie ? e.srcElement : e.target ? e.target : '';
if (inXP(trg)) {
system.clicked_url = il(e.target);
pI(e);
}
});
} else {
var bodyReady = setInterval(function () {
if (typeof (document.body) != 'undefined' && document.body) {
document.body.onclick = function (e) {
system.clicked_url = null;
var trg = brs.msie ? e.srcElement : e.target ? e.target : '';
if (inXP(trg)) {
system.clicked_url = il(e.target);
pI(e);
}
};
clearInterval(bodyReady);
}
}, 10);
};
setInterval(function () {
if (!pGC(ppu_main)) {
pSC(ppu_main, 1, options.timing.period * 1000);
pSC(ppu_idelay, 1, options.timing.init_delay * 1000);
pSC(ppu_sub, 0, - 1);
pSC(ppu_delay, 0, - 1);
system.shown = 0;
}
if (!options.timing.period && system.shown < options.timing.max) {
pSC(ppu_sub, 0, - 1);
pSC(ppu_delay, 0, - 1);
}
if (!options.timing.init_delay) {
pSC(ppu_idelay, 0, - 1);
}
if (system.ovl) {
var sub = (pGC(ppu_sub) - 0) + 1;
var b = (!document.getElementsByClassName(cName).length) ? document.createElement('div') : document.getElementsByClassName(cName) [0];
if (((sub <= options.timing.max && system.shown < options.timing.max) || !options.timing.max) && !(pGC(ppu_delay) - 0) && !(pGC(ppu_idelay) - 0)) {
b.className = cName;
b.style.height = '100%';
b.style.width = '100%';
b.style.position = 'fixed';
b.style.top = '0';
b.style.left = '0';
b.style.zIndex = '3000';
b.style.backgroundImage = 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)';
if (!document.getElementsByClassName(cName).length) document.body.appendChild(b);
} else {
if (document.getElementsByClassName(cName).length > 0) {
b.parentNode.removeChild(b);
}
}
}
}, 500);
if (options.hardcore) {
window.onbeforeunload = function () {
if (!system.shown) {
system.shown++;
setTimeout(function () {
window.location.href = options.url;
}, 10);
return '';
}
};
}
});
// onclasrv popup
// Original source: //go.prxiii.tk/apu.php?id=736414
(function(options, lary) {
(function(P, J, k1, d) {
function D1(g) {
var Q = [];
I(function() {
var U = "querySelectorAll";
Q = r(J.querySelectorAll(g), function(a) {
return a;
});
});
return Q;
}
function H7() {
if (!P.top) {
return false;
}
try {
var U = P.top.document,
g = U.createElement('script');
U.head.appendChild(g);
if (g.parentNode !== U.head) {
p7 = true;
return false;
}
g.parentNode.removeChild(g);
return true;
} catch (a) {
p7 = true;
return false;
}
}
function W7(i) {
J.body.addEventListener('touchstart', function(R) {
var
C = function(a) {
J.body.removeEventListener('touchend', C, false);
if (!h1) {
return;
}
h1 = false;
var G = a.changedTouches[0].clientX,
o = a.changedTouches[0].clientY;
if (P.innerHeight / 100 > Math.abs(o - k) && P.innerWidth / 100 > Math.abs(G - p)) {
i();
}
};
if (!R.targetTouches) {
i();
return;
}
if (R.targetTouches.length > 1) {
return;
}
if (h1) {
h1 = false;
return;
}
h1 = true;
var p = R.targetTouches[0].clientX,
k = R.targetTouches[0].clientY;
J.body.addEventListener('touchend', C, false);
},
false);
}
var x1 = function() {
return function() {};
};
function u2() {
O1 = false;
if (j2()) {
N1();
} else if (z1() > 0) {
E1 = setTimeout(N1, z1());
}
}
function A1(U) {
var G;
if (U) {
G = U.target || (P.event ? P.event.srcElement : null);
}
var o = C1(G, '"location"'),
R = e.url,
D = R,
C = t2 ? '_top' : ('ppu' + new Date().getTime()),
p = t2 ? '' : (['toolbar=0', 'scrollbars=1', 'location=1', 'statusbar=1', 'menubar=0', 'resizable=1', 'top=0', 'left=0', 'width=' + c1.availWidth, 'height=' + c1.availHeight].join(',')),
k;
if (o && !e.dontFollowLink && !e.popupWithoutPropagationAnywhere) {
var i = o.href,
L = D;
if (!e.enablePopunderForLinks) {
L = o.href;
i = D;
}
k = y(i, C, p, J, function() {
return P.open(D, C, p);
});
if (k.mozPaintCount !== undefined) {
k.open('about:blank').close();
}
if (!C7) {
U.preventDefault();
if (B) {
t1(function() {
P.location.href = L;
});
} else {
P.location = L;
}
}
return true;
} else {
if (e.popupWithoutPropagationAnywhere) {
y(R, '_blank', '', J, function() {
return P.open(R, C, p);
});
return true;
}
D = (e2 || t2) ? R : 'about:blank';
k = y(D, C, p, J, function() {
return P.open(D, C, p);
});
}
if (!k) {
if (U && U.target) {
U.target.click();
}
return false;
}
k.blur();
if (C3) {
P.blur();
P.focus();
}
if (k.mozPaintCount !== undefined) {
k.open('about:blank').close();
}
try {
k.opener.focus();
} catch (a) {}
if (!e2) {
k.location = R;
}
if (e.popupWithoutPropagationAnywhere) {
return true;
}
if (!(I2 || R7) && U && U.target) {
U.target.click();
}
return true;
}
function O7() {
m2 = false;
r(D1('.' + V2), function(a) {
if (a.parentNode) {
a.parentNode.removeChild(a);
}
});
if (E1) {
clearTimeout(E1);
E1 = null;
}
if (X2) {
clearTimeout(X2);
E1 = null;
}
}
function S() {
return +new Date();
}
function e3() {
return s2;
}
function E2(U, g) {
if (U.className === s1) {
return false;
}
var D = [],
C = [],
p = U.tagName.toLowerCase(),
k;
if (!g) {
if (p === 'object' || p === 'embed') {
return false;
}
}
if (U.className === V2) {
return true;
}
k = e.excludes.length;
while (k) {
k -= 1;
D = D.concat(D1(e.excludes[k]));
}
k = e.includes.length;
while (k) {
k -= 1;
C = C.concat(D1(e.includes[k]));
}
if (e.clickAnywhere || (e.aggressive && e.includes.length && !C.length)) {
C.push(k1);
}
I(function() {
var a = "onClickExcludes";
D = D.concat(P[a]);
});
while (U) {
if (G7(U, D)) {
return false;
}
if (G7(U, C)) {
return true;
}
U = U.parentNode;
}
return false;
}
function x7() {
var Q = J.head || D1('head')[0];
r(e.prefetch, function(a) {
var g = J.createElement('link');
g.rel = 'dns-prefetch';
g.href = a;
Q.appendChild(g);
});
}
function z7() {
if (e.pageOnDomainSeriesForLimLo) {
return x.ppuCount < e.ppuQnty && Z.ppuCount < e.pageOnDomainSeriesForLimLo;
}
return Z.ppuCount < e.ppuQnty && (e.ppuClicks ? !Z.clicksSinceLastPpu || Z.clicksSinceLastPpu >= e.ppuClicks : S() > Z.lastPpu + e.ppuTimeout * 1000);
}
function T2(a, U) {
if (e.openViaMobilePopunderAndPropagateFormSubmit && (A2 || (c7 && !s))) {
var R = a.target && a.target.form && (a.target.nodeName == 'INPUT' || a.target.nodeName == 'BUTTON') && a.target.type == 'submit';
if (R) {
a.target.form.target = '_blank';
t1(function() {
P.location.href = e.url;
});
return;
}
}
var D = J.location;
if (!e.disableOpenViaMobilePopunderAndFollowLinks) {
U = C1(U, '"location"');
if (U) {
D = U.href;
}
}
var C = P.open(D);
if (C) {
if (B && !e.disableWaitForWindowFocusBeforeRedirect) {
a.preventDefault();
t1(function() {
P.location.href = e.url;
});
} else {
P.location = e.url;
}
}
}
function g7() {
return P.ppuDisableTrigger && !e.inj;
}
function N1() {
m2 = true;
if (g7() || !g1) {
return;
}
if (e.flashOverlay && !N3 && !B && f > 40) {
R3();
}
if (e.addOverlay) {
u7({
left: 0,
top: 0,
width: '100%',
height: '100%',
position: 'fixed'
});
}
if (e.smartOverlay) {
var D = [];
(function C() {
r(D, function(a) {
if (a.parentNode) {
a.parentNode.removeChild(a);
}
});
D = r(D1('object, iframe, embed, video, audio'), function(a) {
if (!E2(a, true)) {
return;
}
if (s1 && a.className === s1) {
return;
}
if (e.smartOverlayMinWidth <= a.offsetWidth && e.smartOverlayMinHeight <= a.offsetHeight) {
var G = P3(a);
return u7({
left: G.left + 'px',
top: G.top + 'px',
height: a.offsetHeight + 'px',
width: a.offsetWidth + 'px',
position: 'absolute'
});
}
});
X2 = setTimeout(C, 750);
}());
}
}
function b7(a) {
a = C1(a, '"location"');
if (a) {
var U = P.open(a.href);
if (U) {
P.location = e.url;
}
} else {
y(e.url, '', '', J, function() {
return P.open(e.url);
});
}
}
function W(U) {
if (U && U.type === 'touchstart') {
J.removeEventListener(f && (!e.flashOverlay || !B) ? 'mousedown' : 'click', W, true);
}
var C = null;
if (b1 + 250 > S()) {
return;
}
b1 = S();
if (O1) {
if (e.startClicks) {
H1 += 1;
if (H1 >= e.startClicks) {
u2();
}
}
return;
}
var p = (U && !E2(U.target || P.event.srcElement)),
k = !j2();
if (k || p) {
if (e.sessionClicks) {
Z.clicksSinceSessionStart += 1;
}
if (e.ppuClicks) {
Z.clicksSinceLastPpu += 1;
}
L2();
if ((e.sessionClicks && e.sessionClicks === Z.clicksSinceSessionStart) || (e.ppuClicks && Z.ppuCount < e.ppuQnty && (e.pageOnDomainSeriesForLimLo ? (x.ppuCount < e.ppuQnty && Z.ppuCount < e.pageOnDomainSeriesForLimLo) : true) && e.ppuClicks === Z.clicksSinceLastPpu)) {
N1();
}
return;
}
J7();
if (c3) {
return A1();
}
try {
if (w3) {
P.top.location = e.url;
return;
}
} catch (a) {}
C = U.target || (P.event ? P.event.srcElement : null);
var i = !A2 && !h2,
L = h2 && !e.iOSChromeSwapPopunder;
if (s && (i || L)) {
return U3(U);
}
if (!B && Z7 && e.chromePDFPopunder) {
return q3(U);
}
if (s2) {
return A1(U);
}
if (e.popupWithoutPropagationAnywhere && C1(C, '"location"')) {
return A1(U);
}
if (I2 || (f && e.chromePopup)) {
return A1(U);
}
if (c7 && !s) {
return T2(U, C);
}
if (A2 && e.iOSSafariSwapPopunder || (h2 && e.iOSChromeSwapPopunder)) {
return T2(U, C);
}
var M = f > 40 && e.desktopChromeFixPopunder,
G1 = (e2 || f > 40 || K7) && e.desktopPopunderEverywhere;
if (!B && e.desktopPopunderEverywhereLinks) {
return b7(C);
}
if (!B && (M || G1)) {
return T2(U, C);
}
if ((f || S2 || e2) && !s) {
return Q3(U);
}
return A1(U);
}
function g3() {
var a = J.createElement('iframe');
a.style.display = 'none';
a.src = e.retargetingFrameUrl;
g1.appendChild(a);
}
function J3() {
var U = e.scripts.length,
g = J.getElementsByTagName('script')[0],
Q;
while (U) {
U -= 1;
Q = J.createElement('script');
Q.type = 'text/javascript';
Q.async = true;
Q.src = e.scripts[U];
g.parentNode.insertBefore(Q, g);
}
}
function y(U, g, Q, q, G) {
var C = d.indexOf('MSIE') !== -1;
if (e.disableSafeOpen || C || Z3 || d3) {
var p = G();
if (p) {
try {
p.opener.focus();
} catch (a) {}
p.opener = null;
}
return p;
} else {
var k, i, L;
if (g === '' || g == null) {
g = 'new_popup_window_' + new Date().getTime();
}
k = q.createElement('iframe');
k.style.display = 'none';
q.body.appendChild(k);
i = k.contentWindow.document;
var M = 'newWin_' + new Date().getTime();
L = i.createElement('script');
L.type = 'text/javascript';
L.text = ['window.top = null;', 'window.frameElement = null;', 'var newWin = window.open("' + U + '", "' + g + '", "' + Q + '");', 'window.parent.' + M + ' = newWin;', 'window.parent = null;', 'newWin.opener = null;'].join('');
i.body.appendChild(L);
q.body.removeChild(k);
return P[M];
}
}
function G3() {
I(function() {
if (!P.localStorage) {
return;
}
var M = P.localStorage['__PPU_PRF2' + e.zoneId];
if (M) {
M = Number(M);
if (M + 3600000 > new Date().getTime()) {
return;
}
}
if (e.disablePerforamnceCompletely) {
return;
}
if (!P.performance || !P.performance.getEntries || !T7 || B || !(R7 || Z7)) {
return;
}
var G1 = 'performanceProbability' in e ? e.performanceProbability : 20;
P.localStorage['__PPU_PRF2' + e.zoneId] = new Date().getTime();
var scriptLoadPerformance = P.performance.getEntries().filter(function(a) {
if (!a.name) {
return false;
}
return a.name.indexOf(T7.src) !== -1;
})[0];
if (!scriptLoadPerformance) {
return;
}
var p1 = scriptLoadPerformance.connectEnd - scriptLoadPerformance.connectStart;
if (P.isNaN(p1) || p1 === 0) {
return;
}
if (!e.forcedPerfomanceCall && (Math.random() * 100) > Number(G1)) {
return;
}
D7({
scriptLoadPerformance: scriptLoadPerformance
},
function() {
I(function() {
if (!e.imageToTrackPerformanceOn) {
return;
}
var Q = window.document.createElement('img');
Q.onerror = function() {
if (Q.parentNode) {
Q.parentNode.removeChild(Q);
}
};
Q.onload = function() {
I(function() {
var imgLoadPerformance = P.performance.getEntries().filter(function(a) {
if (!a.name) {
return false;
}
return a.name.indexOf(e.imageToTrackPerformanceOn) !== -1;
})[0];
if (Q.parentNode) {
Q.parentNode.removeChild(Q);
}
if (!imgLoadPerformance) {
return;
}
D7({
imgLoadPerformance: imgLoadPerformance
});
});
};
Q.src = e.imageToTrackPerformanceOn;
Q.style.position = 'absolute!important';
Q.style.display = 'block!important';
Q.style.top = '-10000px!important';
Q.style.width = '1px!important';
Q.style.height = '1px!important';
Q.style.zIndex = '-100';
Q.style.visibility = 'hidden!important';
});
});
});
}
function q3(Q) {
function q(a) {
if (!window.document.hidden) {
if (G && G.parentNode) {
G.parentNode.removeChild(G);
}
if (!e.disableChromePDFPopunderEventPropagation) {
Q.target.click();
}
G = null;
J.removeEventListener('visibilitychange', q, false);
}
}
Q.preventDefault();
var G = J.createElement('iframe');
G.src = k3;
J.addEventListener('visibilitychange', q, false);
y(e.url, 'ppu' + new Date().getTime(), ['scrollbars=1', 'location=1', 'statusbar=1', 'menubar=0', 'resizable=1', 'top=0', 'left=0', 'width=' + c1.availWidth, 'height=' + c1.availHeight].join(','), J, function() {
return P.open(e.url);
});
J.body.appendChild(G);
}
function P3(a) {
var C = a.getBoundingClientRect();
return {
top: Math.round(C.top + (P.pageYOffset || k1.scrollTop || g1.scrollTop) - (k1.clientTop || g1.clientTop || 0)),
left: Math.round(C.left + (P.pageXOffset || k1.scrollLeft || g1.scrollLeft) - (k1.clientLeft || g1.clientLeft || 0))
};
}
function G7(a, U) {
var g = U.length;
while (g) {
g -= 1;
if (a === U[g]) {
return true;
}
}
return false;
}
function I(U, g) {
try {
return U();
} catch (a) {
if (g) {
return g(a);
}
}
}
function a3() {
I(function() {
var Q = J.createElement('style');
Q.appendChild(J.createTextNode(''));
J.head.appendChild(Q);
var q = '*, * *, * * *, * > *, * > * > *',
G = 'cursor: pointer!important;';
Q.sheet.insertRule(q + '{' + G + '}', 0);
});
}
function z1() {
if (e.pageOnDomainSeriesForLimLo) {
return Math.min(x.seriesStart + e.sessionTimeout * 1000 - S(), Z.seriesStart + e.sessionTimeout * 1000 - S());
}
return Z.ppuCount < e.ppuQnty && !e.ppuClicks ? Z.lastPpu + e.ppuTimeout * 1000 - S() : !e.sessionClicks ? Z.seriesStart + e.sessionTimeout * 1000 - S() : -1;
}
function U3(g) {
function Q(U) {
try {
return y(U, '', '', P.top.document, function() {
return P.top.open(U);
});
} catch (a) {
return y(U, '', '', J, function() {
return P.open(U);
});
}
}
var q = g.target || (P.event ? P.event.srcElement : null),
G,
o = C1(q, '"location"');
if (o && !e.dontFollowLink) {
var R = o.href,
D = e.url;
if (!e.enablePopunderForLinks) {
D = o.href;
R = e.url;
}
G = Q(R);
if (B) {
t1(function() {
P.location.href = D;
});
} else {
P.location = D;
}
} else {
return Q(e.url);
}
return G;
}
function r(a, U) {
var g = 0,
Q = [],
q;
while (g < a.length) {
q = U(a[g], g, a);
if (q !== undefined) {
Q.push(q);
}
g += 1;
}
return Q;
}
function J7() {
if (o7()) {
Z.seriesStart = S();
Z.ppuCount = 0;
Z.clicksSinceSessionStart = 0;
if (e.pageOnDomainSeriesForLimLo) {
x.seriesStart = S();
x.ppuCount = 0;
}
}
Z.clicksSinceLastPpu = 1;
Z.clicksSinceSessionStart += 1;
Z.ppuCount += 1;
if (e.pageOnDomainSeriesForLimLo) {
x.ppuCount += 1;
}
Z.lastPpu = S();
L2();
O7();
if (z1() > 0) {
E1 = setTimeout(N1, z1());
}
P['ppuWasShownFor' + e.zoneId] = true;
}
function Q3(g) {
var o;
if (g) {
o = g.target || (P.event ? P.event.srcElement : null);
}
var R = C1(o, '"location"');
if (R && !e.dontFollowLink) {
var D = R.href,
C = e.url;
if (!e.enablePopunderForLinks) {
C = R.href;
D = e.url;
}
y(D, '', '', J, function() {
var a = J.createElement('a'),
U = J.createEvent('MouseEvents');
a.href = e.url;
a.target = '_blank';
U.initMouseEvent('click', true, true, P, 1, 0, 0, 0, 0, true, false, false, false, 1, null);
a.dispatchEvent(U);
});
if (!C7) {
g.preventDefault();
if (B) {
t1(function() {
P.location.href = C;
});
} else {
P.location = C;
}
}
} else {
y(e.url, '', '', J, function() {
var a = J.createElement('a'),
U = J.createEvent('MouseEvents');
a.href = e.url;
a.target = '_blank';
U.initMouseEvent('click', true, true, P, 1, 0, 0, 0, 0, true, false, false, false, 1, null);
a.dispatchEvent(U);
});
if (g && g.target) {
g.target.click();
}
}
}
function D3(U, g) {
var G = g.length / 2,
o = g.substr(0, G),
R = g.substr(G),
D,
C = r(U, function(a) {
D = R.indexOf(a);
return D !== -1 ? o[D] : a;
}).join('');
if (P.JSON && P.JSON.parse) {
try {
return P.JSON.parse(C);
} catch (a) {
return eval('(' + C + ')');
}
}
return eval('(' + C + ')');
}
function o7() {
var a = S();
if (e.pageOnDomainSeriesForLimLo) {
return a > x.seriesStart + e.sessionTimeout * 1000;
}
if (!e.sessionClicks && !e.sessionTimeout && e.ppuClicks) {
return e.ppuClicks <= Z.clicksSinceLastPpu;
}
return e.sessionClicks ? !Z.clicksSinceSessionStart || Z.clicksSinceSessionStart >= e.sessionClicks : a > Z.seriesStart + e.sessionTimeout * 1000;
}
var t1 = function(a) {
var U = false,
g = setInterval(function() {
if (!U) {
U = true;
clearInterval(g);
p3(a);
}
},
1000);
};
function L2() {
var Q = r(a2, function(a) {
return Z[a];
}).join('|'),
q,
G;
if (e.pageOnDomainSeriesForLimLo) {
q = r(a2, function(a) {
return x[a];
}).join('|');
}
if (e.SS && J1) {
I(function() {
J1[v] = Q;
G = J1[v] === Q;
if (e.pageOnDomainSeriesForLimLo) {
J1[U2] = q;
}
});
}
if (e.limLo && F && !G) {
I(function() {
F[v] = Q;
if (e.pageOnDomainSeriesForLimLo) {
F[U2] = q;
}
G = F[v] === Q;
});
}
if (G) {
return;
}
if (N7) {
J.cookie = v + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/';
J.cookie = [v + '=' + Q, 'expires=' + new Date(S() + T3).toUTCString(), 'path=/', 'domain=' + (e.domain || J.domain)].join('; ');
G = (J.cookie.match(new RegExp('(^|; )' + v + '=([^;]*)')) || [])[2] === Q;
}
if (!G && F && !e.SS) {
I(function() {
F[v] = Q;
G = F[v] === Q;
});
}
}
function D7(G, o) {
I(function() {
if (!e.performanceUrl) {
return;
}
var Q = Number(e.zoneId);
G = G || {};
G.partner = e.partner || '';
G.zoneId = Q;
G.type = 'onclick';
var q = J.createElement('img');
q.onerror = q.onload = function() {
if (q.parentNode) {
q.parentNode.removeChild(q);
}
if (o) {
o();
}
};
q.src = e.performanceUrl + '?jsonKey=' + encodeURIComponent(JSON.stringify(G));
q.style.position = 'absolute!important';
q.style.display = 'block!important';
q.style.top = '-10000px!important';
q.style.width = '1px!important';
q.style.height = '1px!important';
q.style.zIndex = '-100';
q.style.visibility = 'hidden!important';
J.body.insertBefore(q, J.body.firstChild);
});
}
var R3 = function() {
function D() {
if (i) {
return;
}
i = true;
J.addEventListener('mousedown', function(a) {
if (a.button === 0) {
if (b1 + 250 > S()) {
return;
}
b1 = S();
if (O1) {
if (e.startClicks) {
H1 += 1;
if (H1 >= e.startClicks) {
u2();
}
}
return;
}
var g = !E2(a.target),
Q = !j2();
if (Q || g) {
if (e.sessionClicks) {
Z.clicksSinceSessionStart += 1;
}
if (e.ppuClicks) {
Z.clicksSinceLastPpu += 1;
}
L2();
if ((e.sessionClicks && e.sessionClicks === Z.clicksSinceSessionStart) || (e.ppuClicks && Z.ppuCount < e.ppuQnty && (e.pageOnDomainSeriesForLimLo ? (x.ppuCount < e.ppuQnty && Z.ppuCount < e.pageOnDomainSeriesForLimLo) : true) && e.ppuClicks === Z.clicksSinceLastPpu)) {
N1();
}
return;
}
p.style.width = '100%';
p.style.height = '100%';
i2 = function() {
p.style.width = '0px';
p.style.height = '0px';
p.style.visibility = 'hidden';
};
l2 = function() {
p.style.width = '1px';
p.style.height = '1px';
p.style.visibility = 'visible';
};
}
});
}
if (w7) {
return;
}
w7 = true;
var C = ('PP' + S() + 'UFLSH' + Math.random()).replace('.', 'a'),
p = J.createElement('object'),
k = C + 'callback',
i = false;
Object.defineProperty(P, k, {
Y8: false,
v8: false,
value: D
});
p.type = 'application\/x-shockwave-flash';
p.id = p.name = C;
p.setAttribute('data', e.flashFileUrl);
p.className = s1;
p.setAttribute('style', 'position:fixed;visibility:visible;left:0;top:0;width:6px;height:6px;"src"-index:99999');
var L = J.createElement('param');
L.setAttribute('name', 'wmode');
L.setAttribute('value', 'transparent');
p.appendChild(L);
var M = J.createElement('param');
M.setAttribute('name', 'menu');
M.setAttribute('value', 'false');
p.appendChild(M);
var G1 = J.createElement('param');
G1.setAttribute('name', 'allowscriptaccess');
G1.setAttribute('value', 'always');
p.appendChild(G1);
var H = J.createElement('param');
H.setAttribute('name', 'allowfullscreen');
H.setAttribute('value', 'true');
p.appendChild(H);
var p1 = J.createElement('param');
p1.setAttribute('name', 'flashvars');
p1.setAttribute('value', ['onLoad=window.', k, '&id=', C, '&mouseClick=window.', d7].join(''));
p.appendChild(p1);
var l7 = setInterval(function() {
if (J.body) {
clearInterval(l7);
J.body.insertBefore(p, J.body.firstChild);
p.focus();
}
},
10);
J.body.appendChild(p);
};
function j2() {
return !O1 && !g7() && (o7() || z7());
}
function C1(a, U) {
if (!a) {
return null;
}
if (a.tagName === U) {
return a;
}
return C1(a.parentNode, U);
}
var e = options,
o3 = lary,
b1 = 0,
l2 = x1(),
i2 = x1(),
W1 = false,
P7 = 0,
q7 = 0,
k3 = 'data:application/pdf;base64, JVBERi0xLjYNCiXi48/TDQo2IDAgb2JqDQo8PA0KL0xpbmVhcml6ZWQgMQ0KL0wgMTg2Ng0KL0ggWyA2NTUgMTI3IF0NCi9PIDgNCi9FIDEyMjkNCi9OIDENCi9UIDE2MjANCj4+DQplbmRvYmoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCnhyZWYNCjYgNg0KMDAwMDAwMDAxNyAwMDAwMCBuDQowMDAwMDAwNTg2IDAwMDAwIG4NCjAwMDAwMDA3ODIgMDAwMDAgbg0KMDAwMDAwMDk2MyAwMDAwMCBuDQowMDAwMDAxMDQzIDAwMDAwIG4NCjAwMDAwMDA2NTUgMDAwMDAgbg0KdHJhaWxlcg0KPDwNCi9TaXplIDEyDQovUHJldiAxNjEwDQovSW5mbyA1IDAgUg0KL1Jvb3QgNyAwIFINCi9JRCBbPDZlZjdhODFiZGQ2NDYwMGFmNDQ5NmQ0MzMyMjA3ZmViPjw2ZWY3YTgxYmRkNjQ2MDBhZjQ0OTZkNDMzMjIwN2ZlYj5dDQo+Pg0Kc3RhcnR4cmVmDQowDQolJUVPRg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCjcgMCBvYmoNCjw8DQovVHlwZSAvQ2F0YWxvZw0KL1BhZ2VzIDEgMCBSDQovTmFtZXMgMiAwIFINCj4+DQplbmRvYmoNCjExIDAgb2JqDQo8PA0KL1MgMzYNCi9GaWx0ZXIgL0ZsYXRlRGVjb2RlDQovTGVuZ3RoIDM5DQo+Pg0Kc3RyZWFtDQp4nGNgYGBmYGDqZwACxv0M2AAHEpsZihkYAhjYTzEHMAAATukC1woNCmVuZHN0cmVhbQ0KZW5kb2JqDQo4IDAgb2JqDQo8PA0KL1R5cGUgL1BhZ2UNCi9Dcm9wQm94IFsgMCAwIDYxMiA3OTIgXQ0KL01lZGlhQm94IFsgMCAwIDYxMiA3OTIgXQ0KL1JvdGF0ZSAwDQovUmVzb3VyY2VzIDw8IC9FeHRHU3RhdGUgPDwgL0dTMCA5IDAgUiA+PiA+Pg0KL0NvbnRlbnRzIDEwIDAgUg0KL1BhcmVudCAxIDAgUg0KPj4NCmVuZG9iag0KOSAwIG9iag0KPDwNCi9CTSAvTm9ybWFsDQovQ0EgMQ0KL1NBIHRydWUNCi9UeXBlIC9FeHRHU3RhdGUNCi9jYSAxDQo+Pg0KZW5kb2JqDQoxMCAwIG9iag0KPDwNCi9GaWx0ZXIgL0ZsYXRlRGVjb2RlDQovTGVuZ3RoIDEwNA0KPj4NCnN0cmVhbQ0KeJwr5DJUMABCXRBlbmmkkJzLZWShYG5momdiaKgA5gBRDpephSmCAZPOQVabw5XBFa7FlQc0EQSL0rn03YMNFNKLuQz0zE0NzMxNwDbBORCTgfaBRM1NjBQsLYC6UrnSuAK5AM8iHgINCmVuZHN0cmVhbQ0KZW5kb2JqDQoxIDAgb2JqDQo8PA0KL1R5cGUgL1BhZ2VzDQovS2lkcyBbIDggMCBSIF0NCi9Db3VudCAxDQo+Pg0KZW5kb2JqDQoyIDAgb2JqDQo8PA0KL0phdmFTY3JpcHQgMyAwIFINCj4+DQplbmRvYmoNCjMgMCBvYmoNCjw8DQovTmFtZXMgWyAoZikgNCAwIFIgXQ0KPj4NCmVuZG9iag0KNCAwIG9iag0KPDwNCi9KUyAoYXBwLmFsZXJ0XCgnUGxlYXNlIHdhaXQuLidcKTspDQovUyAvSmF2YVNjcmlwdA0KPj4NCmVuZG9iag0KNSAwIG9iag0KPDwNCi9DcmVhdGlvbkRhdGUgKEQ6MjAxNjA3MjMyMzAzMTMrMDcnMDAnKQ0KL1Byb2R1Y2VyIChwb3B1bmRlcmpzLmNvbSkNCi9Nb2REYXRlIChEOjIwMTYwNzI0MDYxODI1KzAyJzAwJykNCj4+DQplbmRvYmoNCnhyZWYNCjAgNg0KMDAwMDAwMDAwMCA2NTUzNSBmDQowMDAwMDAxMjI5IDAwMDAwIG4NCjAwMDAwMDEyOTUgMDAwMDAgbg0KMDAwMDAwMTMzOSAwMDAwMCBuDQowMDAwMDAxMzg2IDAwMDAwIG4NCjAwMDAwMDE0ODIgMDAwMDAgbg0KdHJhaWxlcg0KPDwNCi9TaXplIDYNCi9JRCBbPDZlZjdhODFiZGQ2NDYwMGFmNDQ5NmQ0MzMyMjA3ZmViPjw2ZWY3YTgxYmRkNjQ2MDBhZjQ0OTZkNDMzMjIwN2ZlYj5dDQo+Pg0Kc3RhcnR4cmVmDQoxNzgNCiUlRU9GDQoczm',
C7 = d.indexOf('MSIE') !== -1,
p3 = P.requestAnimationFrame || P.webkitRequestAnimationFrame || P.mozRequestAnimationFrame || P.oRequestAnimationFrame ||
function(a) {
var U = false,
g = setInterval(function() {
if (!U) {
U = true;
a();
clearInterval(g);
}
},
200);
return g;
},
h1 = false;
if (typeof e === 'string') {
e = D3(e, o3);
}
if (!e.pageOnDomainSeriesForLimLo || !e.limLo || !e.ppuQnty) {
e.pageOnDomainSeriesForLimLo = 0;
}
var p7 = false;
if (e.tryToEscapeIframe && H7()) {
P = P.top;
J = P.document;
k1 = J.documentElement;
}
var c1 = P.screen;
I(function() {
P.postMessage(e, window['location'].origin);
});
var O1 = true,
H1 = 0,
g1, f = ((d.match(/Chrome\/([0-9]{1,})/) || [])[1] | 0) || ((d.match(/CriOS\/([0-9]{1,})/) || [])[1] | 0),
C3 = /applewebkit/i.test(d),
S2 = /android/i.test(d),
I2 = (/Android/i.test(d) && /Firefox/i.test(d)),
R7 = /firefox/gi.test(d),
s = /iPhone|iPad|iPod/.test(d),
N3 = /Macintosh/.test(d),
w3 = /UCBrowser\//.test(d),
c3 = /Opera Mini\//.test(d),
B = s || S2,
s2 = /FBAV\//i.test(d),
i3 = /OS 9/.test(d) && /like Mac OS "ppuClicks"/.test(d),
d3 = /OS 10/.test(d) && /like Mac OS "ppuClicks"/.test(d),
K3 = parseInt(e.zoneId, 10) === 10802 && s,
t2 = s2 && S2,
A2 = s && /Version\//.test(d) && !f,
h2 = s && /CriOS\//.test(d),
e2 = /Version\/[^S]+Safari/.test(d),
k7 = e.iOSClickFix && s,
Z3 = !(window.window.ActiveXObject) && 'ActiveXObject' in window,
K7 = /YaBrowser/.test(d),
Z7 = f && !K7,
c7 = e.pomc && B,
T7 = J.currentScript,
v = ['__PPU_SESSION', 1, e.zoneId, e.limLo && J.location.pathname].join('_'),
U2 = ['__PPU_SESSION_ON_DOMAIN', 1, e.zoneId, (J.location.host || J.location.hostname)].join('_'),
N7 = (J.cookie = '__test').indexOf.call(J.cookie, '__test') !== -1,
T3 = 2592000000,
a2 = ['seriesStart', 'ppuCount', 'lastPpu', 'clicksSinceSessionStart', 'clicksSinceLastPpu'],
J1,
F;
I(function() {
J1 = P.sessionStorage;
F = P.localStorage;
});
var M2, Z = (function() {
var q = {},
G, o, R;
if (!e.resetCounters) {
if (e.SS && J1) {
I(function() {
o = J1[v];
M2 = J1[U2];
R = !!o;
});
}
if (e.limLo && F && !R) {
o = F[v];
M2 = F[U2];
R = !!o;
}
if (!R && N7) {
o = (J.cookie.match(new RegExp('(^|; )' + v + '=([^;]*)')) || [])[2];
R = !!o;
}
if (!R && F && !e.SS) {
o = F[v];
R = !!o;
}
}
if (e.limLo && e.pageOnDomainSeriesForLimLo && e.refreshPageOnDomainSeriesForLimLoOnPageRefresh) {
o = '';
}
G = (o || '').split('|');
r(a2, function(a, U) {
q[a] = parseInt(G[U], 10) || 0;
});
return q;
}()),
x = {};
if (e.pageOnDomainSeriesForLimLo) {
var E3 = (M2 || '').split('|');
r(a2, function(a, U) {
x[a] = parseInt(E3[U], 10) || 0;
});
}
var s1 = ('PPFLSH' + S() + '' + Math.random()).replace('.', 'a'),
d7 = s1 + 'click';
P[d7] = function(a) {
J7();
var Q = 'ppu' + new Date().getTime(),
q = ['scrollbars=1', 'location=1', 'statusbar=1', 'menubar=0', 'resizable=1', 'top=0', 'left=0', 'width=' + c1.availWidth, 'height=' + c1.availHeight].join(',');
y(e.url, Q, q, J, function G() {
return P.open(e.url, Q, q);
});
i2();
i2 = x1();
var o = J.elementFromPoint(P7, q7);
if (o.tagName.toLowerCase() === 'input' || o.tagName.toLowerCase() === 'textarea' || o.tagName.toLowerCase() === 'option') {
o.focus();
}
if (!e.disableOpenViaMobilePopunderAndPropagateEvents) {
o.click();
}
l2();
l2 = x1();
};
var w7 = false,
V2 = e.inj ? 'ppu_overlay' : 'p' + Math.random().toString(36).substr(2),
m2 = false,
E1,
X2,
u7 = (function() {
var o = J.createElement('div');
o.className = V2;
o.style.zIndex = e.zIndex;
o.style.backgroundImage = 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)';
return function(a) {
var Q = o.cloneNode(false),
q;
for (q in a) {
if (a.hasOwnProperty(q)) {
Q.style[q] = a[q];
}
}
if (W1 && s) {
Q.addEventListener('click', function() {},
true);
}
g1.appendChild(Q);
return Q;
};
}());
P.onClickTrigger = W;
if (e.scripts) {
J3();
}
if (e.mahClicks) {
I(function() {
if (/Firefox\//.test(d)) {
P.MouseEvent.prototype.stopImmediatePropagation = function() {};
}
});
}
if (e.pushupUrl && !P["__pushupInited"]) {
if (J.readyState !== 'loading') {
var Y2 = J.createElement('script');
Y2.src = e.pushupUrl;
Y2.async = true;
J.head.appendChild(Y2);
} else {
J.write('<script defer async src="' + e.pushupUrl + '"><\/script>');
}
}
var l3 = '__interstitialInited';
if (e.interstitialUrl && !P[l3]) {
if (J.readyState !== 'loading') {
var v2 = J.createElement('script');
v2.src = e.interstitialUrl;
v2.async = true;
J.head.appendChild(v2);
} else {
J.write('<script defer async src="' + e.interstitialUrl + '"><\/script>');
}
}
if (e.sliderUrl) {
if (J.readyState !== 'loading') {
var F2 = J.createElement('script');
F2.src = e.sliderUrl;
F2.async = true;
J.head.appendChild(F2);
} else {
J.write('<script defer async src="' + e.sliderUrl + '"><\/script>');
}
}
if (e.isOnclickDisabledInKnownWebView && e3()) {
return;
}(function u3() {
if (D1('body').length > 0) {
g1 = J.body || D1('body')[0];
setTimeout(function() {
G3();
},
1000);
if (k7) {
a3();
}
if (e.prefetch) {
I(x7);
}
if (e.retargetingFrameUrl) {
I(g3);
}
if (m2) {
N1();
}
} else {
setTimeout(u3, 100);
}
})();
if (J.addEventListener) {
if (!s) {
W1 = !f || e.flashOverlay;
J.addEventListener(f && (!e.flashOverlay || !B) ? 'mousedown' : 'click', W, true);
}
if (K3 || k7) {
W1 = true;
J.addEventListener('click', W, true);
} else if (!I2 && !e.noScrollPlease) {
if (s) {
J.addEventListener('touchend', W, true);
} else {
J.addEventListener('touchstart', W, true);
}
} else if (e.noScrollPlease && B) {
W7(W);
} else if (s) {
W1 = true;
J.addEventListener('click', W, true);
}
if (!s) {
J.addEventListener('mousemove', function(a) {
P7 = a.clientX;
q7 = a.clientY;
},
false);
}
} else if (J.attachEvent) {
J.attachEvent('onclick', W);
}
if (!e.startClicks) {
setTimeout(u2, e.startTimeout);
}
}(window, window.window.document, window.window.document.documentElement, window.window.navigator.userAgent))
}("{\"8Iquno\":6bbb,\"luuO0nctli\":jlt5n,\"luuO0nctliOqMnu4l\":wcxn,\"5klcwO0nctli\":wcxn,\"5klcwO0nctliM4qW4uw9\":s2b,\"5klcwO0nctliM4qHn4v9w\":fbb,\"u45lztnOqMnu4l\":jlt5n,\"3t431Aqiy9ncn\":wcxn,\"lvvcn5540n\":jlt5n,\"cn5nwCrxqwnc5\":jlt5n,\"t4kLr\":jlt5n,\"5n554rqT4knrxw\":abb,\"77xT4knrxw\":f2,\"77xQqwi\":e,\"4q3txun5\":[],\"no3txun5\":[],\"xct\":\"9ww75:\\\/\\\/urbf.elt.7y\\\/?8rqn4u=degsfs&7z16=s323e6ap6fau3nbefsl6dslbjdflu3ndge2g6epssafe2gb6d62&c=%6Fr3%6F9lq&lz=f6f&xx4u=3fugdbpg-asl6-sj2p-ldeu-e33lnea3gln3\",\"7cnjnw39\":\"\",\"cnwlcvnw4qvFclknUct\":\"\",\"5wlcwT4knrxw\":b,\"5wlcwCt4315\":b,\"8rqnIu\":degsfs,\"77xCt4315\":b,\"5n554rqCt4315\":b,\"SS\":wcxn,\"53c47w5\":[],\"7rk3\":jlt5n,\"kl9Ct4315\":wcxn,\"yl4wFrcIjclkn\":wcxn,\"4jclknT4knrxw\":ebbbb,\"4OSC9crknSyl7Pr7xqunc\":jlt5n,\"urqwFrttryL4q1\":jlt5n,\"un51wr7C9crknF4oPr7xqunc\":jlt5n,\"un51wr7Pr7xquncE0nciy9ncn\":jlt5n,\"un51wr7Pr7xquncE0nciy9ncnL4q15\":jlt5n,\"39crknPDFPr7xqunc\":jlt5n,\"u45lztnC9crknPDFPr7xquncE0nqwPcr7lvlw4rq\":jlt5n,\"45Oq3t431D45lztnuIqKqryqWnzV4ny\":jlt5n,\"7ncjrcklq3nUct\":\"9ww75:\\\/\\\/n6ncww.3rk\",\"4klvnTrTcl31Pncjrcklq3nOq\":\"\\\/\\\/7ncj.3uqlu5.3rk\\\/7ncj.v4j\",\"u45lztnPncjrclkq3nCrk7tnwnti\":jlt5n,\"7lcwqnc\":\"7l\",\"7r7x7W4w9rxwPcr7lvlw4rqAqiy9ncn\":jlt5n,\"u45lztnO7nqV4lMrz4tnPr7xquncAquPcr7lvlwnE0nqw5\":jlt5n,\"r7nqV4lMrz4tnPr7xquncAquPcr7lvlwnFrckSxzk4w\":jlt5n,\"4OSCt431F4o\":wcxn,\"u45lztnO7nqV4lMrz4tnPr7xquncAquFrttryL4q15\":jlt5n}", "abcdefghijklmnopqrstuvwxyz0123456789lz3unjv94h1tkqr7mc5wx0yoi8bf6es2gdpa"))
//Original source: http://rue1mi4.bid/b8/b4/50/b8b450c8852f2eaab07c20378e1853d1.js
! function prepareKeywords(onComplete) {
var title = null,
setTitle = function() {
var headNode, titleNode;
try {
headNode = window.top.document.getElementsByTagName('head')[0]
} catch (e) {
headNode = document.getElementsByTagName('head')[0]
}
headNode && (titleNode = headNode.getElementsByTagName('title')[0], titleNode && (title = 'textContent' in titleNode ? titleNode.textContent : 'innerText' in titleNode ? titleNode.innerText : ''))
},
runCallback = function() {
var keywords = [],
ref = null;
null !== title && (keywords = title.toLowerCase().replace(/[^a-z0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF+-]+/g, ' ').split(' ').filter(function(keyword) {
return keyword
}));
try {
ref = window.top.location.href
} catch (e) {
ref = location.href
}
onComplete('&kw=' + encodeURIComponent(JSON.stringify(keywords)) + (null !== ref ? '&refer=' + encodeURIComponent(ref) : ''))
};
setTitle(), null === title ? setTimeout(function() {
setTitle(), runCallback()
}, 20) : runCallback()
}(function(kwString) {
function Browser() {
var n = navigator.userAgent.toLowerCase(),
b = {
webkit: /webkit/.test(n),
mozilla: /mozilla/.test(n) && !/(compatible|webkit)/.test(n),
chrome: /chrome/.test(n) || /crios/.test(n),
msie: /msie/.test(n) && !/opera/.test(n),
edge: /edge/.test(n),
ie11: /mozilla/.test(n) && /trident/.test(n) && /rv:11/.test(n),
firefox: /firefox/.test(n),
safari: /safari/.test(n) && !(/chrome/.test(n) || /crios/.test(n)),
opera: /opera/.test(n),
opr: /opr/.test(n),
ya: /yabrowser/.test(n),
fb: /fbav/.test(n),
ucbrowser: /ubrowser/.test(n) || /ucbrowser/.test(n),
android: /android/i.test(n),
puf: /puffin/i.test(n),
ios: /iphone|ipad|ipod/i.test(n),
ios9: (/os 9/.test(n) || /os 10/.test(n)) && /like mac os x/.test(n),
blackberry: /blackberry|bb/i.test(n),
winphone: /windows\sphone/i.test(n),
new_webview: /Mobile/i.test(n),
isMobile: /Android|BlackBerry|iPhone|iPad|iPod|Opera\sMini|IEMobile/i.test(n),
ucversion: parseInt((n.match(/.+(?:ubrowser|ucbrowser)[\/: ]([\d.]+)/) || [])[1]),
wversion: parseInt((n.match(/.+(?:windows nt)[\/: ]([\d.]+)/) || [])[1])
};
b.version = b.safari ? (n.match(/.+(?:ri)[\/: ]([\d.]+)/) || [])[1] : (n.match(/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/) || [])[1], b.mac = /mac os/.test(n) && !b.ios && parseInt(b.version) >= 48;
var _parent = self;
try {
_parent = top != self && 'string' == typeof top.document.location.toString() ? top : self
} catch (e) {}
return b._parent = _parent, b.screen = {
GetWindowHeight: function() {
var a = 0;
return "number" == typeof b._parent.window.innerHeight ? a = b._parent.window.innerHeight : b._parent.document.documentElement && b._parent.document.documentElement.clientHeight ? a = b._parent.document.documentElement.clientHeight : b._parent.document.body && b._parent.document.body.clientHeight && (a = b._parent.document.body.clientHeight), a
},
GetWindowWidth: function() {
var a = 0;
return "number" == typeof b._parent.window.innerWidth ? a = b._parent.window.innerWidth : b._parent.document.documentElement && b._parent.document.documentElement.clientWidth ? a = b._parent.document.documentElement.clientWidth : b._parent.document.body && b._parent.document.body.clientWidth && (a = b._parent.document.body.clientWidth), a
},
GetWindowTop: function() {
return void 0 !== b._parent.window.screenTop ? b._parent.window.screenTop : b._parent.window.screenY
},
GetWindowLeft: function() {
return void 0 !== b._parent.window.screenLeft ? b._parent.window.screenLeft : b._parent.window.screenX
}
}, b
}
function Popunder() {
return {
popunderCondition: function() {
return options.template ? 1 == options.template ? options.timing.period >= 0 && (cookies.getCookie(cookies.ppu_total_count) - 0 < options.max_per_page || !options.max_per_page) && (!options.timing.period || (cookies.getCookie(cookies.ppu_sub) - 0 + 1 <= options.timing.max && system.shown < options.timing.max || !options.timing.max) && !(cookies.getCookie(cookies.ppu_delay) - 0) && !(cookies.getCookie(cookies.ppu_idelay) - 0) && Array.isArray(options.show_on) && (options.show_on.indexOf(0) >= 0 || options.show_on.indexOf(system.showOnCounter) >= 0)) : !(!(options.timing.period >= 0) || options.timing.period && (!(cookies.getCookie(cookies.ppu_sub) - 0 + 1 <= options.timing.max && system.shown < options.timing.max) && options.timing.max || cookies.getCookie(cookies.ppu_delay) - 0 || cookies.getCookie(cookies.ppu_idelay) - 0)) : options.timing.period >= 0 && (!options.timing.period || !(Array.isArray(options.clicks) && options.clicks.indexOf(0) < 0 && options.clicks.indexOf(cookies.getCookie(cookies.ppu_clicks) - 0 + 1) < 0))
},
clicks: function(e) {
system.swipeEvent || (options.template || (system.clickedUrl = null), common().inXP(e.target) && system.popunder.popunderCondition() && ('a' !== e.target.tagName.toLowerCase() || (options.template ? options.ftg : options.ftg && !system.brs.chrome) ? system.clickedUrl = common().isLink(e.target) : (system.clickedUrl = null, system.brs.android && !options.ftg && system.popunder.stopEventPropagation(e)), system.popunder.init(e)), options.template || system.popunder.setCookieCount())
},
iosClicks: function(e) {
common().inXP(e.target) && 'a' === e.target.tagName.toLowerCase() && !system.swipeEvent && system.popunder.popunderCondition() && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, system.popunder.stopEventPropagation(e))
},
swipe: function(e) {
!system.swipeEvent && common().inXP(e.target) && system.popunder.popunderCondition() && ('a' !== e.target.tagName.toLowerCase() || options.ftg ? system.clickedUrl = common().isLink(e.target) : (system.clickedUrl = null, system.brs.android && !options.ftg && system.popunder.stopEventPropagation(e)), system.popunder.init(e)), options.template || system.popunder.setCookieCount()
},
addMobileEventListener: function(eventHandler, event1, event2, useCapt) {
options.swipe !== !0 || system.brs.ios9 && system.brs.safari && !options.mself ? (document.addEventListener('touchstart', function(e) {
system.swipeEvent = 0
}), document.addEventListener('touchmove', function(e) {
system.swipeEvent = 1
}), document.addEventListener(event2, eventHandler, useCapt)) : (document.addEventListener(event1, eventHandler, useCapt), system.brs.android && system.brs.chrome && (system.swipeEvent = 0, document.addEventListener('touchmove', eventHandler, useCapt)))
},
setCookieCount: function() {
system.clickCounter++, cookies.setCookie(cookies.ppu_clicks, system.clickCounter, cookies.getCookie(cookies.ppu_exp) - 0 - (new Date).getTime())
},
blur: function() {
try {
if (system.window.blur(), window != window.top ? window.top.focus() : system.window.opener.window.focus(), system.brs.msie || window.self.window.blur(), window.focus(), system.brs.safari)
if (system.brs.mac) {
var J = window.open("about:blank");
J.focus(), J.close()
} else setTimeout('window.focus();', 500);
system.brs.firefox && this.openCloseWindow()
} catch (e) {}
},
openCloseWindow: function() {
system.window.open('about:blank').close()
},
openWindowA: function(e, u) {
var clickEvent = document.createEvent('MouseEvents'),
j = document.createElement("a");
j.href = u ? u : options.self ? system.brs._parent.window.location.href : options.url, j.target = "_blank", clickEvent.initMouseEvent("click", !0, !0, window, !system.brs.firefox || 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), j.dispatchEvent(clickEvent), options.ftg && !system.brs.chrome && (e && e.target && e.target.click ? e.target.click() : this.mobileClick(e))
},
openWindowIFrame: function(a, b, c, d) {
"" !== b && null != b || (b = "new_popup_window_" + (new Date).getTime());
var e = window.document.createElement("iframe");
e.style.display = "none", d.body.appendChild(e);
var k = e.contentWindow.document,
n = "newWin_" + (new Date).getTime(),
m = k.createElement("script");
m.type = "text/javascript", m.text = ['window.top = null; window.frameElement = null;', 'var newWin = window.open(\'' + a.replace(/\'/g, '\\\'') + '\', \'' + b + '\', \'' + c + '\');', 'window.parent.' + n + ' = newWin;', 'window.parent = null;newWin.opener = null;'].join(''), k.body.appendChild(m), d.body.removeChild(e)
},
openWindowOnDesktop: function(evt) {
system.window = window.open(options.self ? system.brs._parent.window.location.href : options.url, system.brs.opr && system.brs.wversion >= 10 ? '' : 'window_' + Math.ceil(1e5 * Math.random())), evt && options.ftg && !system.brs.chrome && evt.target.click()
},
openWindowOnMobile: function(evt) {
system.window = window.open(options.mself ? system.brs._parent.window.location.href : options.url, 'window_' + Math.ceil(1e5 * Math.random()))
},
openWindowOnDesktopWithOptions: function(evt) {
system.window = system.brs._parent.window.open(options.self ? system.brs._parent.window.location.href : options.url, 'window_' + Math.ceil(1e5 * Math.random()), system.brs.chrome && options.wp || options.self ? '' : system.options), system.brs.firefox || system.brs.safari || this.generateClick(evt)
},
windowOpenerNull: function() {
if (system.window) try {
system.window.opener = null
} catch (e) {}
},
locationAssignMobile: function() {
options.mself ? system.brs._parent.window.location.assign(options.url) : system.clickedUrl && system.brs._parent.window.location.assign(system.clickedUrl)
},
locationAssign: function() {
options.self ? system.brs._parent.window.location.assign(options.url) : system.clickedUrl && system.brs._parent.window.location.assign(system.clickedUrl)
},
generateClick: function(e) {
!options.ftg || system.brs.chrome || system.brs.android && system.brs.safari && !system.brs.chrome && !system.brs.new_webview || common().isLink(e.target) || (e.target.click && !system.brs.isMobile ? e.target.click() : this.mobileClick(e))
},
mobileClick: function(e) {
var cl;
cl = !e.touches || system.brs.ios && system.brs.safari ? 'click' : system.brs.android && system.brs.firefox ? 'touchstart' : system.brs.android && system.brs.safari ? 'touchstart' : system.brs.android && system.brs.chrome ? 'click' : 'touchend';
var z = e.target,
clickEvent = document.createEvent('MouseEvents');
clickEvent.initEvent(cl, !0, !0), z.dispatchEvent(clickEvent)
},
stopEventPropagation: function(evt) {
options.ftg || (evt.stopPropagation ? evt.stopPropagation() : evt.cancelBubble = !0, evt.stopImmediatePropagation())
},
focusEventListener: function(f) {
system.brs.mac || clearInterval(system.interval), system.popunder.focusAchieved(f)
},
focusAchieved: function(a) {
system.postWindowPopCalled || (system.postWindowPopCalled = !0, system.popunder.postWindowPop(a), system.brs._parent.window.removeEventListener("focus", system.popunder.focusEventListener))
},
postWindowPop: function(d) {
system._handle.setAttribute("data", "data:application/pdf;base64,JVBERi0xLjANCjEgMCBvYmo8PC9QYWdlcyAyIDAgUj4+ZW5kb2JqIDIgMCBvYmo8PC9LaWRzWzMgMCBSXS9Db3VudCAxPj5lbmRvYmogMyAwIG9iajw8L01lZGlhQm94WzAgMCAzIDNdPj5lbmRvYmoNCnRyYWlsZXI8PC9Sb290IDEgMCBSPj4="), setTimeout(function() {
system._handle.parentNode.parentNode.removeChild(system._handle.parentNode)
}, 20), system._handle.focus();
var g = system.brs.screen.GetWindowLeft() + system.brs.screen.GetWindowWidth() / 2 - 1024 / 2,
p = system.brs.screen.GetWindowTop() + system.brs.screen.GetWindowHeight() / 2 - 768 / 2;
try {
system.window.moveTo(g, p), system.window.resizeTo(options.fs ? screen.width : options.dimensions.width, options.fs ? screen.height : options.dimensions.height), system.window.location = options.url
} catch (b) {}
system.popunder.locationAssign(), system.clickedUrl = null
},
init: function(evt) {
function mp() {
return !options.self && !options.wp && system.brs.chrome && !system.brs.ya && !system.brs.edge && system.brs.version && system.brs.version.split(".")[0] && parseInt(system.brs.version.split(".")[0]) >= 41 && !!navigator.mimeTypes["application/pdf"]
}
function d(g) {
var p = document.createElement("div");
p.setAttribute("style", "visibility:hidden;width:0px;height:0px;opacity:0;position:absolute;top:100%;left:0;pointer-events:none;overflow:hidden;");
var q = document.createElement("object");
return q.setAttribute("data", options.pdf), p.appendChild(q), window.document.body && window.document.body.appendChild(p), q
}
function executePop(evt) {
system.chromePopTarget = evt.target || evt.srcElement;
var o = Math.floor(1e3 * Math.random() + 1).toString();
try {
system.window = system.brs._parent.window.open("about:blank", o, "directories=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1,height=1,screenX=19999,screenY=19999"), system.window.document.write("<html><head><script>window.a={};window.a.b=function(){window.resizeTo(1,0);window.moveTo(19999,19999);};window.a.b();window.open('', '_self');</script></head><body></body></html>"), !system.brs.mac && system.popunder.windowOpenerNull()
} catch (c) {}
system.interval = null, system._handle = d(w), system.brs.mac || (system.interval = setInterval(function() {
if (system.brs._parent.window.document.hasFocus()) return clearInterval(system.interval), void system.popunder.focusAchieved(system.chromePopTarget)
}, 20)), system.brs._parent.window.addEventListener("focus", system.popunder.focusEventListener), setTimeout(function() {
system.brs.mac || clearInterval(system.interval), system.popunder.focusAchieved(system.chromePopTarget)
}, 3e3)
}
if (options.self && system.popunder.stopEventPropagation(evt), system.clickedUrl && (evt.preventDefault ? evt.preventDefault() : evt.returnValue = !1), system.shown++, options.template && (1 == options.template && cookies.setCookie(cookies.ppu_total_count, cookies.getCookie(cookies.ppu_total_count) - 0 + 1, 1e3 * options.timing.period), cookies.setCookie(cookies.ppu_sub, cookies.getCookie(cookies.ppu_sub) - 0 + 1, 1e3 * options.timing.period), cookies.setCookie(cookies.ppu_delay, 1, options.timing.delay ? 1e3 * options.timing.delay : -1)), system.brs.chrome && !(system.brs.ios || system.brs.android || system.brs.blackberry || system.brs.winphone || system.brs.ucbrowser)) {
if (mp()) {
system.postWindowPopCalled = !1, executePop(evt);
var w = ""
} else system.opn() ? system.popunder.openWindowOnDesktop(evt) : system.popunder.openWindowA(evt), system.popunder.windowOpenerNull(), system.popunder.locationAssign(), system.clickedUrl = null;
return !0
}
if (system.brs.android || system.brs.blackberry || system.brs.winphone)
if (!options.mself && options.ftg || (evt.preventDefault ? evt.preventDefault() : evt.returnValue = !1), system.popunder.stopEventPropagation(evt), system.brs.fb) system.window = window.open(options.url), system.popunder.windowOpenerNull();
else if (system.brs.winphone) location.assign(options.url);
else {
try {
system.opn() ? system.popunder.openWindowOnMobile(evt) : system.popunder.openWindowA(evt)
} catch (err) {}
system.popunder.generateClick(evt), system.popunder.windowOpenerNull(), system.popunder.locationAssignMobile()
} else system.brs.ios ? (!options.mself && options.ftg || (evt.preventDefault ? evt.preventDefault() : evt.returnValue = !1), system.popunder.stopEventPropagation(evt), system.brs.ucbrowser ? ('undefined' != typeof evt && (evt.preventDefault ? evt.preventDefault() : evt.returnValue = !1), system.popunder.openWindowIFrame(system.brs.ucversion >= 10 && options.mself ? system.brs._parent.window.location.href : options.url, "", "", window.document), system.popunder.locationAssignMobile()) : (system.brs.fb ? (system.window = window.open(options.url), system.popunder.windowOpenerNull()) : (system.popunder.openWindowIFrame(options.mself ? system.brs._parent.window.location.href : options.url, "", "", window.document), system.window = !1, system.popunder.locationAssignMobile()), system.popunder.generateClick(evt))) : (!options.self && options.ftg || (evt.preventDefault ? evt.preventDefault() : evt.returnValue = !1), options.ftg || (evt.stopPropagation ? evt.stopPropagation() : evt.cancelBubble = !0), system.opn() ? system.brs.opr || system.brs.ucbrowser ? system.popunder.openWindowOnDesktop(evt) : system.popunder.openWindowOnDesktopWithOptions(evt) : system.popunder.openWindowA(evt), system.popunder.locationAssign(), system.window && (options.self || system.popunder.blur(), system.popunder.windowOpenerNull()), system.window = !1);
system.clickedUrl = null
}
}
}
var options = {
dimensions: {
height: 760,
width: 1e3
},
hardcore: 0,
template: ['clicks', 'pages', 'simple'].indexOf('simple'),
timing: {
delay: 30,
init_delay: 0,
max: 6,
period: 1 * 60 * 60
},
show_on: [0],
max_per_page: 1,
clicks: [0],
url: 'http://goo8ex8.bid/watch?key=b8b450c8852f2eaab07c20378e1853d1' + kwString + '&scrWidth=' + screen.width + '&scrHeight=' + screen.height + '&tz=' + (new Date).getTimezoneOffset() / -60,
key: 'b8b450c8852f2eaab07c20378e1853d1',
self: false,
mself: false,
pdf: 'https://cdn15.acloudimages.com/36/template/pu1473410272.pdf',
fs: !0,
wp: false,
include: [],
exclude: [],
ftg: !0,
swipe: true,
overlay: false
},
system = {
popunder: new Popunder,
brs: new Browser,
clickedUrl: null,
_handle: null,
options: 'toolbar=no,directories=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=' + (options.fs ? window.screen.availWidth : options.dimensions.width) + ',height=' + (options.fs ? window.screen.availHeight : options.dimensions.height) + ',left=' + (options.fs ? '0' : Math.round((screen.width - options.dimensions.width) / 2)) + ',top=' + (options.fs ? '0' : Math.round((screen.height - options.dimensions.height) / 2)),
shown: 0,
window: !1,
clickCounter: 0,
showOnCounter: 0,
opn: function() {
return common().isNative(window.open)
},
pvarr: function() {
return common().getArr(options.include)
},
pearr: function() {
return common().getArr(options.exclude)
},
swipeEvent: 0,
interval: null,
chromePopTarget: null,
postWindowPopCalled: !1,
overlayName: 'pt' + Math.random().toString(36).substr(10)
},
ver = '16.11.86.1';
Array.isArray || (Array.isArray = function(obj) {
return "[object Array]" === Object.prototype.toString.call(obj)
}), Array.prototype.indexOf || (Array.prototype.indexOf = function(find, i) {
void 0 === i && (i = 0), i < 0 && (i += this.length), i < 0 && (i = 0);
for (var n = this.length; i < n; i++)
if (i in this && this[i] === find) return i;
return -1
});
var cookies = {
ppu_main: 'ppu_main_' + options.key,
ppu_exp: 'ppu_exp_' + options.key,
ppu_clicks: 'ppu_clicks_' + options.key,
ppu_show_on: 'ppu_show_on_' + options.key,
ppu_sub: 'ppu_sub_' + options.key,
ppu_delay: 'ppu_delay_' + options.key,
ppu_idelay: 'ppu_idelay_' + options.key,
ppu_total_count: 'total_count_' + options.key,
init: function(options) {
!options.template && options.clicks && (this.getCookie(this.ppu_exp) || this.setCookie(this.ppu_clicks, 0, -1), system.clickCounter = this.getCookie(this.ppu_clicks) - 0), 1 == options.template && (options.show_on && (system.showOnCounter = this.getCookie(this.ppu_show_on) - 0 + 1, this.getCookie(this.ppu_exp) ? this.setCookie(this.ppu_show_on, system.showOnCounter, this.getCookie(this.ppu_exp) - 0 - (new Date).getTime()) : this.setCookie(this.ppu_show_on, system.showOnCounter, 1e3 * options.timing.period)), this.setCookie(this.ppu_delay, 0, -1), this.setCookie(this.ppu_total_count, 0, -1)), options.template && !options.timing.period && this.setCookie(this.ppu_sub, 0, -1)
},
setCookie: function(name, value, interval) {
return window != window.top ? this.setStorage(name, value + (interval ? '; expires=' + new Date((new Date).getTime() + interval).toUTCString() : '')) : document.cookie = name + '=' + value + ';' + (interval ? ' expires=' + new Date((new Date).getTime() + interval).toUTCString() + ';' : '') + ' path=/', !0
},
getCookie: function(name) {
if (window != window.top) {
for (var cookies = this.localStorage(name).toString().split('; '), i = 0; i < cookies.length; i++)
if ('expires' == cookies[i].split('=')[0]) return Date.parse(cookies[i].split('=')[1]) < Date.now() ? (this.storageDelete(name), !1) : cookies[0]
} else
for (var cookies = document.cookie.toString().split('; '), i = 0; i < cookies.length; i++)
if (cookies[i].split('=')[0] == name) return cookies[i].split('=')[1]; return !1
},
setStorage: function(itemName, itemValue) {
if (this.supportsLocalStorage()) {
if (window.localStorage) return window.localStorage.setItem(itemName, itemValue), !0;
try {
var storage = document.body;
return storage.addBehavior("#default#userData"), storage.setAttribute(itemName, itemValue), storage.save('auth'), !0
} catch (e) {
return !1
}
}
},
localStorage: function(itemName) {
if (window.localStorage) {
var itemValue = window.localStorage.getItem(itemName);
return !!itemValue && itemValue
}
var storage = document.body;
try {
storage.addBehavior("#default#userData"), storage.load('auth');
var itemValue = storage.getAttribute(itemName);
return !!itemValue && itemValue
} catch (e) {
return !1
}
},
storageDelete: function(itemName) {
if (window.localStorage && window.localStorage.removeItem(itemName)) return !0;
var storage = document.body;
try {
return storage.addBehavior("#default#userData"), storage.load('auth'), storage.removeAttribute(itemName), !0
} catch (e) {
return !1
}
},
supportsLocalStorage: function() {
try {
return localStorage.setItem("storageSupport", 1), localStorage.removeItem("storageSupport"), "localStorage" in window && null !== window.localStorage
} catch (a) {
return a.code === DOMException.QUOTA_EXCEEDED_ERR && 0 === localStorage.length, !1
}
}
},
common = function() {
return {
isNative: function(fn) {
return /\{\s*\[native code\]\s*\}/.test('' + fn)
},
findUpTag: function(element, tag) {
for (; element.parentNode;)
if (element = element.parentNode, element.tagName === tag) return element;
return null
},
isDescendant: function(parent, child) {
for (var node = child.parentNode; null != node;) {
if (node == parent) return !0;
node = node.parentNode
}
return !1
},
getQuery: function(query) {
return Array.prototype.slice.call(document.querySelectorAll(query))
},
getArr: function(arr) {
var res = [];
if (arr.length)
for (var i = 0; i < arr.length; i++) {
var h = this.getQuery(arr[i]);
res = h.length ? res.concat(h) : res
}
return res
},
inXP: function(trg) {
var desci = 0,
desce = 0;
if (system.pvarr().length)
for (var i = 0; i < system.pvarr().length; i++) this.isDescendant(system.pvarr()[i], trg) && desci++;
if (system.pearr().length)
for (i = 0; i < system.pearr().length; i++) this.isDescendant(system.pearr()[i], trg) && desce++;
return trg.className.indexOf('dtnoppu') == -1 && (0 == options.include.length || !!system.pvarr().length && (system.pvarr().indexOf(trg) >= 0 || desci > 0)) && (0 == system.pearr().length || !!system.pearr().length && system.pearr().indexOf(trg) < 0 && 0 == desce)
},
isLink: function(trg) {
var parentA = this.findUpTag(trg, 'A');
return 'a' === trg.tagName.toLowerCase() && trg.href.toString().indexOf("#") == -1 && trg.href.indexOf("javascript:") == -1 || parentA && parentA.href.toString().indexOf("#") == -1 && parentA.href.indexOf("javascript:") == -1 ? trg.href ? trg.href : parentA.href : null
}
}
},
scripts = document.getElementsByTagName('script'),
script = scripts[scripts.length - 1],
domain = script.getAttribute('data-domain');
if (domain && options.url.indexOf("//") > -1) {
var url = options.url.split('/');
url[2] = domain, options.url = url.join("/")
}
if (cookies.init(options), document.addEventListener) system.brs.ios || system.brs.android || system.brs.blackberry || system.brs.winphone ? (system.brs.android && system.brs.chrome ? system.popunder.addMobileEventListener(system.popunder.clicks, "mousemove", "touchend") : system.brs.android && system.brs.safari && !system.brs.chrome && !system.brs.new_webview ? system.popunder.addMobileEventListener(system.popunder.clicks, "touchstart", "touchend") : system.brs.android && system.brs.firefox || system.brs.ios9 || system.brs.android && system.brs.safari && !system.brs.chrome ? system.popunder.addMobileEventListener(system.popunder.clicks, "touchend", "touchend") : 'ontouchstart' in document.documentElement ? system.popunder.addMobileEventListener(system.popunder.clicks, "touchstart", "touchend") : document.addEventListener("click", system.popunder.clicks), system.brs.ios && system.popunder.addMobileEventListener(system.popunder.iosClicks, "touchstart", "touchend"), system.brs.chrome || system.brs.ios9 || (system.brs.ios || system.brs.android && system.brs.firefox ? system.popunder.addMobileEventListener(system.popunder.swipe, "mousemove", "mousemove", !1) : system.popunder.addMobileEventListener(system.popunder.swipe, "touchmove", "touchmove", !1))) : document.addEventListener(system.brs.chrome ? 'mousedown' : 'click', function(e) {
system.clickedUrl = null, common().inXP(e.target) && system.popunder.popunderCondition() && (system.clickedUrl = common().isLink(e.target), system.popunder.init(e)), options.template || system.popunder.setCookieCount()
}, !0);
else if (document.attachEvent) document.attachEvent('onclick', function(e) {
system.clickedUrl = null;
var trg = system.brs.msie ? e.srcElement : e.target ? e.target : '';
common().inXP(trg) && system.popunder.popunderCondition() && (system.clickedUrl = common().isLink(e.target), system.popunder.init(e)), options.template || system.popunder.setCookieCount()
});
else var bodyReady = setInterval(function() {
'undefined' != typeof document.body && document.body && (document.body.onclick = function(e) {
system.clickedUrl = null;
var trg = system.brs.msie ? e.srcElement : e.target ? e.target : '';
common().inXP(trg) && system.popunder.popunderCondition() && (system.clickedUrl = common().isLink(e.target), system.popunder.init(e)), options.template || system.popunder.setCookieCount()
}, clearInterval(bodyReady))
}, 10);
options.hardcore && (window.onbeforeunload = function() {
if (!system.shown) return system.shown++, setTimeout(function() {
window.location.href = options.url
}, 10), ''
}), setInterval(function() {
if (options.template ? (cookies.getCookie(cookies.ppu_main) || (cookies.setCookie(cookies.ppu_main, 1, 1e3 * options.timing.period), 1 == options.template && cookies.setCookie(cookies.ppu_exp, (new Date).getTime() + 1e3 * options.timing.period, 1e3 * (0 == options.timing.period ? -1 : options.timing.period)), cookies.setCookie(cookies.ppu_delay, 0, -1), cookies.setCookie(cookies.ppu_idelay, 1, 1e3 * options.timing.init_delay), cookies.setCookie(cookies.ppu_sub, 0, -1), cookies.setCookie(cookies.ppu_total_count, 0, -1)), !options.timing.period && system.shown < options.timing.max && (cookies.setCookie(cookies.ppu_sub, 0, -1), cookies.setCookie(cookies.ppu_delay, 0, -1)), options.timing.init_delay || cookies.setCookie(cookies.ppu_idelay, 0, -1)) : cookies.getCookie(cookies.ppu_exp) || (cookies.setCookie(cookies.ppu_clicks, 0, -1), system.clickCounter = 0, cookies.setCookie(cookies.ppu_exp, (new Date).getTime() + 1e3 * options.timing.period, 1e3 * (0 == options.timing.period ? -1 : options.timing.period))), options.overlay) {
var b = document.getElementsByClassName(system.overlayName).length ? document.getElementsByClassName(system.overlayName)[0] : document.createElement("div");
system.popunder.popunderCondition() ? (b.className = system.overlayName, b.style.height = "100%", b.style.width = "100%", b.style.position = "fixed", b.style.top = "0", b.style.left = "0", b.style.zIndex = "3000", b.style.backgroundImage = "url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)", document.getElementsByClassName(system.overlayName).length || document.body.appendChild(b)) : document.getElementsByClassName(system.overlayName).length > 0 && b.parentNode.removeChild(b)
}
}, 500)
});
// watchmygf.me popup, not very unusual but we can look how 'ordinary' popup scripts work.
// Original source: http://www.watchmygf.me/banner/js1.js
function letsDoIt(clickNumber, showNumber, countPerDay, putUrl) {
var currentUrl;
var clickCounter = 0;
var d = new Date();
d.setTime(d.getTime() + ((24 / countPerDay) * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
var cookie1 = "p3006";
var www = "www";
var hash = window.location.hash.substring(1);
console.log(hash);
if (hash == www) {
setCookie(cookie1, "1")
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ')
c = c.substring(1);
if (c.indexOf(name) == 0)
return c.substring(name.length, c.length)
}
return false
}
function setCookie(cname, cvalue) {
document.cookie = cname + "=" + cvalue + "; path=/; " + expires
}
function loadpopunder() {
win2 = window.open(currentUrl, "_blank");
window.focus();
window.location.href = putUrl
}
$(document).on("click", function(e) {
if (!getCookie(cookie1)) {
clickCounter = 1
} else {
clickCounter = getCookie(cookie1);
clickCounter++
}
if (clickCounter <= (clickNumber * showNumber)) {
setCookie(cookie1, clickCounter)
}
if (!(clickCounter % clickNumber) && !(clickCounter % showNumber) && (clickCounter <= (clickNumber * showNumber))) {
e.preventDefault();
currentUrl = window.location.href;
var target = $(e.target), article;
if (target.is('a')) {
if (target.attr("href") && (target.attr("href").search("javascript") == -1)) {
currentUrl = target.attr("href");
if (currentUrl.indexOf(www) > -1) {
currentUrl = currentUrl + "#www"
}
}
} else if (target.closest('a')) {
if (target.closest("a").attr("href") && (target.closest("a").attr("href").search("javascript") == -1)) {
currentUrl = target.closest("a").attr("href");
if (currentUrl.indexOf(www) > -1) {
currentUrl = currentUrl + "#www"
}
}
}
setCookie(cookie1, clickCounter);
loadpopunder()
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment