Hot-Honeys



.

Author Topic: Chronos  (Read 24 times)

0 Members and 1 Guest are viewing this topic.

Offline firewaran

  • Moderator
  • *****
  • Joined: Apr 2016
  • Posts: 244
  • Reputation: 17
  • Gender: Male
Chronos
« on: December 29, 2016, 07:55 pm »
Chronos

Type: update

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"}
}