 |
The Adblock Project Pull up a seat ...stay a while.
|
View previous topic :: View next topic |
Author |
Message |
Dr.Seltsam2

Joined: 21 Oct 2006 Posts: 1
|
Posted: Sat Oct 21, 2006 Post subject: Filter "numbers" |
|
|
Hi,
i want to block images.
Possible adresses coulb be:
http://www.gmx.net/images/108/3040108,h=86,pd=2,tlr=true,w=145.jpg
http://www.gmx.net/images/780/688780,h=86,pd=253,tlr=false,w=145.jpg
http://www.gmx.net/images/138/3094138,h=86,pd=2,w=145.jpg
The "145.jpg" at the end could change.
I would like to create a adblock filter which filters everything like
http://www.gmx.net/images/
Then three numbers
(1-9,1-9,1-9)
then a "/"
then
*.jpg | *.gif
But I am to bad with regex. http://en.wikipedia.org/wiki/Regex is no help to me yet.
And ideas?
Greetings
D |
|
Back to top |
|
 |
Freeware-User

Joined: 22 Jan 2006 Posts: 12 Location: Portugal
|
Posted: Sun Oct 22, 2006 Post subject: |
|
|
For that use somting like:
/\d{3}\.(jpg|gif)/
\d - is for block digits
{3} - number of digits
That filter will block all address with 3 consecutive digits. That is not a good idea. For a more effective block only for some site use:
/gmx.net*\d{3}\.(jpg|gif)/
That only block in this site (gmx.net).
Im using that filter to block banner images based in numbers:
/\d{3}x\d{2,3}|\d{2}x\d{3}/
They block ???x??? and ???x?? and ??x??? (? = one number), like 200x120, 20x120 or 60x125. But they don't block ??x?? (that ones sometimes are buttons on pages)..
Cya _________________ Sorry for my english... /\ Who does not know is as who does not see... | Each head its sentence.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) BonEcho/2.0b1
Adblock 0.5.3.043 |
|
Back to top |
|
 |
|
|
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
|