Giter VIP home page Giter VIP logo

filtrite's Introduction

filtrite

filtrite is a project for generating filter lists for Bromite and Cromite. See the page about Custom Ad Block Filters for more info.

Lists

You can choose any list from the table, then hold the name to copy its link. Add it to Bromite by going to settings > AdBlock settings, then setting "Filters URL" to the link you just copied.

Link Description
Bromite Default Bromite default filter list, but generated by this tool
Bromite Extended The default list with additional annoyance blockers I use with uBlock Origin on Desktop
Bromite Extended (Soft) Same as the "Bromite Extended" list, but with less aggressive filtering (should break fewer sites)
German The "Bromite Extended" list with additional region-specific blocklists for german sites

Alternatively, you can go here to search forks of this project for more lists, e.g. for other countries.

These lists are regularly updated automatically using GitHub Actions.

Note: I'm not 100% sure if all list formats that are used are actually supported by the ruleset generation tool (as the output indicates some failures). If you have a comment on that, please open an issue :)

Advanced blocking

The normal Bromite ad blocking engine does not support all blocking formats. However, since the introduction of user scripts, it has become possible to block even more annoying elements. If you want more blockers (e.g. for cookie prompts), see my custom Bromite user scripts repository.

Using your own filter lists

This program is designed in a way that allows easily adding new lists.

To create a new list:

  1. Fork this repository
  2. Enable GitHub Actions by switching to the "Actions" tab of your repo, then confirming that you want to enable them
  3. Choose a name for the list, e.g. in the following the name is example-list. Please note that the file name must end with .txt, so in our case we call it example-list.txt (put it in the lists directory).
  4. Search for filter lists you want to use. You can for example find them here, use those in "uBlock Origin" or "AdBlock Plus" format (however, it's possible that not all types of rules are supported). Go to info, then "View" and copy the URL to the list.
  5. Create a file lists/example-list.txt (in the lists directory) that contains the URLs to filter lists you copied before. It should look like this:
    # Lines starting with # are ignored, empty lines are also allowed
    # List one URL per line:
    https://easylist.to/easylist/easylist.txt
    https://...
    
    # The following line doesn't work, only put either a comment or an URL in one line, not both
    http://  # Invalid comment on URL
    
  6. Save your file, commit and push. GitHub Actions should now build the list and create a release
  7. After GitHub Actions generated the release, you can copy the linked URL in the release to always get the latest generated version. This URL looks something like https://github.com/USERNAME/filtrite/releases/latest/download/FILENAME.dat. If your URL (except for the username/filename part) contains numbers, you copied the wrong link.
  8. Check that the generated filter file size is less than the allowed maximum of 20 MB. If it isn't, you must remove some lists
  9. Set this URL as the filter file in Bromite settings.

Another thing to note is that GitHub disables scheduled workflows after 60 days, meaning that you sometimes have to commit something to keep your fork "alive".

This is free as in freedom software. Do whatever you like with it.

filtrite's People

Contributors

xarantolus avatar mintss-zez0 avatar green1052 avatar ujjw41 avatar

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.