Closed Nzzyme closed 8 months ago
Thanks for the report. I am not familiar with the AdGuard format, do you know by any chance why it doesn't like the list? After all it's just plaintext hostnames. Any advice would be welcome.
The following bash script creates lists compatible with Adblock Plus (ABP) and UBlock Origin (UBO). I use something similar for my own blocklists. The sed
utility is required.
ABP requires the hostnames to be wrapped like this ||example.com^
, for UBO it is ||example.com^$all
.
Comment lines starting with #
and blank lines are ignored.
sed -E '/(^#.*$|^$)/!s/^/\|\|/;/(^#.*$|^$)/!s/$/\^/' list.txt > list-ABP.txt
sed -E '/(^#.*$|^$)/!s/^/\|\|/;/(^#.*$|^$)/!s/$/\^$all/' list.txt > list-UBO.txt
Thanks Wu Tingfeng, added the versions processed by your script to the repo.
Can you please make your Master List compatible with AdGuard and other ad blockers like ublocker? Tried adding this to AdGuard but it won't filter/block the domains as the syntax for the individual rules is not in the right format.