AdguardTeam / ExtendedCss

A TypeScript library for non-standard element selecting — :contains(), :matches-css(), etc., and applying CSS styles with extended properties.
GNU General Public License v3.0
65 stars 9 forks source link

turksemedia.nl - cannot hide element using Extended CSS #87

Closed Alex-302 closed 4 years ago

Alex-302 commented 5 years ago

URL: https://turksemedia.nl/wk-handboogschieten-in-nederland-turkije-pakt-zilver/

Screenshot:

![image](https://user-images.githubusercontent.com/8361299/59679502-af816600-91d7-11e9-8103-45ca041d2a37.png)

The rule:

turksemedia.nl##div[class="sidebar_item"][style="padding-bottom: 16px;"]:has(> a > img[width="276"])

Actual behavior:

After blinking banners are visible.

But this rule works fine: turksemedia.nl#$?#div[class="sidebar_item"][style="padding-bottom: 16px;"]:has(> a > img[width="276"]) { remove: true; }

Before checking add exclusion rule: turksemedia.nl#@$?#div[class="sidebar_item"][style="padding-bottom: 16px;"]:has(> a > img[width="276"]) { remove: true; }

AdGuard 3.1.3, Chrome.

AdamWr commented 5 years ago

I'm not sure, but I guess that it's due to [style="padding-bottom: 16px;"] and probably changing it to [style*="padding-bottom: 16px;"] should works.

https://forum.adguard.com/index.php?threads/resolved-news-softpedia-com.12426/#post-112475

Alex-302 commented 5 years ago

Sometimes that rule works, somtimes - no.