Scriptlets
Scriptlets copied to clipboard
AdGuard scriptlets library
@adguard-bot commented on [Fri Oct 14 2022](https://github.com/AdguardTeam/AdguardFilters/issues/132150) ### Issue URL (Anti Adblock Script) [https://www.macbed.com/download/62769.html](https://adguardteam.github.io/AnonymousRedirect/redirect.html?url=https%3A%2F%2Fwww.macbed.com%2Fdownload%2F62769.html) ### Screenshots Screenshot 1  ### System configuration Information | value --- | --- AdGuard...
metrika-yandex-tag redirect breaks the bank deposit selection on banki.ru https://github.com/AdguardTeam/AdguardFilters/issues/133161 [https://www.banki.ru/products/deposits/search/?source=submenu_deposits](https://adguardteam.github.io/AnonymousRedirect/redirect.html?url=https%3A%2F%2Fwww.banki.ru%2Fproducts%2Fdeposits%2Fsearch%2F%3Fsource%3Dsubmenu_deposits) Fixed by `@@||mc.yandex.ru/metrika/tag.js$domain=banki.ru` exception.
Related to this - https://github.com/AdguardTeam/Scriptlets/issues/202, but it shouldn't be a `trusted` scriptlet. It could be useful in these cases: https://github.com/AdguardTeam/AdguardFilters/commit/c2fc8a1b6f7ee237ec664333d4436e1719da99f8 https://github.com/AdguardTeam/AdguardFilters/commit/de413ca5ff4658c35a8c52efbed98e72a0c4c33f https://github.com/AdguardTeam/AdGuardExtra/issues/297#issuecomment-1172894064 Similar scriptlet in uBlock Origin (I guess that...
It looks like that currently if there are few inline scripts which should be aborted, only the first one is aborted. ### Steps to reproduce: 1. Add this rule: ```adblock...
`googlesyndication-adsbygoogle` breaks game here - [https://html5.gamedistribution.com/d4ac0ead7ff5403eb3aa6ab620b0b959/](https://adguardteam.github.io/AnonymousRedirect/redirect.html?url=https://html5.gamedistribution.com/d4ac0ead7ff5403eb3aa6ab620b0b959/) Steps to reproduce: 1. Add these rules: ```adblock html5.gamedistribution.com#@%#//scriptlet('prevent-element-src-loading', 'script','pagead2.googlesyndication.com') ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$redirect=googlesyndication-adsbygoogle,domain=html5.gamedistribution.com ``` 2, Go to - [https://html5.gamedistribution.com/d4ac0ead7ff5403eb3aa6ab620b0b959/](https://adguardteam.github.io/AnonymousRedirect/redirect.html?url=https://html5.gamedistribution.com/d4ac0ead7ff5403eb3aa6ab620b0b959/) 3. Click on a "Play" button Game...
https://github.com/AdguardTeam/AdguardFilters/issues/132855 --- Looks like that this redirect caused the problem. I've added an exception to fix this, so you should use redirect rule with `$important` or disable the exception for...
Currently if `delay` is not an integer then we cannot use `matchDelay`, because it will be not matched. For example, if there is script like this: ```js (() => {...
https://github.com/AdguardTeam/AdguardFilters/issues/176244 Please test with the following rule: ```adblock sante.journaldesfemmes.fr#%#//scriptlet('trusted-replace-xhr-response', ',"aabMessage":true,', ',"aabMessage":true,', '/ws/mediaplayer-data/init') ```
Similar to - https://github.com/AdguardTeam/Scriptlets/issues/199#issuecomment-1063271758 but for `prevent-fetch`. Also adding `Content-Length` header to response would be a good idea, related to - https://github.com/AdguardTeam/AdguardFilters/issues/175797 and https://github.com/AdguardTeam/AdguardFilters/issues/176137 Steps to reproduce: 1. Add this...
Sometimes it happens that a constant needs to be set, for which parent object(s) must also be created. For example, if I want to set `foo.bar` to a `trueFunc`, I...