ent.body.appendchild(tester);
window.settimeout(function () {
if (tester.offsetheight === 0) {
abd = true;
}
tester.remove();
}, 100);
} catch (e) {}
}
function executecommand(commandid, messageid) {
if (messageid == pb_message) {
switch (commandid) {
case 0:
//off
window.open = originalwindowopenfn;
document.createelement = originalcreateelementfn;
document.createevent = originalcreateeventfn;
htmlelement.prototype.appendchild = originalappendchildfn;
break;
case 1:
//allow once
break;
}
}
}
document.addeventlistener("fullscreenchange", function () {
onfullscreen(document.fullscreen);
}, false);
document.addeventlistener("mozfullscreenchange", function () {
onfullscreen(document.mozfullscreen);
}, false);
document.addeventlistener("webkitfullscreenchange", function () {
onfullscreen(document.webkitisfullscreen);
}, false);
//document.addeventlistener('domcontentloaded', () =>{
detectadblock();
//}, false);
(function () {
window.pbexternalcommand = function (commandid, messageid) {
executecommand(commandid, messageid);
};
})();
};
inject();
})();