mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-10 02:15:42 +01:00
Clean list
This commit is contained in:
parent
a79d5fbf66
commit
38beec3f34
4
maza
4
maza
@ -32,9 +32,13 @@ EOF
|
|||||||
|
|
||||||
## UPDATE
|
## UPDATE
|
||||||
update() {
|
update() {
|
||||||
|
# Make conf folder
|
||||||
rm -f $CONFIG/$LIST
|
rm -f $CONFIG/$LIST
|
||||||
mkdir -p $CONFIG
|
mkdir -p $CONFIG
|
||||||
|
# Download DNS list
|
||||||
curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts" -o "$CONFIG/$LIST"
|
curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts" -o "$CONFIG/$LIST"
|
||||||
|
# Clear list
|
||||||
|
sed -n "/<pre>/,/<\/pre>/p" list > "$CONFIG/$LIST"
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user