View Single Post
Old July 16th, 2017, 03:52 AM   #43
berangus
NotTheDroidURLookingFor
 
berangus's Avatar
 
Join Date: Oct 2010
Posts: 6,193
Thanks: 37,045
Thanked 141,429 Times in 6,188 Posts
berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+berangus 500000+
Default

Quote:
Originally Posted by effCup View Post
An early attempt at pixxxels. It likely needs additional testing so please report any issues with it.

Host label: pixxxels
URL pattern: ^https?:\/\/pixxxels\.org\/image\/.+$
Search pattern:
Code:
function(pageData, pageUrl) {
    var iUrl = pageData.match(/img id=('|")main-image\1 src=\1(.+?)\1/);
    return iUrl ? {imgUrl:  iUrl[2], status: "OK"} : {imgUrl: null, status: "ABORT"}
}
edit: the above seems to work only on with images that have already first been manually viewed in a browser window.
From my testing, this code for pixxxels identifies the files properly and queues them up but fails to download them. I have not tried manually viewing first as that rather defeats the purpose.

Here are actual JPG image locations for a couple different files. I know very little about this kind of coding, but 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
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
berangus is offline   Reply With Quote
The Following 6 Users Say Thank You to berangus For This Useful Post: