Removed third-parties from easyprivacy
This commit is contained in:
parent
188a8f7455
commit
1c20963ffd
|
@ -14,9 +14,8 @@ import abp.filters
|
||||||
|
|
||||||
|
|
||||||
def get_domains(rule: abp.filters.parser.Filter) -> typing.Iterable[str]:
|
def get_domains(rule: abp.filters.parser.Filter) -> typing.Iterable[str]:
|
||||||
for key, val in rule.options:
|
if rule.options:
|
||||||
if key not in ('third-party',):
|
return
|
||||||
return
|
|
||||||
selector_type = rule.selector['type']
|
selector_type = rule.selector['type']
|
||||||
selector_value = rule.selector['value']
|
selector_value = rule.selector['value']
|
||||||
if selector_type == 'url-pattern' \
|
if selector_type == 'url-pattern' \
|
||||||
|
|
Loading…
Reference in a new issue