commit 32f20b70a45a46aaaa35246cf2d04d3d4c34485a Author: root Date: Fri Jul 21 23:37:00 2023 +0200 initialer Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25f7b63 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +all-adblock.txt +header.txt +.htaccess +.htpasswd diff --git a/adblocklists.txt b/adblocklists.txt new file mode 100644 index 0000000..4228fb6 --- /dev/null +++ b/adblocklists.txt @@ -0,0 +1,16 @@ +https://ublockorigin.pages.dev/filters/filters.txt +https://ublockorigin.github.io/uAssetsCDN/filters/badware.txt +https://ublockorigin.github.io/uAssetsCDN/filters/privacy.txt +https://cdn.statically.io/gh/uBlockOrigin/uAssetsCDN/main/filters/quick-fixes.txt +https://cdn.statically.io/gh/uBlockOrigin/uAssetsCDN/main/filters/resource-abuse.txt +https://gitcdn.link/cdn/uBlockOrigin/uAssetsCDN/main/filters/unbreak.txt +https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt +https://easylist.to/easylist/easylist.txt +https://curbengh.github.io/malware-filter/urlhaus-filter-online.txt +https://easylist.to/easylist/easyprivacy.txt +https://filters.adtidy.org/extension/ublock/filters/14.txt +https://secure.fanboy.co.nz/fanboy-annoyance.txt +https://gitcdn.link/cdn/uBlockOrigin/uAssetsCDN/main/filters/annoyances.txt +https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext +https://easylist.to/easylistgermany/easylistgermany.txt +https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt diff --git a/create-adblock.sh b/create-adblock.sh new file mode 100755 index 0000000..6fbd97a --- /dev/null +++ b/create-adblock.sh @@ -0,0 +1,19 @@ +#!/bin/bash +cd /var/www/test.mainboarder.de/adblocker/ + +while read p; do + wget -qO - $p >> all-adblock.txt +done allfilters.txt +echo '! Title: Mainboarder kompiliert +! Description: Filters optimized for uBlock, for single list use, deduplicated +! Expires: 2 days +! Last modified: '"$date"' +! Homepage: https://test.mainboarder.de/adblocker +!' > all-adblock.txt + +cat header.txt >> all-adblock.txt +awk '!seen[$0]++' allfilters.txt >> all-adblock.txt +rm allfilters.txt diff --git a/header.txt.template b/header.txt.template new file mode 100644 index 0000000..355b4cf --- /dev/null +++ b/header.txt.template @@ -0,0 +1 @@ +#add own rules here