Old Proxomitron Forums

Proxomitron Program - discussions welcome => Questions and Answers => Topic started by: lnminente on July 30, 2002, 02:39:39 AM

Title: Offsite images without specified size
Post 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
Title: Offsite images without specified size
Post by: lnminente on August 16, 2002, 02:00:04 AM
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

 
Title: Offsite images without specified size
Post by: lnminente on August 27, 2002, 11:15:53 PM
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
Title: Offsite images without specified size
Post by: altosax on August 28, 2002, 12:31:03 AM
i think you miss the asterisk in red:

"(<im(g|age)[^>]++ssrc=$AV(3)*>&&*( height=| width=|>)*)"

regards,
altosax.

 
Title: Offsite images without specified size
Post by: lnminente on August 28, 2002, 12:42:42 AM
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>



 
Title: Offsite images without specified size
Post by: altosax on August 28, 2002, 01:03:59 AM
tryed and works.
i was confused from double &&.


altosax.

 
Title: Offsite images without specified size
Post by: lnminente on August 28, 2002, 03:15:17 PM