AdguardTeam / tsurlfilter

AdGuard content blocking library
GNU General Public License v3.0
56 stars 12 forks source link

Add regexp support for $domain modifier #41

Open slavaleleka opened 2 years ago

slavaleleka commented 2 years ago

@slavaleleka commented on Thu Nov 11 2021

now there is no chance to create single cosmetic rule for hiding the same element on such domains: example1.com, example2.com, example3.org

it would be nice if $domain modifier supports regular expressions, just like $path does

something like this: [$domain=/example[0-9]\.(com|org)/]##.ad


@ameshkov commented on Fri Nov 12 2021

Why limit just to the cosmetic rules? If we do it here, we should extend it to basic rules as well.

ameshkov commented 2 years ago

But let's wait until the CL guys come up with a proper syntax spec. https://github.com/AdguardTeam/CoreLibs/issues/1550