SafariConverterLib icon indicating copy to clipboard operation
SafariConverterLib copied to clipboard

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

Open zloyden opened this issue 1 year ago • 0 comments

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 https://github.com/AdguardTeam/AdguardFilters/issues/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.

zloyden avatar Oct 31 '23 14:10 zloyden