tsurlfilter icon indicating copy to clipboard operation
tsurlfilter copied to clipboard

Add regexp support for $domain modifier

Open slavaleleka opened this issue 4 years ago • 1 comments

@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.

slavaleleka avatar Nov 12 '21 19:11 slavaleleka

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

ameshkov avatar Nov 13 '21 10:11 ameshkov