The Un-Official Proxomitron Forum

Full Version: Thumbnails for Google
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I came accross a Firefox extension (McSearchPreview) that grabs Alexa thumbnails for Google search results.
Here is the Proxomitron version of it: Smile!

Code:
[Patterns]
Name = "Google: Show Thumbnails"
Active = TRUE
URL = "$TYPE(htm)www.google."
Bounds = "<p class=$AV(g)*</a >"
Limit = 512
Match = "<p(*href=$AV(\2)*>)\1\3"
Replace = "<p style=height:82px;\1"
"<img style=border:0px;margin-right:8px;width:112px;height:82px; align=left"
" src=http://thumbnails.alexa.com/image_server.cgi?size=small&url=$ESC(\2)>\3"

Place it below any Google link-unprefixing filters if present.
You may also want to block Alexa's "picture coming soon" placeholder:

Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Location: Block Alexa's "No Pic" Thumbnail (In)"
URL = "thumbnails.alexa.com/"
Match = "http://thumbnails.alexa.com/thumbnails/images/no_pic_"
Replace = "http://local.ptron/killed.gif"

You may need to save and reload the config after merging, before the Location filter works.

sidki
Scary how much we think alike... [lol]
You guys could be twins! :o

*Gets back to studying for math, biology and accounting tests for tomorrow*
Reference URL's