Page 1 of 1

how to get rid of the snails

Posted: Sun Jan 09, 2011 12:13 pm
by anonymous74100
I got 9 slow filters. How do I optimize them.

Code: Select all

/ado.js
/ad.js
/banner*.swf
||openx.
||adv.
||adslv.
||promo.
||agk.lv^$third-party
||puls.lv^

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 12:29 pm
by LorenzoC
It depends what version of ABP you are using.

Stable ABP uses the "old" algorithm which requires "keywords" to be at least 8 characters.
So all the above rules are "wrong" and you can't do anything about it.

Development ABP uses a "new" algorithm which requires "keyowrds" to be 3 characters proceeded and followed by a special characters like */ads/* or ||ads.*

So for the Dev Builds these are "good":
/ado.*
||openx.*
||adv.*
||adslv.*
||promo.*
||agk.*^$third-party
||puls.*

While these are "wrong":
/ad.* (too short)
/banner*. (missing special character at the end of the word)

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 12:35 pm
by Hubird
It is great that you are making a Latvian Adblock subscription but it would be best if you made it a "supplemental" subscription (only add rules for Latvian sites not already blocked by generic rules in one of the current general English Adblock lists).

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 12:39 pm
by anonymous74100
I installed the dev build, so I'm down to 2 snails.
What do you mean by:
LorenzoC wrote:missing special character at the end of the word

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 12:41 pm
by Hubird
Also, I would remove:

Code: Select all

/banners/*
/city24/*
/banner*.swf
Above filters are asking for trouble

Code: Select all

*.swf?ClickTag=
Known to cause false positives

Code: Select all

##A[href*="openx."]
##A[href*=".php?bannerID="]
##A[href="/reklama"]
These are also slow filtters and should be avoided

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 12:44 pm
by LorenzoC
I mean
*/ads/*
is "good", while
*/ads*
if "wrong" because the "keyword" ads is not immediately followed by the required "special character".

Read this:
forum/viewtopic.php?f=4&t=6118

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 12:45 pm
by anonymous74100
Hubird wrote:It is great that you are making a Latvian Adblock subscription but it would be best if you made it a "supplemental" subscription (only add rules for Latvian sites not already blocked by generic rules in one of the current general English Adblock lists).
Most Latvian sites have endless foreign tracking scripts from .ee .se .ru and others.
Hubird wrote:Also, I would remove:
I will consider it, but these are gonna stay:

Code: Select all

/banners/*
/city24/*
##A[href="/reklama"]

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 1:12 pm
by Hubird
anonymous74100 wrote:Most Latvian sites have endless foreign tracking scripts from .ee .se .ru and others.
That's fine, normally subscription authors do not worry about the domains the unwanted items originate from only the domain they can be seen on. It is fine to ad rules for ".ee .se .ru" domains if they were seen on Latvian sites.

Code: Select all

/banners/*
/city24/*
Obviously the choice is yours but these are both very generic and could very easily cause false positives. Not every banner is an ad (site heading banners for example).

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 1:17 pm
by anonymous74100
Hubird wrote: Not every banner is an ad (site heading banners for example).
OK, I'll remove

Code: Select all

/banners/*
, but I haven't seen a valid use of

Code: Select all

/city24/*

Re: how to get rid of the snails

Posted: Sun Jan 09, 2011 10:25 pm
by fanboy
"city24" doesn't sounds very ad-like to me.