The Un-Official Proxomitron Forum

Full Version: [Req] Help with Matching Expression
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I need a filter that removes "_thumb" from the end of the url but keep the rest of the url intact.

Examples:
hxxp://www.somesite.com/uploads/6038/post-6038-1120689036_thumb.jpg
hxxp://www.somesite.com/uploads/6038/post-6038-1120689036.jpg

hxxp://www.somesite.com/uploads/6038/post-6038-1120689447_thumb.jpg
hxxp://www.somesite.com/uploads/6038/post-6038-1120689447.jpg

hxxp://www.somesite.com/uploads/6538/post-6538-1127634810_thumb.jpg
hxxp://www.somesite.com/uploads/6538/post-6538-1127634810.jpg

hxxp://www.somesite.com/uploads/6538/post-6538-1127634812_thumb.jpg
hxxp://www.somesite.com/uploads/6538/post-6538-1127634812.jpg

Thanks

Guest

Name = "Remove _thumb"
Active = TRUE
Bounds = "<img*>|<a*</a>"
Limit = 256
Match = "(.somesite.com*)\1_thumb"
Replace="\1"
This filter doesn't seem to work.
The site in question is:
http://www.hqparadise.hu/index.php?showforum=19
(You need to register to see the images)

Just click on any thread. The thumbnails point to links like hxxp://www.hqparadise.hu/index.php?act=Attach&m=1&type=post&id=872859
When I click on the thumbnail I'm taken to a page in which the full-sized image is embedded.
Now my intention is to create a direct link to the full-sized image so that when I click on the thumbnail, it opens only the image instead of opening an html page with the image embedded in it.
I use a Firefox extension called De-ImageShack. It converts Imageshack page links to Image links. One can also create custom filters. I created one for hqparadise.hu (I really don't know what I'm doing)

This is how it looks (see screenshot)
Link: ^http://www[.]hqparadise[.]hu/index[.]php[?]act=Attach&m=1&type=post&id=[0-9]
Image-Part: &m=1&
Image-Replacement: &

Now when I replace the "&m=1&" with "&", the thumbnails point to hxxp://www.hqparadise.hu/uploads/25642/post-25642-1204791908_thumb.jpg
If I manually remove the "_thumb" from the end of the link, I get the full-sized image.

Example:

Post with thumbnailed images (Attachments)
hxxp://www.hqparadise.hu/index.php?showtopic=66980#

One of the thumbnails points to
hxxp://www.hqparadise.hu/index.php?act=Attach&m=1&type=post&id=872859

After "De-Imageshacking", the thumbnail points to
hxxp://www.hqparadise.hu/uploads/25642/post-25642-1204791908_thumb.jpg

After manually removing "_thumb", I get the full-sized image
hxxp://www.hqparadise.hu/uploads/25642/post-25642-1204791908.jpg

So you see I gotta jump through a lot of hoops to get to the good stuff. Smile!

System Configuration:
OS: GNU/Linux Ubuntu 7.10
Browser: Firefox
Proxomitron: Naoko 4.5 with Sidki Config Set (the best config set, IMHO)

To Admins:
Please delete this post if it violates the forum rules.
Reference URL's