Header Ads

[Blogspot Tips] - Tùy biến Code Chặn ADBlock (Your Custom Code Anti Adblock) Cho Blogspot

Tùy biến Code Chặn ADBlock (Your Custom Code Anti Adblock) Cho Blogspot

Tình trạng hiện nay, rất nhiều người dùng đang cài cho trình duyệt của họ các extensions chặn quảng cáo như: ADBlock, UBlock, ADBlock Plus,... hoặc một số phần mềm như: AdGuard,.... Đối với các blogger, nó là một thứ rất khó chịu, những phần mềm này sẽ chặn quảng cáo trên những trang web của họ khi người dùng truy cập trang web. Từ đó khiến cho thu nhập từ quảng cáo của blogger giảm, mất hứng thú viết bài,....


Để tránh tình trạng này, chúng ta có thể dùng một đoạn Js để cảnh báo người dùng rằng trình duyệt của họ đang bật chặn quảng cáo. Tùy theo sở thích của mỗi người mà có thể tùy biến code chặn quảng cáo cho blogspot.



How to Custom Code Anti ADBlock and install Code?

Step 1: Truy cập BlockAdBlock 


Step 2: Thực hiện các tùy chỉnh có sẵn.


  • Block Screen Settings: Gồm hai chế độ Block Mode( Bắt buộc người dùng phải tắt chặn quảng cáo) và Nag Mode ( chỉ nhắc nhở người dùng nên tắt chặn quảng cáo)
  • Block Screen Delay: Chỉnh thời gian hiện thông báo sau khi load xong trang web
  • Block Screen Dislay Options: Tùy chỉnh các dòng thông báo hiện ra với người dùng
Sau khi custom xong thì kéo xuống dưới và bấm I'm ready....

Ta được đoạn code đó, copy nó lại để dùng ở step 3.


Step 3: Truy cập Dashboard  --> Template(Chủ đề) --> Chỉnh sửa ( Edit Template HTML) --> Ctrl + F --> tìm kiếm thẻ </body> và dán đoạn code đã lưu ở step 2 vào trước thẻ này, sau đó lưu lại.



Sau khi làm xong các bước thì tải Adblock về test thôi. Phía dưới có đoạn code mà blog mình đang sử dụng, bạn có thể sử dụng nó. Chúc bạn thành công.


