June 29th, 2017, 02:13 PM | #31 | |
Vintage Idiot
Join Date: Feb 2012
Location: History
Posts: 22,135
Thanks: 226,717
Thanked 356,750 Times in 21,630 Posts
|
Quote:
Firstly, you'll want to get a static thumb rather than what you have there, for posting on vef. Secondly: Host label: pimpandhost URL Pattern: ^https?:\/\/(?:image\.|www\.)?pimpandhost\.com\/image\/.+?$ Search Pattern: Code:
function(pageData, pageUrl) { var iUrl = pageData.match(/img class=('|")normal\1 src=\1(https?:\/\/.+?)(_l)?(\.(gif|jpe?g|png|GIF|JPE?G|PNG))\1/); return iUrl ? {imgUrl: iUrl[2] + iUrl[4], status: "OK"} : {imgUrl: null, status: "ABORT"} } Last edited by effCup; July 7th, 2017 at 02:01 PM.. Reason: generalised quotes |
|
The Following 8 Users Say Thank You to effCup For This Useful Post: |
July 2nd, 2017, 10:18 AM | #32 |
Vintage Idiot
Join Date: Feb 2012
Location: History
Posts: 22,135
Thanks: 226,717
Thanked 356,750 Times in 21,630 Posts
|
A slight amendment (only to the function):
Host label: img.yt URL pattern: ^https?:\/\/img\.yt\/img-[\da-f]+\.html$ Search pattern: Code:
function(pageData, pageUrl) { var prot = pageUrl.match(/^(.+?)(:\/\/.+)/); var sec = "https" + prot[2]; var req = new XMLHttpRequest(); req.open("POST", sec, false); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); req.send("imgContinue=Continue+to+image+...+"); var iUrl = (req.responseText).match(/href=('|")(https?:\/\/[^/]+\/upload\/big\/.+?)(\.jpe?g)\1 title=\1(.+?)\1/i); if (!iUrl){ iUrl = (req.responseText).match(/href=('|")(https?:\/\/[^/]+\/upload\/big\/.+?)(\.jpe?g)\1/i); return iUrl ? {imgUrl: iUrl[2]+iUrl[3], status: "OK"} : {imgUrl: null, status: "ABORT"} } return (iUrl[4]) ? {imgUrl: iUrl[2]+iUrl[3], fileName: iUrl[4]+iUrl[3].replace(/\.jpe?g/i,".jpg"), status: "OK"} : {imgUrl: null, status: "ABORT"} } |
July 2nd, 2017, 11:09 AM | #33 |
Vintage Idiot
Join Date: Feb 2012
Location: History
Posts: 22,135
Thanks: 226,717
Thanked 356,750 Times in 21,630 Posts
|
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"} } Last edited by effCup; July 3rd, 2017 at 04:49 AM.. |
July 2nd, 2017, 12:16 PM | #34 |
Vintage Idiot
Join Date: Feb 2012
Location: History
Posts: 22,135
Thanks: 226,717
Thanked 356,750 Times in 21,630 Posts
|
An amendment (only to the function). It strips the spurious leading numbers in filenames. Limited testing so again please report any issues.
Host label: pixhost URL pattern: https?:\/\/(?:www\.)?pixhost\.org\/show\/.+ Search pattern: Code:
function(pageData, pageUrl) { var iUrl = pageData.match(/img id=('|")image\1.*?src=\1(https?:\/\/.+?\.pixhost\.org\/images\/\d+\/\d+_)(.+?)\1/); return iUrl ? {imgUrl: iUrl[2] + iUrl[3], fileName: iUrl[3], status: "OK"} : {imgUrl: null, status: "ABORT"} } Last edited by effCup; July 2nd, 2017 at 01:57 PM.. Reason: typo. |
July 2nd, 2017, 02:54 PM | #35 |
Vintage Idiot
Join Date: Feb 2012
Location: History
Posts: 22,135
Thanks: 226,717
Thanked 356,750 Times in 21,630 Posts
|
This has only been tested on the first two posts here. It's quite different from the existing pattern for that site in IHG, so a bit worrying? Maybe they changed their setup when they switched to https?
Host label: imgbb URL pattern: ^https?:\/\/ibb\.co\/.+$ Search pattern: Code:
function(pageData, pageUrl) { var iUrl = pageData.match(/a href=('|")(https?:\/\/image\.ibb\.co\/.+?\/.+?)\1 download=/); return iUrl ? {imgUrl: iUrl[2], status: "OK"} : {imgUrl: null, status: "ABORT"} } |
The Following 7 Users Say Thank You to effCup For This Useful Post: |
July 12th, 2017, 08:25 AM | #36 |
Member
Join Date: Jan 2013
Posts: 64
Thanks: 2,030
Thanked 615 Times in 63 Posts
|
Can anyone confirm whether the "Suck the current thread" option works?
Whenever I select it, I am first presented with the option to save the downloaded files in a folder of my choice. After I select the folder, a small box titled "JavaScript Application" with a blank information field and the request "Enter first page" over it opens. I copy and paste the URL of the first page of the current thread into the field and press the "OK" button, and after that, nothing ever happens. |
The Following 7 Users Say Thank You to beechcott For This Useful Post: |
July 12th, 2017, 04:16 PM | #37 | |
A caring nurturer
Join Date: May 2014
Location: At the fish, and goose soiree'.
Posts: 24,438
Thanks: 87,504
Thanked 410,102 Times in 25,054 Posts
|
Quote:
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Credit to all original posters, scanners, cappers, sites, etc. It takes considerable knowledge just to realize the extent of your own ignorance ~ Dr. Thomas Sowell
|
|
The Following 10 Users Say Thank You to Boatguy For This Useful Post: |
July 12th, 2017, 05:41 PM | #38 |
Member
Join Date: Jan 2013
Posts: 64
Thanks: 2,030
Thanked 615 Times in 63 Posts
|
Thank you! It works perfectly now. It's amazing how much easier this is to use than JDownloader. I had no idea what I was missing for so long.
|
The Following 8 Users Say Thank You to beechcott For This Useful Post: |
July 12th, 2017, 05:44 PM | #39 | |
A caring nurturer
Join Date: May 2014
Location: At the fish, and goose soiree'.
Posts: 24,438
Thanks: 87,504
Thanked 410,102 Times in 25,054 Posts
|
Quote:
Enjoy!
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Credit to all original posters, scanners, cappers, sites, etc. It takes considerable knowledge just to realize the extent of your own ignorance ~ Dr. Thomas Sowell
|
|
The Following 8 Users Say Thank You to Boatguy For This Useful Post: |
July 13th, 2017, 04:49 PM | #40 | |
Member
Join Date: Jan 2013
Posts: 64
Thanks: 2,030
Thanked 615 Times in 63 Posts
|
Quote:
Last edited by beechcott; July 13th, 2017 at 06:15 PM.. |
|
The Following 4 Users Say Thank You to beechcott For This Useful Post: |
|
|