View Single Post
Old March 1st, 2018, 02:29 AM   #136
effCup
Vintage Idiot
 
effCup's Avatar
 
Join Date: Feb 2012
Location: History
Posts: 22,131
Thanks: 226,708
Thanked 356,710 Times in 21,626 Posts
effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+
Default

Alright, please test the following and report here any problems/errors found. First two lines are unchanged, only the function needs amending.

host: pimpandhost
URL Pattern: ^https?:\/\/(?:image\.|www\.)?pimpandhost\.com\/image\/.+?$
Code:
function(pageData, pageUrl) {
	pageUrl = pageUrl.match(/^https?:\/\/(?:image\.|www\.)?pimpandhost\.com\/image\/\d+/);	
	var req = new XMLHttpRequest();
	req.open("GET", pageUrl + "?size=original", false);
	req.send();
	var iUrl = (req.responseText).match(/img class=('|")original\1 src=('|")(https?:\/\/.+?)\2/);
	return iUrl ? {imgUrl:  iUrl[3], status: "OK"} : {imgUrl: null, status: "ABORT"}
}
effCup is offline   Reply With Quote
The Following 8 Users Say Thank You to effCup For This Useful Post: