DistillNET icon indicating copy to clipboard operation
DistillNET copied to clipboard

Extra rules when filtering by domain

Open igvk opened this issue 5 years ago • 0 comments

Initially mentioned in https://github.com/TechnikEmpire/DistillNET/issues/21. When getting all filters for domain by GetFiltersForDomain(domain), there are rules that shouldn't be there, because they correspond to some other domains (with domain option).

Here are examples taken from Easylist.

Whitelist rule: @@||www.google.com/adsense/search/async-ads.js$domain=webcrawler.com If I call GetWhitelistFiltersForDomain("www.google.com"), I still get this filter in the enumeration, although it definitely is relevant only for the domain webcrawler.com.

Blacklist rule: ||google.com/jsapi?autoload=*%22ads%22$script,domain=youtube.com and the call to GetFiltersForDomain("www.google.com").

igvk avatar May 27 '19 09:05 igvk