Coder Social home page Coder Social logo

Comments (2)

antonok-edm avatar antonok-edm commented on August 11, 2024 1

Hi @astuanax,

I'm not 100% sure what you're trying to achieve, but hopefully something here might be useful for you:

update DAT files for the adblock extension

Brave Browser has moved away from using DAT files as of this PR (1.46.x). Rationale for the change is here. If you still have leftover component directories with adblock .dat files in your browser's profile directory, they can be safely removed.

The newer components have a list.txt file instead. You can find the full mapping from component IDs to components here. Refer to the list_text_component.component_id for each list, not the top-level component_id.

a script to update the data directory with all the files that are in there

You can take a look at brave-core-crx-packager, which is Brave's serverside component packager. In particular, this section explains how to generate the adblock components, which will then be located in the build directory organized by component ID (newer list-based components) or UUID (older DAT-format components).

We still build the older DAT-format components for Brave iOS, which is migrating to the newer list-format components soonβ„’. If you really need those for some reason they will also be located in the build directory. But I strongly recommend loading directly from the list format instead.

The data directory

It occurred to me that you might also be referring to this data directory. In that case, there isn't any provision for automatic updates; it's considered more of a regression test suite. I'd prefer not to regularly check filter lists into this repo since it would significantly bloat the git history relative to the volume of actual code changes.

We do have a few "live" tests which run in the CI on this repository and download some of the lists directly at test-time, although they are not extremely comprehensive. If you have ideas of how to make those more useful, I'm certainly open to suggestions!

from adblock-rust.

astuanax avatar astuanax commented on August 11, 2024

Thanks for the amazing update, that totally solved my issue!

from adblock-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.