Make exceptions to adblock easier

This commit is contained in:
Greg Hellings
2023-08-25 15:59:48 -05:00
parent 4a1b145e60
commit 014693cdcb
+3 -3
View File
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -ex
curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | sed '1,33d' > /etc/adblock_hosts
# Custom domains that I need to preserve for some reason
sed -i -e '/segment.com/d' /etc/adblock_hosts # Blocks Trelly content for house investors
sed -i -e '/segment.io/d' /etc/adblock_hosts # Blocks Trelly content for house investors
for f in "segment.com" "segment.io" "branch.io" "dev.visualwebsiteoptimizer.com"; do
sed -i -e "/${f}/d" /etc/adblock_hosts # Blocks Trelly content for house investors
done
systemctl restart dnsmasq