AdguardTeam / AdguardTeam/SafariConverterLib
CSS or exception rules does not work on `dood.wf`
- Dominant language
- Swift
- Stars
- 78
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
It's related to https://github.com/AdguardTeam/AdguardFilters/issues/128326. The problem is seen in `AdGuard for iOS / Safari`.
There is anti-adblock script that check the elements and If the check fails, you will also get an ad-blocking message.
The rules below should work on `Safari (Mac or iOS)`, but they do not.
There is `hab` function that returns `true` even when adding one of these types of rules.
CSS rule:
```
dood.wf#$#.ad.doubleclick.google-ad.adsbox.pub_300x250.pub_300x250m.pub_728x90.text-ad.textAd.text_ad.text_ads.text-ads.skyscraper.text-ad-links { display: block !important; }
```
Exceptions:
```
dood.wf#@#.ad
dood.wf#@#.doubleclick
dood.wf#@#.google-ad
dood.wf#@#.adsbox
dood.wf#@#.pub_300x250
dood.wf#@#.pub_300x250m
dood.wf#@#.pub_728x90
dood.wf#@#.text-ad
dood.wf#@#.textAd
dood.wf#@#.text_ad
dood.wf#@#.text_ads
dood.wf#@#.text-ads
dood.wf#@#.skyscraper
dood.wf#@#.text-ad-links
```
To reproduce this:
add an exception below
`dood.wf,dood.la,dood.pm,dood.so,dood.to,dood.watch,dood.ws#@%#//scriptlet("abort-current-inline-script", "document.getElementsByClassName", "allow adblock")` and one of the type of the rules above.
This is a normal behaviour on Chrome via `AdGuard for Chrome` (the same with `AdGuard for Mac / Windows`).
Screenshot:

According to @AdamWr [research](https://jsfiddle.net/Lk0qtf6g/), it can be happened on any site.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.