mirror of https://github.com/hacamer/AdRule.git
Delete adrules directory
This commit is contained in:
parent
30860614c9
commit
38f734fed7
|
@ -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
167119
adrules/adguard-full.txt
167119
adrules/adguard-full.txt
File diff suppressed because one or more lines are too long
|
@ -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
|
|
Loading…
Reference in New Issue