<script type="text/javascript"  charset="utf-8">
// www.ntblog.xyz - This is code anti adblock.
// Visit my blog ntblog.xyz
                            
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';k M=\'\',2c=\'2a\';1P(k i=0;i<12;i++)M+=2c.U(D.K(D.I()*2c.F));k 2C=11,2o=25,2l=4q,2J=4p,2p=C(t){k o=!1,i=C(){z(q.1m){q.3b(\'2R\',e);E.3b(\'1W\',e)}O{q.39(\'2S\',e);E.39(\'24\',e)}},e=C(){z(!o&&(q.1m||4o.2n===\'1W\'||q.2Y===\'38\')){o=!0;i();t()}};z(q.2Y===\'38\'){t()}O z(q.1m){q.1m(\'2R\',e);E.1m(\'1W\',e)}O{q.2T(\'2S\',e);E.2T(\'24\',e);k n=!1;2X{n=E.4m==4l&&q.1Y}33(a){};z(n&&n.32){(C r(){z(o)G;2X{n.32(\'17\')}33(e){G 4k(r,50)};o=!0;i();t()})()}}};E[\'\'+M+\'\']=(C(){k t={t$:\'2a+/=\',4j:C(e){k r=\'\',l,n,o,c,s,d,i,a=0;e=t.e$(e);1c(a<e.F){l=e.16(a++);n=e.16(a++);o=e.16(a++);c=l>>2;s=(l&3)<<4|n>>4;d=(n&15)<<2|o>>6;i=o&63;z(36(n)){d=i=64}O z(36(o)){i=64};r=r+T.t$.U(c)+T.t$.U(s)+T.t$.U(d)+T.t$.U(i)};G r},14:C(e){k n=\'\',l,d,c,s,a,i,r,o=0;e=e.1s(/[^A-4i-4h-9\\+\\/\\=]/g,\'\');1c(o<e.F){s=T.t$.1G(e.U(o++));a=T.t$.1G(e.U(o++));i=T.t$.1G(e.U(o++));r=T.t$.1G(e.U(o++));l=s<<2|a>>4;d=(a&15)<<4|i>>2;c=(i&3)<<6|r;n=n+N.R(l);z(i!=64){n=n+N.R(d)};z(r!=64){n=n+N.R(c)}};n=t.n$(n);G n},e$:C(t){t=t.1s(/;/g,\';\');k n=\'\';1P(k o=0;o<t.F;o++){k e=t.16(o);z(e<1B){n+=N.R(e)}O z(e>4g&&e<4f){n+=N.R(e>>6|4e);n+=N.R(e&63|1B)}O{n+=N.R(e>>12|3a);n+=N.R(e>>6&63|1B);n+=N.R(e&63|1B)}};G n},n$:C(t){k o=\'\',e=0,n=4d=1C=0;1c(e<t.F){n=t.16(e);z(n<1B){o+=N.R(n);e++}O z(n>4b&&n<3a){1C=t.16(e+1);o+=N.R((n&31)<<6|1C&63);e+=2}O{1C=t.16(e+1);2O=t.16(e+2);o+=N.R((n&15)<<12|(1C&63)<<6|2O&63);e+=3}};G o}};k r=[\'3W==\',\'4a\',\'49=\',\'48\',\'47\',\'46=\',\'45=\',\'44=\',\'43\',\'42\',\'41=\',\'40=\',\'3Z\',\'3Y\',\'3X=\',\'4r\',\'4c=\',\'4s=\',\'4K=\',\'4Y=\',\'4X=\',\'4W=\',\'4V==\',\'4U==\',\'4T==\',\'4S==\',\'4R=\',\'4Q\',\'4P\',\'4O\',\'4N\',\'4M\',\'4L\',\'4J==\',\'3U=\',\'4u=\',\'4I=\',\'4H==\',\'4G=\',\'4F\',\'4E=\',\'4D=\',\'4C==\',\'4B=\',\'4A==\',\'4z==\',\'4y=\',\'4x=\',\'4w\',\'4v==\',\'4t==\',\'3V\',\'3k==\',\'3l=\'],y=D.K(D.I()*r.F),Y=t.14(r[y]),w=Y,Q=1,W=\'#3h\',a=\'#3o\',v=\'#3n\',g=\'#3q\',Z=\'\',b=\'3p! \',p=\'Bạn đ3u sử dụ1K 2Gần mềm 1Nặn 2Lả1K c&2M;o? ( 3v 3t 3m 2H 2y)\',u=\'3j h&2j;y tắt 2Gần mềm 1Nặn 2Lả1K c&2M;o (28) để ủ1K hộ t&3S;i. (3w 3R 2w 2H 2y)\',s=\'Bạn 1Nắn 1Nắn đ&2j; tắt 28? Bấm v&3O;o đ&3M;y để tải lại 3K (3I 2w 28 3F 3E)\',o=0,f=1,n=\'3D.3C\',l=0,X=e()+\'.2v\';C h(t){z(t)t=t.1O(t.F-15);k o=q.2A(\'2I\');1P(k n=o.F;n--;){k e=N(o[n].1T);z(e)e=e.1O(e.F-15);z(e===t)G!0};G!1};C m(t){z(t)t=t.1O(t.F-15);k e=q.3B;x=0;1c(x<e.F){1p=e[x].1V;z(1p)1p=1p.1O(1p.F-15);z(1p===t)G!0;x++};G!1};C e(t){k n=\'\',o=\'2a\';t=t||30;1P(k e=0;e<t;e++)n+=o.U(D.K(D.I()*o.F));G n};C i(o){k i=[\'3z\',\'3G==\',\'3H\',\'3y\',\'2E\',\'3L==\',\'3N=\',\'3P==\',\'3Q=\',\'3J==\',\'3x==\',\'3r==\',\'3s\',\'3i\',\'4Z\',\'2E\'],a=[\'2U=\',\'52==\',\'5j==\',\'6n==\',\'6m=\',\'6l\',\'6k=\',\'6j=\',\'2U=\',\'6i\',\'6h==\',\'6g\',\'6f==\',\'51==\',\'6e==\',\'6c=\'];x=0;1Q=[];1c(x<o){c=i[D.K(D.I()*i.F)];d=a[D.K(D.I()*a.F)];c=t.14(c);d=t.14(d);k r=D.K(D.I()*2)+1;z(r==1){n=\'//\'+c+\'/\'+d}O{n=\'//\'+c+\'/\'+e(D.K(D.I()*20)+4)+\'.2v\'};1Q[x]=29 27();1Q[x].26=C(){k t=1;1c(t<7){t++}};1Q[x].1T=n;x++}};C L(t){};G{3c:C(t,a){z(5X q.J==\'6b\'){G};k o=\'0.1\',a=w,e=q.1e(\'1q\');e.1k=a;e.j.1i=\'1U\';e.j.17=\'-1l\';e.j.V=\'-1l\';e.j.1t=\'2e\';e.j.13=\'6a\';k d=q.J.2P,r=D.K(d.F/2);z(r>15){k n=q.1e(\'2g\');n.j.1i=\'1U\';n.j.1t=\'1y\';n.j.13=\'1y\';n.j.V=\'-1l\';n.j.17=\'-1l\';q.J.69(n,q.J.2P[r]);n.1g(e);k i=q.1e(\'1q\');i.1k=\'2q\';i.j.1i=\'1U\';i.j.17=\'-1l\';i.j.V=\'-1l\';q.J.1g(i)}O{e.1k=\'2q\';q.J.1g(e)};l=68(C(){z(e){t((e.1Z==0),o);t((e.23==0),o);t((e.1H==\'2N\'),o);t((e.1L==\'2Q\'),o);t((e.1M==0),o)}O{t(!0,o)}},2b)},1F:C(e,c){z((e)&&(o==0)){o=1;E[\'\'+M+\'\'].1D();E[\'\'+M+\'\'].1F=C(){G}}O{k u=t.14(\'67\'),f=q.66(u);z((f)&&(o==0)){z((2o%3)==0){k d=\'62=\';d=t.14(d);z(h(d)){z(f.1S.1s(/\\s/g,\'\').F==0){o=1;E[\'\'+M+\'\'].1D()}}}};k y=!1;z(o==0){z((2l%3)==0){z(!E[\'\'+M+\'\'].2z){k l=[\'61==\',\'5Z==\',\'5Y=\',\'6o=\',\'6d=\'],m=l.F,a=l[D.K(D.I()*m)],r=a;1c(a==r){r=l[D.K(D.I()*m)]};a=t.14(a);r=t.14(r);i(D.K(D.I()*2)+1);k n=29 27(),s=29 27();n.26=C(){i(D.K(D.I()*2)+1);s.1T=r;i(D.K(D.I()*2)+1)};s.26=C(){o=1;i(D.K(D.I()*3)+1);E[\'\'+M+\'\'].1D()};n.1T=a;z((2J%3)==0){n.24=C(){z((n.13<8)&&(n.13>0)){E[\'\'+M+\'\'].1D()}}};i(D.K(D.I()*3)+1);E[\'\'+M+\'\'].2z=!0};E[\'\'+M+\'\'].1F=C(){G}}}}},1D:C(){z(f==1){k S=2D.6x(\'2B\');z(S>0){G!0}O{2D.6p(\'2B\',(D.I()+1)*2b)}};k h=\'6v==\';h=t.14(h);z(!m(h)){k c=q.1e(\'6y\');c.1X(\'6w\',\'5W\');c.1X(\'2n\',\'1j/5u\');c.1X(\'1V\',h);q.2A(\'5U\')[0].1g(c)};5r(l);q.J.1S=\'\';q.J.j.19+=\'P:1y !1a\';q.J.j.19+=\'1A:1y !1a\';k X=q.1Y.23||E.37||q.J.23,y=E.5q||q.J.1Z||q.1Y.1Z,r=q.1e(\'1q\'),Q=e();r.1k=Q;r.j.1i=\'2h\';r.j.17=\'0\';r.j.V=\'0\';r.j.13=X+\'1r\';r.j.1t=y+\'1r\';r.j.2t=W;r.j.21=\'5o\';q.J.1g(r);k d=\'<a 1V="5n://5m.5l" j="H-1f:10.5k;H-1h:1o-1n;1d:5V;">5i 5h 5f 53-5e 2I</a>\';d=d.1s(\'5d\',e());d=d.1s(\'5c\',e());k i=q.1e(\'1q\');i.1S=d;i.j.1i=\'1U\';i.j.1z=\'1I\';i.j.17=\'1I\';i.j.13=\'5a\';i.j.1t=\'59\';i.j.21=\'2u\';i.j.1M=\'.6\';i.j.2m=\'2k\';i.1m(\'58\',C(){n=n.57(\'\').56().55(\'\');E.2F.1V=\'//\'+n});q.1J(Q).1g(i);k o=q.1e(\'1q\'),L=e();o.1k=L;o.j.1i=\'2h\';o.j.V=y/7+\'1r\';o.j.54=X-5s+\'1r\';o.j.5g=y/3.5+\'1r\';o.j.2t=\'#5I\';o.j.21=\'2u\';o.j.19+=\'H-1h: "5T 5S", 1x, 1u, 1o-1n !1a\';o.j.19+=\'5R-1t: 5P !1a\';o.j.19+=\'H-1f: 5O !1a\';o.j.19+=\'1j-1w: 1v !1a\';o.j.19+=\'1A: 5N !1a\';o.j.1H+=\'3f\';o.j.2Z=\'1I\';o.j.5M=\'1I\';o.j.5K=\'2K\';q.J.1g(o);o.j.5J=\'1y 5H 5v -5G 5F(0,0,0,0.3)\';o.j.1L=\'2r\';k w=30,Y=22,x=18,Z=18;z((E.37<35)||(5E.13<35)){o.j.2V=\'50%\';o.j.19+=\'H-1f: 5D !1a\';o.j.2Z=\'5B;\';i.j.2V=\'65%\';k w=22,Y=18,x=12,Z=12};o.1S=\'<34 j="1d:#5z;H-1f:\'+w+\'1E;1d:\'+a+\';H-1h:1x, 1u, 1o-1n;H-1R:5y;P-V:1b;P-1z:1b;1j-1w:1v;">\'+b+\'</34><3e j="H-1f:\'+Y+\'1E;H-1R:5x;H-1h:1x, 1u, 1o-1n;1d:\'+a+\';P-V:1b;P-1z:1b;1j-1w:1v;">\'+p+\'</3e><5w j=" 1H: 3f;P-V: 0.3d;P-1z: 0.3d;P-17: 2f;P-2s: 2f; 2x:3T 5A #5C; 13: 25%;1j-1w:1v;"><p j="H-1h:1x, 1u, 1o-1n;H-1R:2i;H-1f:\'+x+\'1E;1d:\'+a+\';1j-1w:1v;">\'+u+\'</p><p j="P-V:5L;"><2g 5Q="T.j.1M=.9;" 5t="T.j.1M=1;"  1k="\'+e()+\'" j="2m:2k;H-1f:\'+Z+\'1E;H-1h:1x, 1u, 1o-1n; H-1R:2i;2x-5b:2K;1A:1b;5p-1d:\'+v+\';1d:\'+g+\';1A-17:2e;1A-2s:2e;13:60%;P:2f;P-V:1b;P-1z:1b;" 6s="E.2F.6q();">\'+s+\'</2g></p>\'}}})();E.3g=C(t,e){k n=6u.6t,o=E.6r,r=n(),i,a=C(){n()-r<e?i||o(a):t()};o(a);G{3A:C(){i=1}}};k 2W;z(q.J){q.J.j.1L=\'2r\'};2p(C(){z(q.1J(\'2d\')){q.1J(\'2d\').j.1L=\'2N\';q.1J(\'2d\').j.1H=\'2Q\'};2W=E.3g(C(){E[\'\'+M+\'\'].3c(E[\'\'+M+\'\'].1F,E[\'\'+M+\'\'].4n)},2C*2b)});',62,407,'|||||||||||||||||||style|var||||||document|||||||||if|||function|Math|window|length|return|font|random|body|floor||cSDSjGyXfXis|String|else|margin||fromCharCode||this|charAt|top||||||||width|decode||charCodeAt|left||cssText|important|10px|while|color|createElement|size|appendChild|family|position|text|id|5000px|addEventListener|serif|sans|thisurl|DIV|px|replace|height|geneva|center|align|Helvetica|0px|bottom|padding|128|c2|WLNAEXgcUl|pt|hqnvjlaCkI|indexOf|display|30px|getElementById|ng|visibility|opacity|ch|substr|for|spimg|weight|innerHTML|src|absolute|href|load|setAttribute|documentElement|clientHeight||zIndex||clientWidth|onload||onerror|Image|ADBlock|new|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|1000|cGybvKrbzR|babasbmsgx|60px|auto|div|fixed|300|atilde|pointer|XgLQChhYKg|cursor|type|JsgQnqFfJi|qwNESWPSzZ|banner_ad|visible|right|backgroundColor|10000|jpg|off|border|ADS|ranAlready|getElementsByTagName|babn|yhtmHXjOad|sessionStorage|cGFydG5lcmFkcy55c20ueWFob28uY29t|location|ph|Anti|script|IJwPwqOgaG|15px|qu|aacute|hidden|c3|childNodes|none|DOMContentLoaded|onreadystatechange|attachEvent|ZmF2aWNvbi5pY28|zoom|wDSwvrvCZK|try|readyState|marginLeft|||doScroll|catch|h3|640|isNaN|innerWidth|complete|detachEvent|224|removeEventListener|ZqgMUZJJRi|5em|h1|block|AXhUjOStDS|e86060|YWRzYXR0LmVzcG4uc3RhcndhdmUuY29t|Xin|b3V0YnJhaW4tcGFpZA|c3BvbnNvcmVkX2xpbms|use|000000|0040ff|Welcome|5eff00|YWRzLnp5bmdhLmNvbQ|YWRzYXR0LmFiY25ld3Muc3RhcndhdmUuY29t|you|ang|Do|Please|YWRzLnlhaG9vLmNvbQ|YWQuZm94bmV0d29ya3MuY29t|YWRuLmViYXkuY29t|clear|styleSheets|kcolbdakcolb|moc|Refresh|and|YWQubWFpbC5ydQ|anVpY3lhZHMuY29t|Turn|cHJvbW90ZS5wYWlyLmNvbQ|trang|YS5saXZlc3BvcnRtZWRpYS5ldQ|acirc|YWdvZGEubmV0L2Jhbm5lcnM|agrave|YWR2ZXJ0aXNpbmcuYW9sLmNvbQ|Y2FzLmNsaWNrYWJpbGl0eS5jb20|turn|ocirc|1px|QWREaXY|Z29vZ2xlX2Fk|YWQtbGVmdA|QWQ3Mjh4OTA|QWQzMDB4MjUw|QWQzMDB4MTQ1|YWQtY29udGFpbmVyLTI|YWQtY29udGFpbmVyLTE|YWQtY29udGFpbmVy|YWQtZm9vdGVy|YWQtbGI|YWQtbGFiZWw|YWQtaW5uZXI|YWQtaW1n|YWQtaGVhZGVy|YWQtZnJhbWU|YWRCYW5uZXJXcmFw|191|QWRGcmFtZTE|c1|192|2048|127|z0|Za|encode|setTimeout|null|frameElement|aZaSyYgIow|event|292|163|QWRBcmVh|QWRGcmFtZTI|YWRzZW5zZQ|QWRCb3gxNjA|cG9wdXBhZA|YWRzbG90|YmFubmVyaWQ|YWRzZXJ2ZXI|YWRfY2hhbm5lbA|IGFkX2JveA|YmFubmVyYWQ|YWRBZA|YWRiYW5uZXI|YWRCYW5uZXI|YmFubmVyX2Fk|YWRUZWFzZXI|Z2xpbmtzd3JhcHBlcg|QWRDb250YWluZXI|QWRJbWFnZQ|QWRGcmFtZTM|RGl2QWRD|RGl2QWRC|RGl2QWRB|RGl2QWQz|RGl2QWQy|RGl2QWQx|RGl2QWQ|QWRzX2dvb2dsZV8wNA|QWRzX2dvb2dsZV8wMw|QWRzX2dvb2dsZV8wMg|QWRzX2dvb2dsZV8wMQ|QWRMYXllcjI|QWRMYXllcjE|QWRGcmFtZTQ|YXMuaW5ib3guY29t||bGFyZ2VfYmFubmVyLmdpZg|YmFubmVyLmpwZw|anti|minWidth|join|reverse|split|click|40px|160px|radius|FILLVECTID2|FILLVECTID1|adblock|own|minHeight|your|Installing|NDY4eDYwLmpwZw|5pt|com|blockadblock|http|9999|background|innerHeight|clearInterval|120|onmouseout|css|24px|hr|500|200|999|solid|45px|CCC|18pt|screen|rgba|8px|14px|fff|boxShadow|borderRadius|35px|marginRight|12px|16pt|normal|onmouseover|line|Black|Arial|head|white|stylesheet|typeof|Ly9hZHZlcnRpc2luZy55YWhvby5jb20vZmF2aWNvbi5pY28|Ly93d3cuZ3N0YXRpYy5jb20vYWR4L2RvdWJsZWNsaWNrLmljbw||Ly93d3cuZ29vZ2xlLmNvbS9hZHNlbnNlL3N0YXJ0L2ltYWdlcy9mYXZpY29uLmljbw|Ly9wYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbS9wYWdlYWQvanMvYWRzYnlnb29nbGUuanM||||querySelector|aW5zLmFkc2J5Z29vZ2xl|setInterval|insertBefore|468px|undefined|YWR2ZXJ0aXNlbWVudC0zNDMyMy5qcGc|Ly93d3cuZG91YmxlY2xpY2tieWdvb2dsZS5jb20vZmF2aWNvbi5pY28|d2lkZV9za3lzY3JhcGVyLmpwZw|YmFubmVyX2FkLmdpZg|ZmF2aWNvbjEuaWNv|c3F1YXJlLWFkLnBuZw|YWQtbGFyZ2UucG5n|Q0ROLTMzNC0xMDktMTM3eC1hZC1iYW5uZXI|YWRjbGllbnQtMDAyMTQ3LWhvc3QxLWJhbm5lci1hZC5qcGc|MTM2N19hZC1jbGllbnRJRDI0NjQuanBn|c2t5c2NyYXBlci5qcGc|NzIweDkwLmpwZw|Ly9hZHMudHdpdHRlci5jb20vZmF2aWNvbi5pY28|setItem|reload|requestAnimationFrame|onclick|now|Date|Ly95dWkueWFob29hcGlzLmNvbS8zLjE4LjEvYnVpbGQvY3NzcmVzZXQvY3NzcmVzZXQtbWluLmNzcw|rel|getItem|link'.split('|'),0,{}));

</script>
Được tạo bởi Blogger.