Dewa Inside

Cara Memasang Anti AdBlock dengan Gambar Reviewed by Dewa Inside Rating: 4

Cara Memasang Anti AdBlock dengan Gambar

anti-adblock dengan gambar

Sebelum memasang script Anti-AdBlock, ada baiknya sobat membaca artikel: Cara Terbaik Melawan dan Menyikapi AdBlock 

Kalau sudah berikut saya tampilkan kode script dari antiblock[dot]org dengan sedikit modifikasi sehingga kita dapat menambahkan gambar di dalamnya. Kalau Anda ingin membuat sendiri dari antiblock[dot]org tidak masalah, hanya saja untuk blogger newbi mungkin akan sedikit kewalahan untuk memahaminya.


Kode :
<style>#l79b{position:fixed !important;position:absolute;top:1px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:-3px;width:101%;height:98%;background-color:#fff;opacity:.95;filter:alpha(opacity=95);display:block;padding:20% 0}#l79b *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#l79b ~ *{display:none}</style><div id="l79b"><i>Please enable / Bitte aktiviere JavaScript!<br>Veuillez activer / Por favor activa el Javascript!<a href=" http://dewainside.blogspot.com/">[ ? ]</a></i></div><script>window.document.getElementById("l79b").parentNode.removeChild(window.document.getElementById("l79b"));(function(l,m){function n(a){a&&l79b.nextFunction()}var h=l.document,p=["i","s","u"];n.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,c){return a?h.getElementById(a):h.getElementsByTagName(c)},getStyle:function(a){var c=h.defaultView;return c&&c.getComputedStyle?c.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,2E3)},insert:function(a,c){var e=h.createElement("i"),d=h.body,b=d.childNodes.length,g=d.style,f=0,k=0;if("l79b"==c){e.setAttribute("id",c);g.margin=g.padding=0;g.height="100%";for(b=this.rand(b);f<b;f++)1==d.childNodes[f].nodeType&&(k=Math.max(k,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));k&&(e.style.zIndex=k+1);b++}e.innerHTML=a;d.insertBefore(e,d.childNodes[b-1])},r:function(a){var c=h.body.style;this.getElementBy(a).parentNode.removeChild(this.getElementBy(a));c.height=c.margin=c.padding=""},displayMessage:function(a){a="abisuq".charAt(this.rand(5));this.insert("<"+a+'><img src="http://4.bp.blogspot.com/-xHWz3GL97Sk/VMBeoImsq0I/AAAAAAAAAgA/ZGTWotVKDkY/s1600/begging%2Bcat%2Bads%2Bblock.jpg" height="300" width="400" alt="Anti-AdBlock With Image from dewa inside blog" /> <!-- antiblock.org --> </a>'+('<input type="button" onclick="l79b.r(\'l79b\')" value=Close></'+a+">"),"l79b")},i:function(){for(var a="SideAdMpu,ad_tbl,ads_160,adtech_0,channel_ads,mpuad,ns_ad2,ad,ads,adsense".split(","),c=a.length,e="",d=this,b=0,g="abisuq".charAt(d.rand(5));b<c;b++)d.getElementBy(a[b])||(e+="<"+g+' id="'+a[b]+'"></'+g+">");d.insert(e);d.deferExecution(function(){for(b=0;b<c;b++)if(null==d.getElementBy(a[b]).offsetParent||"none"==d.getStyle(d.getElementBy(a[b])).display)return d.displayMessage("#"+a[b]+"("+b+")");d.nextFunction()})},s:function(){var a={'pagead2.googlesyndic':'google_ad_client','js.adscale.de/getads':'adscale_slot_id','get.mirando.de/miran':'adPlaceId'},c=this,e=c.getElementBy(0,"script"),d=e.length-1,b,g,f,k;h.write=null;for(h.writeln=null;0<=d;--d)if(b=e[d].src.substr(7,20),a[b]!==m){f=h.createElement("script");f.type="text/javascript";f.src=e[d].src;g=a[b];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]);c.deferExecution(function(){if(l[g]===m)return c.displayMessage(f.src);c.nextFunction()});return}c.nextFunction()},u:function(){var a=".com/ads_,/ad/side_,/adscripts1.,/back-ad.,/lbl_ad.,/public/ads/ad,/script/oas/ad,_ad_homepage.,_onlinead_,/728-90-".split(","),c=this,e=c.getElementBy(0,"img"),d,b;e[0]!==m&&e[0].src!==m&&(d=new Image,d.onload=function(){b=this;b.onload=null;b.onerror=function(){p=null;c.displayMessage(b.src)};b.src=e[0].src+"#"+a.join("")},d.src=e[0].src);c.deferExecution(function(){c.nextFunction()})},nextFunction:function(){var a=p[0];a!==m&&(p.shift(),this[a]())}};l.l79b=l79b=new n;h.addEventListener?l.addEventListener("load",n,!1):l.attachEvent("onload",n)})(window);</script>

NB : Tulisan yang berwarna biru dapat Anda ganti dengan gambar Anda sendiri

Cara Memasang :
1. Layout --> Tambah Gadget (HTML/Javascript)
2. Copy & Paste Kodenya
3. Save

Mudah bukan?
Selamat mencoba. :)
Share Artikel ini:

email subscribe

1 komentar:

Setiap komentar sangat dihargai, namun karena keterbatasan waktu tidak dapat online setiap saat untuk me-reply komentar setiap orang. Komentar Spam (link aktif, o*at, p*rn*, j*di, dan sejenisnya) akan dimoderasi. Terima kasih atas perhatiannya dan Berkunjung kembali :)