Post Reply 
Imageshack.us: Direct Image
Jan. 05, 2009, 09:08 PM
Post: #1
Imageshack.us: Direct Image
Code:
[Patterns]
Name = "Imageshack.us: Direct Image"
Active = TRUE
URL = "$TYPE(htm)img[0-9]+.imageshack.us/my.php\?image="
Limit = 128
Match = "var url_image_path = 'img\0/\1/\2';"
Replace = "\k$STOP()"
          "var url_image_path = 'img\0/\1/\2';\r\n"
          "location.href = 'http://img\0.imageshack.us/img\0/\1/\2';\r\n"
          "</script>"

A pretty simple filter that automatically redirects to the full image, instead of viewing a thumbnail.

If you use NoScript, or have JavaScript disabled, you can change the replacement text to be:

Code:
\k$STOP()
var url_image_path = 'img\0/\1/\2';\r\n
</script>
<meta http-equiv="refresh" content="0;url=http://img\0.imageshack.us/img\0/\1/\2">

Example:

http://img380.imageshack.us/my.php?image...332gb4.jpg
(that's not my desktop; I found it randomly Wink)
Visit this user's website
Add Thank You Quote this message in a reply
Jan. 06, 2009, 01:34 PM
Post: #2
RE: Imageshack.us: Direct Image
That's useful, there are a lot of links everywhere linking to pictures stored in imageshack. Thanks Kye-U Wink
Add Thank You Quote this message in a reply
Jan. 06, 2009, 05:45 PM
Post: #3
RE: Imageshack.us: Direct Image
Thanks ! nice filter ! Big Teeth
Add Thank You Quote this message in a reply
Jan. 11, 2009, 03:57 AM
Post: #4
RE: Imageshack.us: Direct Image
Thanks for the replies!

I've made another version where it doesn't redirect to the image; instead it embeds the image on the same page:

Code:
[Patterns]
Name = "Imageshack.us: Direct Image"
Active = TRUE
URL = "$TYPE(htm)img[0-9]+.imageshack.us/my.php\?image="
Limit = 128
Match = "var url_image_path = 'img\0/\1/\2';"
Replace = "\k$STOP()"
          "</script>"
          "<img src="http://img\0.imageshack.us/img\0/\1/\2">"

I think I prefer this over the original filter Wink
Visit this user's website
Add Thank You Quote this message in a reply
Feb. 05, 2009, 02:36 PM
Post: #5
RE: Imageshack.us: Direct Image
Just what i needed, much appreciated Smile!
Add Thank You Quote this message in a reply
Jun. 15, 2009, 08:46 PM
Post: #6
RE: Imageshack.us: Direct Image
Don't know if this is a fault in my config, but right now this filter seems to have stopped working.

Please forgive my persisting newbiness regarding everything web- and proxo filter related things.Sad

I suspect the reason for it stopped working is the following :

Code:
+++GET 2423+++
GET /my.php?image=beforeapplytheme.png HTTP/1.1
Host: img81.imageshack.us
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.9.9
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

+++RESP 2423+++
HTTP/1.1 301 Moved Permanently
X-Powered-By: PHP/5.2.9
Set-Cookie: nopopunder=1; expires=Tue, 16-Jun-2009 02:36:50 GMT; path=/; domain=.imageshack.us
X-UA-Compatible: IE=EmulateIE7
Location: /i/beforeapplytheme.png/
Content-type: text/html
Content-Length: 0
Connection: close

The actual code page is now being re-directed to a different location.
You could probably do much better than I do, but I changed the filter, and now it works well, but again, my code is probably FAR from perfect.
Anyway, here is the one I use now :

Code:
[Patterns]
Name = "Imageshack.us: Direct Image - Toppy TEST"
Active = TRUE
URL = "$TYPE(htm)img[0-9]+.imageshack.us/i/"
Limit = 128
Match = "<link rel="image_src" href="http://img([0-9]+)\0.imageshack.us/img([0-9]+)/([0-9]+)\1/\2" />"
        ""
Replace = "\k$STOP()"
          "<img src="http://img\0.imageshack.us/img\0/\1/\2">"

Regarding this topic, wouldn't it be a good idea, If we could open a topic specifically to handle this kind of code filters for more screenshot storing sites ? Thinking about http://www.tinypic.com or http://www.imagevenue.com (The ones I mainly use, and which are quite commonly used), but as you know, there are tons of others.

It would be great if we could have a specific topic for these kinds of filters ?Smile!
Add Thank You Quote this message in a reply
Jul. 10, 2009, 06:08 PM (This post was last modified: Jul. 10, 2009 06:10 PM by Toppy.)
Post: #7
RE: Imageshack.us: Direct Image
Seems like imageshack changed things around.

Please, forgive my noobiness, if someone could make it better, please do so.

Below works for me atm :

Code:
Name = "Imageshack.us: Direct Image - Toppy Test"
Active = TRUE
URL = "$TYPE(htm)img[0-9]+.imageshack.us/i/"
Bounds = "<link*>"
Limit = 250
Match = "<link type="application/rss\+xml" href="\1.comments.xml" title="RSS" rel="alternate"/>"
Replace = "\k$STOP()"
          "<img src="\1">"
Add Thank You Quote this message in a reply
Jul. 11, 2009, 04:04 PM
Post: #8
RE: Imageshack.us: Direct Image
I did a small change to give more longevity to your filter. Many thanks Toppy Thumbs Up
Code:
Match = "*type="application/rss\+xml"*"
        "&*href="\1.comments.xml""
Add Thank You Quote this message in a reply
Jul. 11, 2009, 06:18 PM
Post: #9
RE: Imageshack.us: Direct Image
FYI - The Imageshack site was hacked. Currently their servers are not responding for me.
http://isc.sans.org/diary.html?storyid=6769
Add Thank You Quote this message in a reply
Jun. 28, 2010, 04:41 PM
Post: #10
RE: Imageshack.us: Direct Image
Imagecheck.us : Direct Image filter updated.

Code:
[Patterns]
Name = "Imageshack.us: Direct Image"
Active = TRUE
URL = "$TYPE(htm)img[0-9]+.imageshack.us/i/"
Bounds = "<link*>"
Limit = 250
Match = "<link rel="image_src" href="\1" />"
Replace = "\k$STOP()"
          "<img src="\1">"
Add Thank You Quote this message in a reply
Feb. 04, 2012, 04:55 PM (This post was last modified: Feb. 04, 2012 10:36 PM by Toppy.)
Post: #11
RE: Imageshack.us: Direct Image
*snip*
(since the Proxo has still lived a great life by the support of sidki, and nobody still interested in it, i've done the same as pretty much any of the last remnants, buried Proxo in a bed full of flowers. Thank you for the great help everyone, it was a great browsing episode, time to move on now.)
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: