Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move filter lists to be hosted in this repo #4

Merged
merged 1 commit into from
Jul 20, 2020
Merged

Conversation

antonok-edm
Copy link
Collaborator

For a number of reasons, it would be super useful to host filter lists independently from adblock-rust.

I've duplicated the default and regional list descriptors as pure JSON and exported them from here. It should be possible to include these lists either by installing adblock-resources as a dependency and using the defaultLists and regionalLists exports (commit-locked), or by requesting directly from the raw filter_lists/default.json and filter_lists/regional.json files hosted in this repository.

I've also expanded the verify.js testsuite to ensure that any updates to the filter lists are parsed correctly as JSON, and have all the expected fields with correct types. This is roughly on-par with the compile-time checks in adblock-rust; we could potentially expand the test suite further to enforce constraints on the values themselves - URLs parse correctly, UUIDs are actually unique, language codes are valid, etc.

@pes10k pes10k merged commit bee92c8 into master Jul 20, 2020
@antonok-edm antonok-edm deleted the host-filter-lists branch July 20, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants