Giter Site home page Giter Site logo

mizzick / filtersregistry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adguardteam/filtersregistry

0.0 2.0 0.0 113.13 MB

Known filters subscriptions transformed for better compatibility with AdGuard

License: GNU Lesser General Public License v3.0

JavaScript 23.53% Python 43.58% Shell 32.89%

filtersregistry's Introduction

AG Filters

What is AdGuard?

Filters source repository

For each filter entity we have a directory in /filters. In that directory we have:

  • template.txt

Template file is a main source for filter correctors.

  • exclude.txt

Exclusions that will be applied by default, the file could be removed if it's no needed.

  • metadata.json

Filter metadata, look metadata block

  • revision.json

Filter version metadata, automatically filled and overwritten each build.

  • filter.txt

Result compiled filter

  • diff.txt

Build log containing excluded rules with explaining comments

domains-blacklist.txt

Text file containing list of domains to be removed from url-blocking domain modified rules.

Metadata files

  • metadata.json

Example of English filter:

   {
     "filterId": 2,
     "name": "English Filter",
     "description": "EasyList + AdGuard English filter. This filter is necessary for quality ad blocking.",
     "timeAdded": 1404115015843,
     "homepage": "https://kb.adguard.com/en/general/adguard-ad-filters#english",
     "expires": "1 day",
     "displayNumber": 1,
     "groupId": 1,
     "subscriptionUrl": "https://filters.adtidy.org/extension/chromium/filters/2.txt",
     "tags": [
       "purpose:ads",
   	   "reference:101",
   	   "recommended",
   	   "reference:2"
     ]
   }
  • /locales

Contains directories for each locale with filters.json, groups.json, tags.json that should be edited by filter-writers.

  • /tags

Json tags metadata

How to build

Install

  npm install

Building

Run the following command:

  node index.js

Oneskyapp integration

It's important to import strings from onesky before exporting, cause some changes can be lost otherwise.

To import strings from oneskyapp, run the following in /oneskyapp scripts directory:

    ./download.sh $apikey $secretkey $projectid

To export strings to oneskyapp, run the following in /oneskyapp scripts directory:

    ./upload.sh $apikey $secretkey $projectid

filtersregistry's People

Contributors

mizzick avatar traviscibot avatar

Watchers

James Cloos avatar  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.