You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I performed a cursory search of the issue tracker to avoid opening a duplicate issue
Your issue may already be reported.
I tried to reproduce the issue when...
uBlock Origin is the only extension
uBlock Origin with default lists/settings
using a new, unmodified browser profile
I am running the latest version of uBlock Origin
I checked the documentation to understand that the issue I report is not a normal behavior
Description
Yandex uses this #shadow-root thing on a number of its projects (at least zen.yandex.ru and pogoda.yandex.ru) to circumvent ad blockers. There aren't any CSS selectors I could reliably use to hide this block without hiding anything else. Procedural filters (something:has(something)) don't work inside the shadow root — I tried div:has(style) and it didn't match anything even though there is such a div inside the shadow root.
Also, I don't think I've ever seen shadow-root being used for non-nefarious purposes. Is there a filter rule to block this browser functionality, either for a domain or completely, using uBlock Origin?
Prerequisites
Description
Yandex uses this
#shadow-root
thing on a number of its projects (at least zen.yandex.ru and pogoda.yandex.ru) to circumvent ad blockers. There aren't any CSS selectors I could reliably use to hide this block without hiding anything else. Procedural filters (something:has(something)
) don't work inside the shadow root — I trieddiv:has(style)
and it didn't match anything even though there is such a div inside the shadow root.Also, I don't think I've ever seen
shadow-root
being used for non-nefarious purposes. Is there a filter rule to block this browser functionality, either for a domain or completely, using uBlock Origin?A specific URL where the issue occurs
https://zen.yandex.ru/media/zemexpert/skk-peterburgskii-jertva-gradostroitelnogo-proizvola-v-sanktpeterburge-5e36f42a5098d322f9ed26b0
Steps to Reproduce
Expected behavior:
I'm able to hide the
shadow-root
node entirely or at least apply procedural filters within itActual behavior:
I'm powerless, and the only thing that sorta helps against this is the nuclear option of disabling JavaScript.
Your environment
The text was updated successfully, but these errors were encountered: