Edit: if it's useful to solve the problem, i am actually using google chrome and here's an example of the problem.
Code: Select all
window.addEventListener("load", function(){
var iframe = document.createElement("iframe");
iframe.height = "1px";
iframe.width = "1px";
iframe.frameBorder = 0;
iframe.id = "ads-text-iframe";
iframe.src = "http://exashare.com/ici.html";
document.body.appendChild(iframe);
setTimeout(function(){
var iframe = document.getElementById("ads-text-iframe");
if(iframe.style.display == "none" || iframe.style.display == "hidden" || iframe.style.visibility == "hidden" || iframe.offsetHeight == 0)
{
iframe.remove();
//$('#switch').hide();
// $('#annonce_pub').attr('style', 'width:640px;height:360px;');
// $('#annonce_pub').html("<div style='font-size: 15px; font-weight: bold; text-align:center; padding-top:30px; line-height: 35px'>Please disable AdBlock (or any ads blocking) to watch Exashare.<br> <br></div><div></div>");
//$('#divDownload').html("");
if(typeof ga !== 'undefined')
{
ga('send', 'event', 'Adblock', 'Yes', {'nonInteraction': 1});
}
else if(typeof _gaq !== 'undefined')
{
_gaq.push(['_trackEvent', 'Adblock', 'Yes', undefined, undefined, true]);
}
}
}, 1000);
}, false);
$('document').ready(function(){
setTimeout('xf34rd()', 10000);
});
function xf34rd() {
CheckAdImage($('#adCheck1'));
CheckAdImage($('#adCheck2'));
CheckAdImage($('#adCheck3'));
if (Mojod) {
$('#annonce_pub').html("<div style='font-size:20px;color:#fff;font-weight:bold;background-color:#B9122B;font-size: 15px; font-weight: bold; text-align:center; padding-top:30px; line-height: 35px'><img src=\"http://4.bp.blogspot.com/-3W69PiJh7U0/VFnmVUjb5lI/AAAAAAAAAJs/W08cXeRFXuA/s1600/Disable%2BAdblock.png\" ><br /><small>Bloquer la pub c\'est bloquer les revenus du site pour payer les serveur </small></div>");
console.log('Mojod weld ladina');
}
}