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

Blocking shadow-root? #880

Closed
5 of 8 tasks
grishka opened this issue Feb 3, 2020 · 1 comment
Closed
5 of 8 tasks

Blocking shadow-root? #880

grishka opened this issue Feb 3, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@grishka
Copy link

grishka commented Feb 3, 2020

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • 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.

Снимок экрана 2020-02-03 в 12 25 19

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

  1. Try blocking ads on zen.yandex.ru
  2. Realize it's this shadow-root thing

Expected behavior:

I'm able to hide the shadow-root node entirely or at least apply procedural filters within it

Actual behavior:

I'm powerless, and the only thing that sorta helps against this is the nuclear option of disabling JavaScript.

Your environment

  • uBlock Origin version: 1.24.2
  • Browser Name and version: Vivaldi 2.10.1745.27
  • Operating System and version: Mac OS 10.14.6
@uBlock-user
Copy link
Contributor

Duplicate of #803

@uBlock-user uBlock-user marked this as a duplicate of #803 Feb 3, 2020
@uBlock-user uBlock-user added the duplicate This issue or pull request already exists label Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants