mirror of
https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever.git
synced 2025-12-17 23:34:48 +08:00
调试
This commit is contained in:
@@ -20,7 +20,7 @@ rules_url = [
|
|||||||
# 乘风 广告过滤规则
|
# 乘风 广告过滤规则
|
||||||
'https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt',
|
'https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt',
|
||||||
# Peter Lowe 广告和隐私跟踪域名
|
# Peter Lowe 广告和隐私跟踪域名
|
||||||
# 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=adblockplus;showintro=0',
|
'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=adblockplus;showintro=0',
|
||||||
]
|
]
|
||||||
|
|
||||||
rule = ''
|
rule = ''
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ def getRulesStringFromFile(path, kind):
|
|||||||
prefix = 'IP-CIDR'
|
prefix = 'IP-CIDR'
|
||||||
if '/' not in content:
|
if '/' not in content:
|
||||||
content += '/32'
|
content += '/32'
|
||||||
elif '.' not in content:
|
elif '.' not in content and len(content) > 1:
|
||||||
prefix = 'DOMAIN-KEYWORD'
|
prefix = 'DOMAIN-KEYWORD'
|
||||||
|
|
||||||
ret += prefix + ',%s,%s\n' % (content, kind)
|
ret += prefix + ',%s,%s\n' % (content, kind)
|
||||||
|
|||||||
Reference in New Issue
Block a user