AdguardTeam / Scriptlets

AdGuard scriptlets library
GNU General Public License v3.0
138 stars 27 forks source link

Support searching stack with regexp in abort-on-stack-trace scriptlet #393

Open piquark6046 opened 7 months ago

piquark6046 commented 7 months ago

https://github.com/gorhill/uBlock/wiki/Resources-Library#abort-on-stack-tracejs-

AdamWr commented 6 months ago

If I understand correctly the problem, it's already supported. For example, it's used in these rules:

apkmirror.com#%#//scriptlet('abort-on-stack-trace', 'document.querySelectorAll', '/Object\.visibleEl[\s\S]*?onload|Object\.vE/')
sotwe.com#%#//scriptlet('abort-on-stack-trace', 'String.fromCharCode', '/Array\.map[\s\S]*?\[Symbol\.replace\][\s\S]*?String\.replace/')