AdguardTeam / CoreLibs

Core Adguard libraries
https://adguard.com/
Apache License 2.0
40 stars 7 forks source link

Element hide exception doesn't work if rule contains `~domain` #1673

Closed AdamWr closed 1 year ago

AdamWr commented 2 years ago

Steps to reproduce

  1. Add these rules:
    ##body
    ~adguard.com#@#body
  2. Go to - https://example.org/

Expected behavior

Website should be displayed correctly (shouldn't be "blank").

Actual behavior

Website is blank. It looks like that generic exception doesn't work if there is ~domain in the rule.

AdGuard for Windows Version 7.11 nightly 12 (build 4048, CL 1.10.80)

grumaxxx commented 2 years ago

@AdamWr Actual behavior can be achieved with rules:

##body
adguard.com#@#body

tilde is redundant here

https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#exceptions-2

UPD: Apparently I made a mistake and you meant something else, let me double check