brave/adblock-rust

uBlock filter not working on Brave, works on Firefox + uBlock

Closed this issue · 2 comments

Hello,

I'm experiencing a weird issue that I asked on the Brave community. Basically, the filters are not being applied even though they work on Firefox + uBlock. Tested on Fedora and Windows.

The filter is this one

example.org##article:has(span:has-text(/text-i-want-to-match/i))

I want to know if there's a way of debugging the filters in Brave or if there's a way of knowing which parts of the syntax are compatible with Brave. I'm opening this issue here (apart from opening on the Brave community) because the help center of Brave (in How do I manage Ad-Block filters in Brave?) says

Brave is broadly compatible with uBlock Origin's filter rule syntax. We encourage you to refer to the uBlock Origin Static filter syntax page.

Differences in compatibility are treated as bugs and are documented in the adblock-rust issue tracker.

Thanks for you help

thanks @chris-fj! The filter you mentioned uses :has-text, which is a procedural filter operator. I'm currently tracking that in #293.

Thanks, I’ll track it from there. I tried to search related issues but this didn’t came up because the keywords were not related