mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-13 17:12:41 +08:00
change surge format, add domains.txt format
This commit is contained in:
parent
90bef80e38
commit
5465f82e94
@ -1,4 +1,4 @@
|
||||
#TIME=20200203040206
|
||||
#VER=20200203045303
|
||||
#URL=https://github.com/privacy-protection-tools/anti-AD
|
||||
address=/0024aaaa.com/
|
||||
address=/0026645142c89aeb1.com/
|
||||
|
34982
anti-ad-domains.txt
Normal file
34982
anti-ad-domains.txt
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
!AdBlock-style blocklists
|
||||
!TIME=20200203040207
|
||||
!VER=20200203045303
|
||||
!URL=https://github.com/privacy-protection-tools/anti-AD
|
||||
||201*.myhard.com^
|
||||
||8*.tianya.cn^
|
||||
|
69963
anti-ad-surge.txt
69963
anti-ad-surge.txt
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@ class writerFormat{
|
||||
/*dnsmasq支持格式的屏蔽广告列表*/
|
||||
const DNSMASQ = array(
|
||||
'format' => 'address=/{DOMAIN}/',
|
||||
'header' => "#TIME={DATE}\n#URL={URL}\n",
|
||||
'header' => "#VER={DATE}\n#URL={URL}\n",
|
||||
'name' => 'dnsmasq',
|
||||
'filename' => 'adblock-for-dnsmasq.conf'
|
||||
);
|
||||
@ -19,19 +19,27 @@ class writerFormat{
|
||||
/*easylist 兼容格式的屏蔽广告列表*/
|
||||
const EASYLIST = array(
|
||||
'format' => '||{DOMAIN}^',
|
||||
'header' => "!AdBlock-style blocklists\n!TIME={DATE}\n!URL={URL}\n",
|
||||
'header' => "!AdBlock-style blocklists\n!VER={DATE}\n!URL={URL}\n",
|
||||
'name' => 'easylist',
|
||||
'filename' => 'anti-ad-easylist.txt'
|
||||
);
|
||||
|
||||
/*Surge 兼容格式的屏蔽广告列表*/
|
||||
const SURGE = array(
|
||||
'format' => 'DOMAIN-SUFFIX,{DOMAIN},REJECT',
|
||||
'header' => "#TIME={DATE}\n#URL={URL}\n[RULE]\n",
|
||||
'format' => 'DOMAIN-SUFFIX,{DOMAIN}',
|
||||
'header' => "#VER={DATE}\n#URL={URL}\n",
|
||||
'name' => 'surge',
|
||||
'filename' => 'anti-ad-surge.txt'
|
||||
);
|
||||
|
||||
/*Domains 格式的屏蔽广告列表,用于支持pi-hole等*/
|
||||
const DOMAINS = array(
|
||||
'format' => '{DOMAIN}',
|
||||
'header' => "#VER={DATE}\n#URL={URL}\n",
|
||||
'name' => 'surge',
|
||||
'filename' => 'anti-ad-domains.txt'
|
||||
);
|
||||
|
||||
/*and etc...*/
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user