Quote:
Originally Posted by teodz1984
|
It's just the case of the file suffix. This works, although whether it's the best approach.
Code:
function(pageData, pageUrl) {
var iUrl = pageData.match(/img class="normal" src="(https?:\/\/.+?)(_l)?(\.(jpe?g|png|JPE?G|PNG))"/);
return iUrl ? {imgUrl: iUrl[1] + iUrl[3], status: "OK"} : {imgUrl: null, status: "ABORT"}
}