Git Product home page Git Product logo

adblock-filter-compiler's Introduction

AdBlock Filter Compiler

This repository contains a Python script designed to compile and optimize various blocklists, host files, and domain lists into a single, efficient AdBlock filter list. The script ensures that the resulting list is free of duplicates and redundant rules, providing a streamlined and effective ad-blocking experience.

Key Features

  • Integration: Combines multiple blocklists, host files, and domain lists into one cohesive AdBlock filter.
  • Optimization: Identifies and removes duplicate entries and redundant rules to enhance filter efficiency.
  • Customization: Allows users to specify custom blocklist sources through a config.json file.
  • Header Generation: Automatically generates a header with detailed metadata, including the date, time, domain count, and statistics on duplicates and redundant rules removed.

Default Filter Lists

By default, the script integrates the following filter lists:

You can customize the sources by modifying the blocklist_urls array in the config.json file.

Getting Started

Prerequisites

  • Ensure you have Python 3.x installed on your system.
  • Install the required Python package:
    pip install requests

Usage

  1. Clone the repository:
    git clone https://github.com/yourusername/adblock-filter-compiler.git
    cd adblock-filter-compiler
  2. Create a config.json file and configure your blocklist URLs:
    {
      "blocklist_urls": [
        "https://example.com/blocklist1.txt",
        "https://example.com/blocklist2.txt"
      ]
    }
  3. Run the script to generate the filter list:
    python adblock_filter_compiler.py
    The script will output a blocklist.txt file containing the compiled filter list.

Automated Updates

This repository leverages GitHub Actions to automate the filter compilation process. The workflow is scheduled to run daily, ensuring that the blocklist.txt file is updated with the latest changes.

Contributing

Contributions are welcome! If you have any improvements, suggestions, or bug fixes, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Thank you for using the AdBlock Filter Compiler! If you have any questions or need further assistance, feel free to reach out.

adblock-filter-compiler's People

Contributors

actions-user avatar ghostnetic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.