ExtendedCss icon indicating copy to clipboard operation
ExtendedCss copied to clipboard

Some ':matches-property()' rules don't work

Open AdamWr opened this issue 4 years ago • 3 comments

I'm not sure if it's a correct place to report this issue, because it happens only with extensions.

Steps to reproduce:

  1. Add this rule:
pudelek.pl#?#div[data-testid] div[class*=" "]:matches-property("/__reactInternalInstance/.return.memoizedProps.slotNumber"="/\d+/") 
  1. Go here - https://www.pudelek.pl

This rule should hide ad leftovers, but for some reason it doesn't work with extensions (3.5.31), but works fine with AdGuard for Windows (7.6 nightly 12 (build 3452, CL 1.7.153)).

Screenshot

image

AdamWr avatar Jan 18 '21 13:01 AdamWr

Interesting. @slavaleleka why could it be that way?

ameshkov avatar Jan 18 '21 14:01 ameshkov

It seems that the same happens on https://www.facebook.com/ with this rule: facebook.com#?#div:matches-property("/__reactFiber/") It should hide whole website (when you are logged in), but it doesn't work with extensions.

AdamWr avatar Jan 18 '21 14:01 AdamWr

Oh, I see. @slavaleleka the problem is that ExtendedCSS is executed in the content script context, it simply does not have access to DOM node properties created in the page context.

ameshkov avatar Jan 18 '21 14:01 ameshkov