mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-13 17:12:41 +08:00
添加来自v2fly/domain-list-community
的广告域名
This commit is contained in:
parent
68763a2f0a
commit
82b565160a
@ -43,6 +43,16 @@ curl --connect-timeout 60 -s -o - https://raw.githubusercontent.com/ACL4SSR/ACL4
|
||||
curl --connect-timeout 60 -s -o - https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list \
|
||||
| grep -F 'DOMAIN-SUFFIX,' | sed 's/DOMAIN-SUFFIX,/127.0.0.1 /g' >./origin-files/hosts998.txt
|
||||
|
||||
wget -qO /tmp/geodata.tar.gz 'https://github.com/v2fly/domain-list-community/archive/master.tar.gz'
|
||||
# shellcheck disable=SC2181
|
||||
if [ $? -ne 0 ]; then
|
||||
echo '下载失败,请重试'
|
||||
exit 1
|
||||
fi
|
||||
tar xzf /tmp/geodata.tar.gz -C /tmp
|
||||
cat /tmp/domain-list-community-master/data/*-ads | grep -E '^(full:)?([^#:]+)( @ads)?$' \
|
||||
| sed -e 's/^full://g' -e 's/ @ads$//g' -e 's/^/127.0.0.1 /g' >./origin-files/hosts997.txt
|
||||
rm -rf /tmp/geodata.tar.gz /tmp/domain-list-community-master
|
||||
|
||||
for i in "${!easylist[@]}"
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user