View Single Post
Old April 6th, 2017, 12:49 PM   #2009
effCup
Vintage Idiot
 
effCup's Avatar
 
Join Date: Feb 2012
Location: History
Posts: 22,138
Thanks: 226,735
Thanked 356,802 Times in 21,632 Posts
effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+
Default

Hmm, OK, the following worked on a test for me just now:
Code:
function(pageData, pageUrl) {
	var iUrl = pageData.match(/img class="normal" src="(https?:\/\/.+?)(_l)?(\.(jpe?g|png))"/);
	return iUrl ? {imgUrl:  iUrl[1] + iUrl[3], status: "OK"} : {imgUrl: null, status: "ABORT"}
}
I still think it would be preferable to somehow access the "?size=original" page rather than mess with the src link, but.

Last edited by effCup; April 6th, 2017 at 12:55 PM..
effCup is offline   Reply With Quote
The Following 3 Users Say Thank You to effCup For This Useful Post: