Post Reply 
[Req] Direct link to images hosted on imageshack
Sep. 05, 2006, 12:50 AM
Post: #1
[Req] Direct link to images hosted on imageshack
Is it possible to make a filter that creates a direct link to the images hosted on Imageshack so that when we click on the thumbnail, it opens only the image instead of opening a html page with the image embedded in it?

An extension for firefox called de-imageshack is able to link to the image directly.
It is available here but I prefer using Opera, so it is of no use to me.

Here is an example of a webpage containing images hosted on Imageshack. I have attached a screenshot of the "de-imageshacked" version of the same webpage.

Please take a look at the statusbar in the screenshot. It shows the direct link to one of the images (the one under the tooltip/mouse pointer).

Thankyou for reading Cheers


Attached File(s)
.png  deimageshack.png (Size: 178.2 KB / Downloads: 788)
Add Thank You Quote this message in a reply
Sep. 05, 2006, 01:17 PM
Post: #2
RE: [Req] Direct link to images hosted on imageshack
Code:
<a href="http://img359.exs.cx/my.php?loc=img359&image=2005dec14shakira38tw.jpg" target="_top">
<img src="http://img359.exs.cx/img359/4807/2005dec14shakira38tw.th.jpg" border="0" alt="Shakira at justpictures.info" />
[/url]
Looks like you need to remove ".th" or "th." from the thumbnail's address and use that for the linked file or
Code:
<a href="http://img359.exs.cx/img359/4807/2005dec14shakira38tw.jpg" target="_top">
<img src="http://img359.exs.cx/img359/4807/2005dec14shakira38tw.th.jpg" border="0" alt="Shakira at justpictures.info" />
[/url]
So you could try
Code:
[Patterns]
Name = "Imageshack link to pics"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "<a*[/url]"
Limit = 256
Match = "\\1href=$AV(http://img[0-9]*)(*src=$AV(\\4.th(.jpg)\\5))\\2\\3"
Replace = "\\1href="\\4\\5"\\2\\3"

HTH
Add Thank You Quote this message in a reply
Sep. 05, 2006, 01:37 PM
Post: #3
RE: [Req] Direct link to images hosted on imageshack
I came up with this, but JJoe beat me to posting (due to socket errors upon returning to the forum)...

Name = "de-ImageShack [maxbaggi test filter #1] {Prox(Fox|Rocks)}"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<a\s*<(/a>|(^(^a\s)))"
Limit = 512
Match = "\1http://\2/*loc=\3\&*image=\4.jpg\5img*//*/*/\6/*.th.jpg\7"
Replace = "\1http://\2/\3/\6/\4.jpg\5img src="http://\2/\3/\6/\4.th.jpg\7"

(F' the forum code command, it was "swallowing" my 'stack digits'...)

That will work for the page you cited, but being unfamiliar with "ImageShack Hostings", we'll see how it fares...
Add Thank You Quote this message in a reply
Sep. 05, 2006, 01:40 PM
Post: #4
RE: [Req] Direct link to images hosted on imageshack
follow-up: tried JJoe's and it is a much better approach...
Add Thank You Quote this message in a reply
Sep. 05, 2006, 08:59 PM
Post: #5
Big Grin RE: [Req] Direct link to images hosted on imageshack
Thank you so much JJoe and ProxRocks for the filters Hail I'm using the one created by JJoe and it is working great. Hopefully similar filters for other popular image hosting websites (like Imagevenue) will also be created. Cheers
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: