AdguardBrowserExtension icon indicating copy to clipboard operation
AdguardBrowserExtension copied to clipboard

Rule with pseudo class and with invalid pseudo class causes that element hiding rules do not work

Open AdamWr opened this issue 1 year ago • 1 comments

AdGuard Extension version

4.3.31

Browser version

Chrome 122

OS version

Windows 11

What filters do you have enabled?

AdGuard Base filter

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Add these rules:
example.org##body
example.org##body div:last-child a[href]:invalid-pseudo-class()
  1. Go to - https://example.org/

Expected Behavior

example.org##body rule should be applied and website should be blank.

Screenshots

No response

Additional Information

It seems that problem occurs only if there are more than one pseudo-classes, for example rule like this:

example.org##body div a[href]:invalid-pseudo-class()

doesn't cause a problem.

Issue doesn't occur with opened filtering log.

AdamWr avatar Mar 19 '24 14:03 AdamWr

This should be extendedCSS to avoid use remove-attr scriptlet in future.

krystian3w avatar Mar 19 '24 21:03 krystian3w