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.