AdguardBrowserExtension
AdguardBrowserExtension copied to clipboard
Rule with pseudo class and with invalid pseudo class causes that element hiding rules do not work
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:
- Add these rules:
example.org##body
example.org##body div:last-child a[href]:invalid-pseudo-class()
- 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.
This should be extendedCSS to avoid use remove-attr scriptlet in future.