Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scriptlets with [$path] modifier do not work on Safari #57

Open
zloyden opened this issue Oct 31, 2023 · 0 comments
Open

Scriptlets with [$path] modifier do not work on Safari #57

zloyden opened this issue Oct 31, 2023 · 0 comments
Assignees

Comments

@zloyden
Copy link

zloyden commented Oct 31, 2023

It seems that the scriptlets using the [$path] modifier are not applying.

STR:

  1. Add these rules to User rules in AdGuard for iOS
[$path=/\/(?:weather\/|pogoda\/|hava\/)/]yandex.*#%#//scriptlet('prevent-eval-if', 'Id":"R-I')
[$path=/\/(?:weather\/|pogoda\/|hava\/)/]yandex.*#%#//scriptlet('abort-on-property-read', 'Object.prototype.renderDirect')
[$path=/\/(?:weather\/|pogoda\/|hava\/)/]yandex.*#%#//scriptlet('json-prune', 'rtb')

1,1. You can skip p.1 if you check the issue later with latest filters update, AdGuard Annoyances enabled + the config from AdguardTeam/AdguardFilters#164874
2. Open https://yandex.ru/pogoda/novorossiysk in Safari on iOS
3. Request desktop page (not needed if you test it on iPad)
4. You will see ads.

Expected behaviour - the rules should work with [$path] modifier.

@slavaleleka slavaleleka transferred this issue from AdguardTeam/Scriptlets Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants