Quote:
Originally Posted by berangus
|
No, the URL Pattern already accommodates both http & https. Thanks very much for those two
direct image links as that was
very helpful in exposing an aspect of the site's behaviour.
This worked for me; passed all tests from posts
here.
Host Label: pixxxels
URL Pattern: ^https?:\/\/(?:s\d+\.)?pixxxels\.org\/image\/.+$
Search Pattern:
Code:
function(pageData, pageUrl) {
var iUrl = pageData.match(/src=('|")(https?:\/\/s\d+\.pixxxels\.org\/.+?\.jpg)\1/);
return iUrl ? {imgUrl: iUrl[2] + "?dl=1", status: "OK"} : {imgUrl: null, status: "ABORT"}
}