Ignore certain types of rules

Blaz

Moderator & Translator
Staff member
Moderator
Please add an option to non-Adguard filters to Ignore javascript rules and elemhides.

Sometimes an Authorization keeps adding rules you don't require, but other rules from it. With this option you wouldn't need to check the filter list from time to time.
 

avatar

Administrator
Staff member
Administrator
Sometimes an Authorization keeps adding rules you don't require, but other rules from it.
Sorry, I didn't get what you mean.

Please add an option to non-Adguard filters to Ignore javascript rules and elemhides.
We actually prohibit JS rules in third-party filters (unless you add such a filter by URL).
But why do you need it for elemhide?
 

Blaz

Moderator & Translator
Staff member
Moderator
Stupid auto-correct from mobile device.

Authorization = filter author


I don't require elemhide exclusion at all as they are not required up to 99%.
 

avatar

Administrator
Staff member
Administrator
This feature request makes sense for you, but I doubt it will be useful for casual users.

However, there is a way to achieve what you want. I can come up with a simple script which will mirror third-party filters without certain rules.

What exact rule types you'd like to be ignored there? It'd be better if you show some examples.
 

Blaz

Moderator & Translator
Staff member
Moderator
Elemhide, genericblock, first-party, beacon, ping, app.
 

avatar

Administrator
Staff member
Administrator
Ok, it took some time bug anyways, here it is.

1. I set up a new repo on Github: https://github.com/ameshkov/filters
2. This repo contains a simple script that downloads Russian and English filters and removes lines using regular expressions: https://github.com/ameshkov/filters/blob/master/run.sh
3. Also I added a travis-ci.org account to automate running and deployment: https://travis-ci.org/ameshkov/filters
4. Travis configuration: https://github.com/ameshkov/filters/blob/master/.travis.yml
5. It deploys filtered files to GH pages branch: https://github.com/ameshkov/filters/tree/gh-pages
6. So the filtered files are available by direct links (and you can install them to AdGuard from these links):
https://raw.githubusercontent.com/ameshkov/filters/gh-pages/1.txt

You can now do it yourself for the filters you'd like to be filtered:
1. Create Github and Travis accounts
2. Fork my repo to your account
3. Fix the run.sh script
4. Enable builds in Travis for this repo
6. Voila
 

Blaz

Moderator & Translator
Staff member
Moderator
I was thinking more about rules from third-party filter lists like Ublock Protector.
 
Top