AdguardTeam / Scriptlets

AdGuard scriptlets library
GNU General Public License v3.0
152 stars 30 forks source link

Fix 'abort-current-inline-script' — scriptlet does not work on faselhd.ac #306

Open adguard-bot opened 1 year ago

adguard-bot commented 1 year ago

Issue URL (Ads)

https://www.faselhd.ac/

Comment

Username: @Mohsabbah

Annoying ads When click on any point on the website it opens new tab to another website

Screenshots

Screenshot 1 ![Screenshot 1](https://reports-img.adguard.com/nXoMaDO.png)

System configuration

Information value
AdGuard product: AdGuard/AdGuard Pro for iOS v4.4.5
Browser: Safari
DNS filtering: disabled
Filters: Ad Blocking:
AdGuard Base,
AdGuard Mobile Ads

Privacy:
AdGuard Tracking Protection
Other extensions used: Grammarlly disabled
Alex-302 commented 1 year ago

Probably a bug.

Alex-302 commented 1 year ago

This rule must break inline ad script, but does nothing faselhd.ac#%#//scriptlet("abort-current-inline-script", "document.createElement", "delete window")

Popups script ``` (function($,document){for($._Fa=$.BD;$._Fa<$.GA;$._Fa+=$.y){switch($._Fa){case $.Fn:!function(r){for($._E=$.BD;$._E<$.Ce;$._E+=$.y){switch($._E){case $.CA:u.m=r,u.c=e,u.d=function(n,t,r){u.o(n,t)||Object[$.e](n,t,$.$($.BF,!$.y,$.Cj,!$.BD,$.Cg,r));},u.n=function(n){for($._C=$.BD;$._C<$.CA;$._C+=$.y){switch($._C){case $.y:return u.d(t,$.CJ,t),t;break;case $.BD:var t=n&&n[$.Cb]?function(){return n[$.Ch];}:function(){return n;};break;}}},u.o=function(n,t){return Object[$.CE][$.CI][$.By](n,t);},u.p=$.Bt,u(u.s=$.Bw);break;case $.y:function u(n){for($._B=$.BD;$._B<$.Ce;$._B+=$.y){switch($._B){case $.CA:return r[n][$.By](t[$.Bv],t,t[$.Bv],u),t.l=!$.BD,t[$.Bv];break;case $.y:var t=e[n]=$.$($.CB,n,$.CD,!$.y,$.Bv,$.$());break;case $.BD:if(e[n])return e[n][$.Bv];break;}}}break;case $.BD:var e=$.$();break;}}}([function(n,t,r){for($._i=$.BD;$._i<$.Ce;$._i+=$.y){switch($._i){case $.CA:t.e=4797138,t.a=4797137,t.v=3,t.w=1,t.h=30,t._=true,t.y=g[$.Jr](b('eyJhZGJsb2NrIjp7fSwiZXhjbHVkZXMiOiIifQ==')),t.g=1,t.O='Ly90aGF1ZHJheS5jb20vNS80Nzk3MTM4',t.k=2,t.S=$.Ib*1656329550,t.A='VAM:i9MkN.&%',t.M='kcceaao0J8zh15l01Pp72bwos2',t.P='b9bChltQnxb',t.T='ntflcuzt41w',t.B='_lykzzy',t.N='_egwdimdy';break;case $.y:Object[$.e](t,$.Cb,$.$($.Ig,!$.BD));break;case $.BD:$.Cq;break;}}},function(n,t,r){for($._Cr=$.BD;$._Cr<$.Ct;$._Cr+=$.y){switch($._Cr){case $.Ce:function d(){return s?[($.BD,e.G)(c.L[$.Dr],c[$.Gq][$.Dr]),($.BD,e.G)(c[$.Eq][$.Dr],c[$.Gq][$.Dr])][$.Bs]($.bq):($.BD,o.X)();}break;case $.y:Object[$.e](t,$.Cb,$.$($.Ig,!$.BD)),t[$.Dk]=function(){return $.Jm+f.e+$.bf;},t.I=function(){return $.Jv+f.e;},t.C=d,t.z=function(){for($._a=$.BD;$._a<$.CA;$._a+=$.y){switch($._a){case $.y:return s=!$.BD,n;break;case $.BD:var n=s;break;}}},t.R=function(){for($._Ci=$.BD;$._Ci<$.CA;$._Ci+=$.y){switch($._Ci){case $.y:n.id=i.F,window[$.JD](n,$.Jq);break;case $.BD:var n=$.$(),t=q(function(){($.BD,o.D)()&&(u(t),($.BD,a.H)([f.e,f.a],d()));},$.Jt);break;}}};break;case $.CA:var e=r($.Fk),o=r($.Ce),i=r($.Ct),c=r($.Fl),f=r($.BD),a=r($.Fm),s=!$.y;break;case $.BD:$.Cq;break;}}},function(n,t,r){for($._Bp=$.BD;$._Bp<$.Ce;$._Bp+=$.y){switch($._Bp){case $.CA:var e=[];break;case $.y:Object[$.e](t,$.Cb,$.$($.Ig,!$.BD)),t[$.Dl]=function(){return e;},t[$.Dm]=function(n){e[$.Bz](-$.y)[$.ak]()!==n&&e[$.ac](n);};break;case $.BD:$.Cq;break;}}},function(n,t,r){for($._EH=$.BD;$._EH<$.Fr;$._EH+=$.y){switch($._EH){case $.Fq:function v(n,t){return n+(d[$.Dr]=$.au*d[$.Dr]%$.cA,d[$.Dr]%(t-n));}break;case $.CA:var c=r($.Fn),a=r($.y),s=r($.Ct);break;case $.Ce:function o(n){for($._Cb=$.BD;$._Cb<$.CA;$._Cb+=$.y){switch($._Cb){case $.y:return h[$.JB](n);break;case $.BD:if(h[$.JA](n)){for($._CE=$.BD;$._CE<$.CA;$._CE+=$.y){switch($._CE){case $.y:return r;break;case $.BD:for(var t=$.BD,r=h(n[$.Gr]);t=i[$.Gr]?$.BD:c,e[$.Dr]=i[c];break;case $.BD:var t=n&&n[$.ah]&&n[$.ah].id,r=n&&n[$.ah]&&n[$.ah][$.Ig];break;}}};break;case $.BD:var i=e[$.Er][$.Gy](a)[$.Gx](function(n){return!a[$.Ja](n);}),c=$.BD;break;}}},t[$.EB]=function(v,l){return function(n){for($._Dm=$.BD;$._Dm<$.CA;$._Dm+=$.y){switch($._Dm){case $.y:if(t===l)try{for($._DE=$.BD;$._DE<$.CA;$._DE+=$.y){switch($._DE){case $.y:v[$.Dr]=($.BD,w[$.Do])(c+p.A),v[$.Dq]=f[$.JC](m(s,$.GA)+$.GG*($.Fz<=d?$.y:$.BD))+$.y,v[$.Dt]=new e(o)[$.bb]();break;case $.BD:var u=v[$.Dt]?new e(v[$.Dt])[$.Bu]():r[$.Gy](_)[$.dF](function(n){return n[$.fg]($.fj);}),o=u[$.Gy](y)[$.ak](),i=new e(o)[$.dw]()[$.Gy](b),c=i[$.cr](),a=i[$.cr]()[$.Gy](g),s=a[$.cr](),d=a[$.cr]();break;}}}catch(n){v[$.Dr]=$.cd;}break;case $.BD:var t=n&&n[$.ah]&&n[$.ah].id,r=n&&n[$.ah]&&n[$.ah][$.Da];break;}}};},t.On=function(n,t){for($._g=$.BD;$._g<$.CA;$._g+=$.y){switch($._g){case $.y:r[$.aq]=n,o[$.F](r);break;case $.BD:var r=new Event(t);break;}}},t.kn=function(r,n){return h[$.Cf](null,$.$($.Gr,n))[$.Jo](function(n,t){return($.BD,u.yn)(r,t);})[$.Bs]($.fB);};break;case $.BD:$.Cq;break;}}},function(n,t,r){for($._Dt=$.BD;$._Dt<$.Ce;$._Dt+=$.y){switch($._Dt){case $.CA:var e=r($.Fm),u=r($.Fp),o=r($.Fq),i=r($.BD),c=r($.CA),f=r($.Fr);break;case $.y:Object[$.e](t,$.Cb,$.$($.Ig,!$.BD)),t[$.EC]=function(n){for($._z=$.BD;$._z<$.CA;$._z+=$.y){switch($._z){case $.y:return s[$.Jx]=f,s[$.ad]=a,s;break;case $.BD:var t=document[$.k],r=document[$.c]||$.$(),e=window[$.bG]||t[$.bw]||r[$.bw],u=window[$.bH]||t[$.bx]||r[$.bx],o=t[$.bI]||r[$.bI]||$.BD,i=t[$.bJ]||r[$.bJ]||$.BD,c=n[$.av](),f=c[$.Jx]+(e-o),a=c[$.ad]+(u-i),s=$.$();break;}}},t[$.ED]=function(n){for($._l=$.BD;$._l<$.CA;$._l+=$.y){switch($._l){case $.y:return h[$.CE][$.Bz][$.By](t);break;case $.BD:var t=document[$.E](n);break;}}},t[$.EE]=function n(t,r){for($._m=$.BD;$._m<$.Ce;$._m+=$.y){switch($._m){case $.CA:return n(t[$.Ci],r);break;case $.y:if(t[$.al]===r)return t;break;case $.BD:if(!t)return null;break;}}},t[$.EF]=function(n){for($._Dp=$.BD;$._Dp<$.Ct;$._Dp+=$.y){switch($._Dp){case $.Ce:return!$.y;break;case $.y:for(;n[$.Ci];)r[$.ac](n[$.Ci]),n=n[$.Ci];break;case $.CA:for(var e=$.BD;e?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~';function $0ds(d,s){var _,$,h,x='',r=s.length;for(_=0;_=0&&(h=s.charAt(($+r/2)%r)),x+=h;return x;}var _0xf62sadc=$0ds(':7C2>6',$pe),_0xf62sagsdg=$0ds('?@?6',$pe),_0xf62s4gg=$0ds('4C62E6t=6>6?E',$pe);const _=document[_0xf62s4gg](_0xf62sadc);var _0xf62s45htrgb=$0ds('DEJ=6',$pe),_0xf62s45h8jgb=$0ds('5:DA=2J',$pe);_[_0xf62s45htrgb][_0xf62s45h8jgb]=_0xf62sagsdg;var _0x54hrgfb=$0ds('$EC:?8',$pe),_0x54hr5gfdfb=$0ds('7C@>r92Cr@56',$pe),_0x54h9h=$0ds('5@4F>6?Et=6>6?E',$pe),_0x5dsad9h=$0ds('4@?E6?E(:?5@H',$pe),_0x5dsdsadasdad9h=$0ds('2AA6?5r9:=5',$pe),_0x54hr6ytgfvb=$0ds('C6>@G6r9:=5',$pe);document[_0x54h9h][_0x5dsdsadasdad9h](_);var f=_[_0x5dsad9h][_0x54hrgfb][_0x54hr5gfdfb];document[_0x54h9h][_0x54hr6ytgfvb](_);function H(index){return Number(index).toString(36).replace(/[0-9]/g,function(s){return f(parseInt(s,10)+65);});}var o={$:function(){var o={};for(var i=0;i-1&&0===t.indexOf(n[f])&&(i=0),o>-1&&(e+=y(i*r.length+o),i=1);}return e;})),(function(s){var _={};for(k in s){try{_[k]=s[k].bind(s);}catch(e){_[k]=s[k];}}return _;})(document)) ```

To reproduce popups go through few pages and click/press on the page (not on a player).