No wildcards for element hiding?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
elemental

No wildcards for element hiding?

Post by elemental »

Under Element hiding: basic rules there's a note that says:
Element hiding works very differently from normal filters. This has the implication that no wildcards are supported in element hiding rules,
If wildcards are not supported, then how is #*(sponsorad) a valid rule? Or am I missing sth here, that * is not wildcard here?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Yeah, I see that that page is a bit outdated.

Funny, I was actually contemplating writing a filter tutorial with screenshots today. I may actually do one tonite or tomorrow as the info about creating filters is rather vague and outdated. What keeps stopping me is the fact that once I start, it will be a long and intensive article that I want to come out right. Making one would stop a lot of questions about filters and show how to properly create strings for ABP (I hope). I just need to be in a sharp mood when I do it .... been a lot going on with all the ABP publicity and moving my forum lately. But it is something I want to do now.

Obviously wildcards ARE allowed in element-hide rules (just not allowed in the domain part). Wladimir should probably update that line.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Post by MonztA »

User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

:lol: :lol: :lol:

Hey ... who wrote that?! I forgot all about that one.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Post by MonztA »

:lol:
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Re: No wildcards for element hiding?

Post by chewey »

elemental wrote:Under Element hiding: basic rules there's a note that says:
Element hiding works very differently from normal filters. This has the implication that no wildcards are supported in element hiding rules,
If wildcards are not supported, then how is #*(sponsorad) a valid rule? Or am I missing sth here, that * is not wildcard here?
It's not in an invalid position ;-)

What the above is trying to say is that something like #*(spon*ad*ert) would not be valid.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

I dunno, chewey. It DOES specifically say that:
NO wildcards are supported in element hiding RULES
That says that anything that is "*" is invalid ANYWHERE in the rule. :?

***EDIT
You could make the statement that anything BEFORE the rule does not support wildcards as the domain is really not considered part of the rule ... it just tells ABP where the rule is applied. The actual rule consists of anything AFTER the "#" (which, unfortunately is where you CAN use wildcards) :wink:
User avatar
chewey
Posts: 501
Joined: Wed Jun 14, 2006 10:34 pm
Location: somewhere in Europe

Post by chewey »

rick752 wrote:I dunno, chewey. It DOES specifically say that:
NO wildcards are supported in element hiding RULES
That says that anything that is "*" is invalid ANYWHERE in the rule. :?
That's why there is a "trying" in my sentence. ;-)

This should indeed be fixed.
Locked