From 1c20963ffdbfd0c800941f32f99f6af5c1fd458a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Thu, 5 Dec 2019 01:19:10 +0100 Subject: [PATCH] Removed third-parties from easyprivacy --- adblock_to_domain_list.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/adblock_to_domain_list.py b/adblock_to_domain_list.py index 4a4c017..168be16 100755 --- a/adblock_to_domain_list.py +++ b/adblock_to_domain_list.py @@ -14,9 +14,8 @@ import abp.filters def get_domains(rule: abp.filters.parser.Filter) -> typing.Iterable[str]: - for key, val in rule.options: - if key not in ('third-party',): - return + if rule.options: + return selector_type = rule.selector['type'] selector_value = rule.selector['value'] if selector_type == 'url-pattern' \