Request to parse HaGeZi's adblock plus style block lists
-
I use one of hagezi's lists in addition to others such as OISD. Since OISD is moving to Adblock Plus syntax, I figured I'd start using Adblock Plus style lists when the maintainer offers it. Hagezi offers lists in multiple formats including Adblock Plus. pfblockerng.inc checks for a header indicating the file follows Adblock Plus syntax. I've modified my local pfblockerng.inc file to parse HaGeZi's as Adblock Plus style. Is this something @BBcan177 or @andrebrait (I noticed you're working on adding support for OISD's ABP style; Thank you!) or another maintainer can add to the official pfBlockerNG source?
Here is a diff showing the change I've made to my local instances:
--- pfblockerng.inc 2023-10-08 15:45:28.823470000 -0500 +++ pfblockerng.inc.rab 2023-10-08 15:45:10.531307000 -0500 @@ -8351,6 +8351,7 @@ if (strpos($line, '[Adblock Plus ') !== FALSE || strpos($line, '[Adblock Plus]') !== FALSE || strpos($line, '[uBlock Origin') !== FALSE || + strpos($line, "! Title: HaGeZi's") !== FALSE || strpos($line, '! Title: AdGuard') !== FALSE) { $easylist = $validate_header = TRUE; continue;
Thanks!
-
I submitted a merge request to FreeBSD-ports https://github.com/pfsense/FreeBSD-ports/pull/1309
EDIT: I see the above will be obsolete if/when https://github.com/pfsense/FreeBSD-ports/pull/1303 is merged.