T145 / black-mirror

Blacklists and whitelists built by open code, so you know what goes into them.
GNU Affero General Public License v3.0
186 stars 12 forks source link

[feature]: Use AGTree and custom code over Hostlist Compiler #198

Open T145 opened 2 months ago

T145 commented 2 months ago

Contact Details

No response

What's your idea?

https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/test/parser/rule.test.ts

This will likely require: 1) Building the package on a separate Node subimage in the Dockerfile 2) Copying the output to the main subimage 3) Installing the runtime requirements on the main subimage

Then all that should be needed is a node -e command to parse Adblock lists. NPM can be uninstalled, reducing the image size by around a couple hundred megabytes.

Code of Conduct