The Adblock Project Forum Index The Adblock Project
Pull up a seat ...stay a while.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to make a wild filter for the "icon" ?

 
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Apr 20, 2005    Post subject: how to make a wild filter for the "icon" ? Reply with quote

the icon image that is contain "icon" this work.
but it is only need to block that have "_" before or after "icon"

that mean
"icon" :non block
"_icon" or "icon_" or "_icon_" :block
Back to top
Zachariah



Joined: 21 Jul 2004
Posts: 703
Location: Earth

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

with non-regexp filters it would just be, 3 simple filters:
Code:
_icon
icon_
_icon_

_________________
Latest Adblock!

If all else fails try a really fresh install of Firefox
.
Back to top
View user's profile Send private message
NJH



Joined: 13 Nov 2003
Posts: 183
Location: Hampshire, England

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

The third filter is redundant as one of the first two will have been matched first.
Back to top
View user's profile Send private message
bene



Joined: 17 Aug 2004
Posts: 123
Location: Home, I think

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

And the simple single-line regex equivalent, if you want to keep it all together:
Code:
/(_icon|icon_)/
Back to top
View user's profile Send private message Visit poster's website
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

That will not block _icon_.

Follow the advice of Zachariah and NJH:
Code:
_icon
icon_


Be careful with false positives though. Those filters will also block "_iconsarecoolandsoisschool" etc.
_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
bene



Joined: 17 Aug 2004
Posts: 123
Location: Home, I think

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

kstahl, you've misread my regex. It will indeed match "_icon_", because it's really just the "_icon" and "icon_" filters with "OR" between them. Exactly the same behavior, squished into one line.
Back to top
View user's profile Send private message Visit poster's website
Zachariah



Joined: 21 Jul 2004
Posts: 703
Location: Earth

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

NJH wrote:
The third filter is redundant as one of the first two will have been matched first.
yeah -- getting enough sleep is a good idea




(reminder to self: don't post when tired)
_________________
Latest Adblock!

If all else fails try a really fresh install of Firefox
.
Back to top
View user's profile Send private message
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Wed Apr 20, 2005    Post subject: Reply with quote

bene wrote:
kstahl, you've misread my regex. It will indeed match "_icon_", because it's really just the "_icon" and "icon_" filters with "OR" between them. Exactly the same behavior, squished into one line.


D'oh. Of course.

Like Zachariah, I should probably get some sleep too.
_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
Paulfox



Joined: 08 Mar 2005
Posts: 87

PostPosted: Fri Apr 22, 2005    Post subject: Reply with quote

Sleep or not . . . . as far as I'm concerned you're BOTH geniuses and thank God for both of you and all your contributions!!
_________________
Paul
AdBlock PLUS - matched only by FX itself in innovation and power! If you're only going to have ONE extension . . . . . ! ! !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group