Old Proxomitron Forums
Proxomitron Program - discussions welcome => Questions and Answers => Topic started by: lnminente on July 30, 2002, 02:39:39 AM
-
Hi all.
Many thanks and sorry my poor english.
I would like to make a filter to kill only offsite images that not have height or width specifieds, but I always get [Not match].
Edited by - lnminente on 16 Aug 2002 02:25:20
-
At the moment i achieve to match the images without specified size
Name = "INM-Block image without specified size"
Active = TRUE
Bounds = "<im(g|age)*>"
Limit = 256
Match = "*( height=| width=|>)"
Replace = "<img src="http://Local.ptron/clear.gif" >"
Now its too late. Other day i will try to match offsite hrefs with that
-
Well, here is the filter. (I'm still testing)
I make the replace code like the ad-filters of Sidki3003.
Name = "INM-Block image link without specified size"
Active = TRUE
Bounds = "$NEST(<a*,</a>)"
Limit = 256
Match = "<a[^>]++shref=($AV((http|ftp)(s|)://(^h)*))1*"
"(<im(g|age)[^>]++ssrc=$AV(3)*>&&*( height=| width=|>))"
"*2"
Replace = "<span class=prox style=display:inline;><center>"
"<a href=1 target="_top"><font color=crimson>[Link: </font></a>"
"<a href="3" target="_top"><font color=crimson>not size]</font></a>"
"</center></span>"
You can see how this filter works in this page:
http://www.falena.net/banners.html
If you prefer, use a list, to use this filter in selected sites only. Read the proxomitron help or search in this forum to know how make it.
Regards.
Update: Changed in replace code href="1" to href=1
Edited by - lnminente on 30 Aug 2002 16:23:51
-
i think you miss the asterisk in red:
"(<im(g|age)[^>]++ssrc=$AV(3)*>&&*( height=| width=|>)*)"
regards,
altosax.
-
Thanks Altosax, but i don't think so.
The filter looks inside of <im(g|age)*> like bounds
and only match completely if don't find height or width.
Try with that:
<a href='http://www.softonic.com/cds/CD_23_1/'><img src='/img/banners/b_184x70_cd23.gif' width='184' height='70' border='0'></a>
-
tryed and works.
i was confused from double &&.

altosax.
-
