catacombing / kumo

A Wayland Mobile Browser
GNU General Public License v3.0
8 stars 1 forks source link

Improve Adblock filter #36

Open chrisduerr opened 3 weeks ago

chrisduerr commented 3 weeks ago

The existing implementation uses the content filter list provided by AdBlockPlus: https://easylist-downloads.adblockplus.org/easylist_content_blocker.json

While this is a good baseline, it leaves a lot of room for improvement. The easiest solution would likely be to just convert a bunch of other filter lists to the expected format. There's already some tools out there to do just that:

However, neither of these tools seem particularly well supported, so it might be easier to just write a small Rust library for converting filter lists automatically. That way it would also be possible to offer this as a feature under a custom browser page like about:filters.

A good source for additional filters could be the ublock assets repository: https://github.com/uBlockOrigin/uAssets