Filter optimization

General information, announcements and questions about the EasyList subscriptions.
Locked
MajkiIT
Guest

Filter optimization

Post by MajkiIT »

I have 10 filters
##[id^="adv0"]
##[id^="adv1"]
##[id^="adv2"]
##[id^="adv3"]
##[id^="adv4"]
##[id^="adv5"]
##[id^="adv6"]
##[id^="adv7"]
##[id^="adv8"]
##[id^="adv9"]

Who can I optimize these rules ? I want to rule witch include adv+random number .
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

you could use
##[id^="adv"]
MajkiIT
Guest

Post by MajkiIT »

It give me fail positive.
barbaz
Postaholic
Postaholic
Posts: 204
Joined: Mon Sep 15, 2014 12:55 am

Post by barbaz »

Then it is not possible to optimize those rules any more than you already have... unless the false positive is on a different domain from the elements you want to block, in which case you can simply add a domain exception to intense's suggestion:

Code: Select all

~somedom.ain##[id^="adv"]
Locked