diff --git a/Conversions of AdGuard Services lists/ServicesConvAlpha2.py b/Conversions of AdGuard Services lists/ServicesConvAlpha2.py index 1fcbc2921..76d7d74d4 100644 --- a/Conversions of AdGuard Services lists/ServicesConvAlpha2.py +++ b/Conversions of AdGuard Services lists/ServicesConvAlpha2.py @@ -3579,6 +3579,54 @@ def prepare_conversion(lines) -> str: line ) + line = re.sub( + r"\^$denyallow=([a-z0-9])", + r"^$all,domain=~\1", + line + ) + + line = re.sub( + r"\^\$denyallow=([a-z0-9])", + r"^$all,domain=~\1", + line + ) + + line = re.sub( + r"(\^\$all,domain=.*\|)([a-z0-9])", + r"\1~\2", + line + ) + + line = re.sub( + r"(\^\$all,domain=.*\|)([a-z0-9])", + r"\1~\2", + line + ) + + line = re.sub( + r"(\^\$all,domain=.*\|)([a-z0-9])", + r"\1~\2", + line + ) + + line = re.sub( + r"(\^\$all,domain=.*\|)([a-z0-9])", + r"\1~\2", + line + ) + + line = re.sub( + r"(\^\$all,domain=.*\|)([a-z0-9])", + r"\1~\2", + line + ) + + line = re.sub( + r"(\^\$all,domain=.*\|)([a-z0-9])", + r"\1~\2", + line + ) + text += line + '\n' return text diff --git a/Conversions of AdGuard Services lists/qq.txt b/Conversions of AdGuard Services lists/qq.txt index 23db93d80..03c4b9396 100644 --- a/Conversions of AdGuard Services lists/qq.txt +++ b/Conversions of AdGuard Services lists/qq.txt @@ -1,7 +1,7 @@ ! Title: Conversion of AdGuard Services Lists — QQ -||qq.com^$denyallow=wx.qq.com|weixin.qq.com +||qq.com^$all,domain=~wx.qq.com|~weixin.qq.com ||qq-video.cdn-go.cn^$all ||url.cn^$all