If you want to make AdGuard better by creating new rules, follow the instructions below to make your ideas come to life faster!
- Install Visual Studio Code with the "Adblock" syntax plugin.
- Clone (or fork and clone) this repo.
- Make your changes and commit them.
- Each commit should be linked to an issue. The commit message should look like the examples below. That way, the issue will be closed automatically once the commit is merged into the
master
branch.Fix #123 example.org
where123
is the issue number andexample.org
- website from the issue.Fix #123 comment
wherecomment
is your comment for additional fixes in the pull request.
Before you begin, please read and understand the current filters policy we adhere to. One of its most important points is the quality requirements.
The next step is creating rules.
- There is an official documentation that can help you.
- When you're done with creating rules, please take a look at the similar ones in the filters. This may help you to make a better version of the rule.
AdGuard filters are compiled from files in this repository. This is an automated process that is periodically run by scripts in the FiltersRegistry repo. In this repository, each filter list is divided into several files, and each file has its own purpose. If you're adding a new rule, make sure it is added to the proper file or section of the file.
General requirements for submitting rules: don't add rules to the beginning of the file, start entering them from line 4, for example. If you add rules with a task comment or hints, put them next to the same structure in the file.
- Purpose: this filter blocks various kinds of ads mostly on English-language and multilingual sites.
- Base folder
- Notes: The AdGuard Base filter includes Easylist if you use AdGuard products, so there's no need to add rules which are already in
Easylist
.
- Purpose: this filter blocks various kinds of ads on Russian-language sites.
- Russian folder
- Purpose: this filter blocks various kinds of ads on Chinese-language sites.
- Chinese folder
- Notes: The AdGuard Chinese filter includes Easylist China if you use AdGuard products, so there's no need to add rules which are already in
Easylist China
.
- Purpose: this filter blocks various kinds of ads on Dutch-language sites.
- Dutch folder
- Purpose: this filter blocks various kinds of ads on French-language sites.
- French folder
- Notes: The AdGuard French filter includes Liste FR if you use AdGuard products, so there's no need to add rules which are already in
Liste FR
.
- Purpose: this filter blocks various kinds of ads on German-language sites.
- German folder
- Notes: The AdGuard German filter includes Easylist Germany if you use AdGuard products, so there's no need to add rules which are already in
Easylist Germany
.
- Purpose: this filter blocks various kinds of ads on Japanese-language sites.
- Japanese folder
- Purpose: this filter blocks various kinds of ads on Spanish-language and Portuguese-language sites.
- Spanish folder
- Purpose: this filter blocks various kinds of ads on Turkish-language sites.
- Turkish folder
- Purpose: this filter blocks various kinds of ads on mobile version of sites.
- Mobile folder
- Purpose: this filter blocks various kinds of social widgets from sites.
- Social folder
- Purpose: this filter unblocks search engine result that may be useful to users.
- UsefulAdsFilter folder
-
Purpose: this filter blocks irritating elements on web pages including cookie notices, third-party widgets and in-page pop-ups.
-
Contains the following AdGuard filters: Cookie Notices, Popups, Mobile App Banners, Other Annoyances and Widgets:
-
- Purpose: this filter blocks cookie notices on web pages.
- Cookies folder
-
- Purpose: this filter blocks irritating banners that promote mobile apps of websites.
- MobileApp folder
-
- Purpose: this filter blocks all kinds of pop-ups that are not necessary for websites' operation.
- Popups folder
-
- Purpose: this filter blocks annoying third-party widgets - online assistants, live support chats, etc.
- Widgets folder
-
- Purpose: this filter blocks irritating elements on web pages that do not fall under the popular categories of annoyances.
- Other folder
-
- Purpose: this filter serves to test some new filtering rules that can potentially cause conflicts and mess with websites' work. In case these rules perform without any issues, they get added to main filters.
- Experimental folder
- Purpose: this filter hides your actions online and helps avoid tracking.
- Tracking Protection folder
- Purpose: this filter removes various kinds of tracking parameters from sites.
- URL Tracking folder