Delete adrules directory

This commit is contained in:
杏梢 2022-04-15 22:34:55 +08:00 committed by GitHub
parent 30860614c9
commit 38f734fed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 405943 deletions

View File

@ -1,5 +0,0 @@
[Adblock Plus 2.0]
! Title: AdRules (Adblock+AdGuard) (basic)
! Version: 2022-04-11 14:15
! Last Update: 2022-04-11 14:15:29北京时间
! Total count: 0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,27 +0,0 @@
#!/bin/sh
cd adrules/
rm -f *.txt
wget https://raw.githubusercontent.com/Cats-Team/AdRules_dev/main/adguard-full.txt
wget https://raw.githubusercontent.com/hacamer/adblock_list/master/adblock_plus.txt
cat adblock.txt | grep -v "^!" >> adblock+adguard-basic-source.txt
cat adblock_plus.txt | grep -v "^!" >> adblock+adguard-full-source.txt
rm -f adblock.txt adblock_plus.txt
num=`cat adblock+adguard-basic-source.txt | wc -l`
echo '[Adblock Plus 2.0]' >> tdate.txt
echo '! Title: AdRules (Adblock+AdGuard) (basic)' >> tdate.txt
echo "! Version: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M') " >> tdate.txt
echo "! Last Update: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')(北京时间)" >> tdate.txt
echo "! Total count: $num" >> tdate.txt
cat tdate.txt adblock+adguard-basic-source.txt >> adblock+adguard-basic.txt
rm -f tdate.txt
numw=`cat adblock+adguard-full-source.txt | wc -l`
echo '[Adblock Plus 2.0]' >> tdate.txt
echo "! Title: AdRules (Adblock+AdGuard) (Full)" >> tdate.txt
echo "! Version: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M') " >> tdate.txt
echo "! Last Update: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')(北京时间)" >> tdate.txt
echo "! Total count: $numw" >> tdate.txt
cat tdate.txt adblock+adguard-full-source.txt >> adblock+adguard-full.txt
rm -f tdate.txt *source.txt
exit