Firefox 42.00 bloquea anuncios de Adsense por defecto

  • Autor Autor Santafe
  • Fecha de inicio Fecha de inicio
En una web vi este codigo:

Supuestamente si tienes activado protreccion contra rastreo salta una advertencia...
No lo pude poner en mi web , uso blogger y tal cual no me funciona.

Solo se que al entrar en una web me salio un mensaje como el antiadblock y al desactivar eso en firefox se visualiza la web



Insertar CODE, HTML o PHP:
<style>
#rba2{position:fixed !important;position:absolute;top:0px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:0px;width:100%;height:100%;background-color:#fff;opacity:.95;filter:alpha(opacity=95);display:block;padding:13% 0}#rba2 *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#rba2 ~ *{display:none}
</style>
<div id="rba2">
<font>Please disable adblock to visit our website. And Reload This Page  .</font>
</div>
<script>window.document.getElementById("rba2").parentNode.removeChild(window.document.getElementById("rba2"));(function(l,m){function n(a){a&&rba2.nextFunction()}var h=l.document,p=["i","s","u"];n.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,b){return a?h.getElementById(a):h.getElementsByTagName(b)},getStyle:function(a){var b=h.defaultView;return b&&b.getComputedStyle?b.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,2E3)},insert:function(a,b){var e=h.createElement("font"),d=h.body,c=d.childNodes.length,g=d.style,f=0,k=0;if("rba2"==b){e.setAttribute("id",b);g.margin=g.padding=0;g.height="100%";for(c=this.rand(c);f<c;f++)1==d.childNodes[f].nodeType&&(k=Math.max(k,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));k&&(e.style.zIndex=k+1);c++}e.innerHTML=a;d.insertBefore(e,d.childNodes[c-1])},displayMessage:function(a){var b=this;a="abisuq".charAt(b.rand(5));b.insert("<"+a+'>Please disable adblock to visit our website, this help us to pay hosting bill.<img src="adblock.png" alt="" class="img-responsive" />'+("</"+a+">"),"rba2");h.addEventListener&&b.deferExecution(function(){b.getElementBy("rba2").addEventListener("DOMNodeRemoved",function(){b.displayMessage()},!1)})},i:function(){for(var a="Ad_Top,ad526x250,adcontent1,adspacer,awds-nt1-ad,headad,player_ad,ad,ads,adsense".split(","),b=a.length,e="",d=this,c=0,g="abisuq".charAt(d.rand(5));c<b;c++)d.getElementBy(a[c])||(e+="<"+g+' id="'+a[c]+'"></'+g+">");d.insert(e);d.deferExecution(function(){for(c=0;c<b;c++)if(null==d.getElementBy(a[c]).offsetParent||"none"==d.getStyle(d.getElementBy(a[c])).display)return d.displayMessage("#"+a[c]+"("+c+")");d.nextFunction()})},s:function(){var a={'pagead2.googlesyndic':'google_ad_client','js.adscale.de/getads':'adscale_slot_id','get.mirando.de/miran':'adPlaceId'},b=this,e=b.getElementBy(0,"script"),d=e.length-1,c,g,f,k;h.write=null;for(h.writeln=null;0<=d;--d)if(c=e[d].src.substr(7,20),a[c]!==m){f=h.createElement("script");f.type="text/javascript";f.src=e[d].src;g=a[c];l[g]=m;f.onload=f.onreadystatechange=function(){k=this;l[g]!==m||k.readyState&&"loaded"!==k.readyState&&"complete"!==k.readyState||(l[g]=f.onload=f.onreadystatechange=null,e[0].parentNode.removeChild(f))};e[0].parentNode.insertBefore(f,e[0]);b.deferExecution(function(){if(l[g]===m)return b.displayMessage(f.src);b.nextFunction()});return}b.nextFunction()},u:function(){var a="ad&adsize=,/adscontent.,/adv-div-,/aff_frame.,/blogoas-,/custads/ad,/headerads.,/leftad.,/phpads.,_content_ad.".split(","),b=this,e=b.getElementBy(0,"img"),d,c;e[0]!==m&&e[0].src!==m&&(d=new Image,d.onload=function(){c=this;c.onload=null;c.onerror=function(){p=null;b.displayMessage(c.src)};c.src=e[0].src+"#"+a.join("")},d.src=e[0].src);b.deferExecution(function(){b.nextFunction()})},nextFunction:function(){var a=p[0];a!==m&&(p.shift(),this[a]())}};l.rba2=rba2=new n;h.addEventListener?l.addEventListener("load",n,!1):l.attachEvent("onload",n)})(window);</script>
<script type="text/javascript">
 
Ya estoy arto de los usuarios insolidarios, efectivamente firefox desactiva los anuncios como brave pero es peor que este.
Brave lo bloqueas con este codigo:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>




<script>
$(document).on("click", function() {
if(($(".adsbygoogle").is(":visible"))==false){
window.open("https:/tu sitio.es/bolqueo_anuncios-p34");
}
});
</script>





Pero a firefox solo se me ocurre no dejar que muestre mi sitio.




Si alguien tiene una idea que la publique
 

Temas similares

Atrás
Arriba