Author Topic: ImageFuck  (Read 1271 times)

darkriverguide

  • Newbie
  • *
  • Joined: Nov 2012
  • Posts: 4
    • View Profile
ImageFuck
« on: November 19, 2012, 10:55:37 AM »
I'm still wading through the "How to Edit the Host File" pdf so, in the meantime, is there any chance of getting IHG to work with the site imagefuck.com?
Thanks, in advance.

Rookie

  • Sr. Member
  • ****
  • Joined: Jun 2010
  • Posts: 494
    • View Profile
Re: ImageFuck
« Reply #1 on: November 19, 2012, 01:32:22 PM »
URL Pattern:
Code: [Select]
^http:\/\/www\.imagefuck\.com\/picture\/\d+\/$
Search Pattern:
Code: [Select]
function(pageData, pageUrl) {
var retVal = {};

var iUrl = pageData.match(/<img.+?src="http:\/\/server\.imagefuck\.com\/view\.php\?pic=[^>]+>/);

if (!iUrl) {
retVal.imgUrl = null;
retVal.status = "ABORT";
}
else {
retVal.imgUrl = iUrl[0].match(/src="([^"]+)"/)[1];
retVal.fileName = iUrl[0].match(/alt="([^"]+)"/)[1].replace(/Porn Picture (.+?) Sex ImageFuck/,"$1");
retVal.status = "OK";
}

return retVal;
}

darkriverguide

  • Newbie
  • *
  • Joined: Nov 2012
  • Posts: 4
    • View Profile
Re: ImageFuck
« Reply #2 on: November 20, 2012, 10:06:22 AM »
Fantastic.
In the time I have left over every day for reading, studying, entertainment, etc., it would have taken me days to figure this out (if I ever did) and you do it in less than three hours.
Thank you, very much.