Readme
This commit is contained in:
parent
32f20b70a4
commit
14d842fb90
2 changed files with 8 additions and 2 deletions
6
README.md
Normal file
6
README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Anleitung
|
||||||
|
* `header.txt.template` umbenennen in `header.txt`
|
||||||
|
* eigene Regeln einfügen (zum Beispiel aus den eigens eingesetzten Adblockern extrahieren)
|
||||||
|
* die URLs zu Adblocklisten in `adblocklists.txt` anpassen
|
||||||
|
* lokales Verzeichnis zu diesen Dateien in `create-adblock.sh:2` angeben
|
||||||
|
* Cronjob auf `create-adblock.sh` anlegen (z.B. alle zwei Tage - nicht zu oft, ob die Quelllisten nicht zu überfordern)
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /var/www/test.mainboarder.de/adblocker/
|
cd /var/www/DOMAIN/adblocker/
|
||||||
|
|
||||||
while read p; do
|
while read p; do
|
||||||
wget -qO - $p >> all-adblock.txt
|
wget -qO - $p >> all-adblock.txt
|
||||||
|
@ -11,7 +11,7 @@ echo '! Title: Mainboarder kompiliert
|
||||||
! Description: Filters optimized for uBlock, for single list use, deduplicated
|
! Description: Filters optimized for uBlock, for single list use, deduplicated
|
||||||
! Expires: 2 days
|
! Expires: 2 days
|
||||||
! Last modified: '"$date"'
|
! Last modified: '"$date"'
|
||||||
! Homepage: https://test.mainboarder.de/adblocker
|
! Homepage: https://git.mainboarder.de/Public/Adblocker
|
||||||
!' > all-adblock.txt
|
!' > all-adblock.txt
|
||||||
|
|
||||||
cat header.txt >> all-adblock.txt
|
cat header.txt >> all-adblock.txt
|
||||||
|
|
Loading…
Reference in a new issue