From bc8ed99d8d44824dfe82f7e45d56afc707088d76 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 29 Oct 2023 23:33:22 +0100 Subject: [PATCH] adding tld filters might explode --- filters/adblock.txt | 2 ++ filters/dnsmasq.txt | 2 ++ filters/ublock.txt | 2 ++ scripts/update.sh | 5 +++-- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 filters/adblock.txt create mode 100644 filters/dnsmasq.txt create mode 100644 filters/ublock.txt diff --git a/filters/adblock.txt b/filters/adblock.txt new file mode 100644 index 00000000..192033bd --- /dev/null +++ b/filters/adblock.txt @@ -0,0 +1,2 @@ +||gop^ +||republican^ \ No newline at end of file diff --git a/filters/dnsmasq.txt b/filters/dnsmasq.txt new file mode 100644 index 00000000..2ead77ef --- /dev/null +++ b/filters/dnsmasq.txt @@ -0,0 +1,2 @@ +address=/.gop/ +address=/.republican/ \ No newline at end of file diff --git a/filters/ublock.txt b/filters/ublock.txt new file mode 100644 index 00000000..c6265e56 --- /dev/null +++ b/filters/ublock.txt @@ -0,0 +1,2 @@ +*://*.gop/* +*://*.republican/* \ No newline at end of file diff --git a/scripts/update.sh b/scripts/update.sh index df8c5dad..8ab430ec 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -31,14 +31,15 @@ python scripts/domains_to_hosts.py > hosts.txt cp hosts.txt etc_hosts.txt # Previous filename for PiHole installations still subscribed to the old url. python scripts/domains_to_hosts_ipv6.py > hosts.txt.ipv6 python scripts/domains_to_dnsmasq.py > dnsmasq.txt +cat ./filters/dnsmasq.txt >> dnsmasq.txt ## For browser extensions. python scripts/domains_to_netsane.py > netsane.txt python scripts/domains_to_adblock.py > adblock_temp.txt cp ./headers/adblock.txt adblock.txt -cat adblock_temp.txt >> adblock.txt +cat adblock_temp.txt ./filters/adblock.txt >> adblock.txt rm adblock_temp.txt python scripts/domains_to_ublacklist.py > ublacklist_temp.txt cp ./headers/adblock.txt ublacklist.txt # Currently using the same adblock header until uBlacklist implements its own header. https://github.com/iorate/ublacklist/issues/351 -cat ublacklist_temp.txt >> ublacklist.txt +cat ublacklist_temp.txt ./filters/ublacklist.txt >> ublacklist.txt rm ublacklist_temp.txt \ No newline at end of file