Hot-Honeys



.

Author Topic: REQ: imgzen.com  (Read 419 times)

0 Members and 1 Guest are viewing this topic.

Offline buzzer

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: Canada
  • Posts: 15
  • Reputation: 0
  • Gender: Male

Offline Syfunkle

  • Administrator
  • *****
  • Joined: Aug 2015
  • Location: Home or Away
  • Posts: 189
  • Reputation: 6
Re: REQ: imgzen.com
« Reply #1 on: October 21, 2016, 05:17 pm »
This is another one that HH may frown upon. IHG - go at it!

Offline buzzer

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: Canada
  • Posts: 15
  • Reputation: 0
  • Gender: Male
Re: REQ: imgzen.com
« Reply #2 on: October 21, 2016, 05:30 pm »
This is another one that HH may frown upon. IHG - go at it!
Yeah, a few new posters have been using it a lot at MF. But if IHG can't support it, then we're not gonna allow it there either.  :unsure:

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 493
  • Images: 653
  • Reputation: 20
  • Gender: Male
Re: REQ: imgzen.com
« Reply #3 on: October 21, 2016, 11:26 pm »
Try this:

Topic: http://hot-honeys.com/index.php?topic=4850.0

Label: imgzen

Type: new

URL Pattern:

Code: [Select]
^http:\/\/imgzen.com\/.+?$
Search Pattern:

Code: [Select]
function(pageData, pageUrl) {
var id = pageUrl.match(/http:\/\/imgzen\.com\/(.+?)\.html/);
var req = new XMLHttpRequest();
req.open("POST", pageUrl, false);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
req.send("op=view&id="+id[1]+"&pre=1&next=Continue to image.");
var iUrl = (req.responseText).match(/src="(http:\/\/imgzen\.com\/.+?\.jpe?g)"/);
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
}

Enjoy! SD

Offline buzzer

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: Canada
  • Posts: 15
  • Reputation: 0
  • Gender: Male
Re: REQ: imgzen.com
« Reply #4 on: October 22, 2016, 02:38 am »
Excellent! Works a treat... thank you very much.  :happy:

Offline asteroid

  • Newbie
  • *
  • Joined: Aug 2016
  • Posts: 10
  • Reputation: 0
Re: REQ: imgzen.com
« Reply #5 on: October 24, 2016, 07:37 pm »
as always great job... thank you

Offline buzzer

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: Canada
  • Posts: 15
  • Reputation: 0
  • Gender: Male
Re: REQ: imgzen.com
« Reply #6 on: January 05, 2017, 05:24 pm »

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 493
  • Images: 653
  • Reputation: 20
  • Gender: Male
Re: REQ: imgzen.com
« Reply #7 on: January 05, 2017, 07:25 pm »
Yup, but firewaran is already one notch ahead of them,  :D try this:

Topic: http://hot-honeys.com/index.php?topic=4850.0

Label: imgzen

Type: update

URL Pattern:

Code: [Select]
^https?:\/\/imgzen.com\/.+?$
Search Pattern:

Code: [Select]
function(pageData, pageUrl) {
var PostData = pageData.match(/(?=<Form\b)((.|\r|\n)+?)<\/Form>/)[1].match(/<input.+?\/?>/g);
PostData = PostData.map(function(input){return input.match(/name=('|")(.+?)\1/)[2] + '=' + input.match(/value=('|")(.+?)\1/)[2]}).join('&');

var req = new XMLHttpRequest();
req.open("POST", pageUrl, false);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
req.send(PostData);

var iUrl = (req.responseText).match(/src=("|')(http:\/\/[^/]+\/(img|i)\/.+?)\1.+alt=("|')(.+\.jpe?g)\4/i);
return iUrl ? {imgUrl: iUrl[2], status: "OK"} : {imgUrl: null, status: "ABORT"}
}

Offline buzzer

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: Canada
  • Posts: 15
  • Reputation: 0
  • Gender: Male
Re: REQ: imgzen.com
« Reply #8 on: January 05, 2017, 07:46 pm »
Bingo! Works perfectly again, thank you.  :thumbsup: