View Single Post
Old July 16th, 2017, 12:32 PM   #45
effCup
Vintage Idiot
 
effCup's Avatar
 
Join Date: Feb 2012
Location: History
Posts: 22,143
Thanks: 226,789
Thanked 357,031 Times in 21,638 Posts
effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+
Default

Quote:
Originally Posted by berangus View Post
would their https address as opposed to http make any difference in derailing the DL?

https://s18.pixxxels.cc/toadi8jt5/GLQ_Isabella_111.jpg

https://s13.pixxxels.cc/77r548pxj/Me...edium_0027.jpg
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"}
}

Last edited by effCup; July 16th, 2017 at 12:39 PM..
effCup is offline   Reply With Quote
The Following 10 Users Say Thank You to effCup For This Useful Post: