View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Wed Apr 20, 2005 Post subject: how to make a wild filter for the "icon" ? |
|
|
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
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
with non-regexp filters it would just be, 3 simple filters:
_________________ • Latest Adblock!
• If all else fails try a really fresh install of Firefox. |
|
Back to top |
|
 |
NJH
Joined: 13 Nov 2003 Posts: 183 Location: Hampshire, England
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
The third filter is redundant as one of the first two will have been matched first. |
|
Back to top |
|
 |
bene

Joined: 17 Aug 2004 Posts: 123 Location: Home, I think
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
And the simple single-line regex equivalent, if you want to keep it all together:
|
|
Back to top |
|
 |
kstahl Support
Joined: 02 Jan 2004 Posts: 1202 Location: Stockholm, Sweden
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
That will not block _icon_.
Follow the advice of Zachariah and NJH:
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. Gecko/20051111 Firefox/1.5 |
|
Back to top |
|
 |
bene

Joined: 17 Aug 2004 Posts: 123 Location: Home, I think
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
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 |
|
 |
Zachariah

Joined: 21 Jul 2004 Posts: 703 Location: Earth
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
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 |
|
 |
kstahl Support
Joined: 02 Jan 2004 Posts: 1202 Location: Stockholm, Sweden
|
Posted: Wed Apr 20, 2005 Post subject: |
|
|
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. Gecko/20051111 Firefox/1.5 |
|
Back to top |
|
 |
Paulfox
Joined: 08 Mar 2005 Posts: 87
|
Posted: Fri Apr 22, 2005 Post subject: |
|
|
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 |
|
 |
|