Jump to content

Download All Files UserScript


Recommended Posts

Posted (edited)

Hey, please remove if this isn't allowed.  Used the site for a few months just downloading things, and well some people have made things that are multiple of files, up to hundreds, and if I want them all it took awhile to download them. 

So I made a simple userscript that adds a download all button (and give an estimate download size of all files) if the download page ends in "?do=download" (so on the green "Download This File" button you right click to open in new tab) to prevent the code from having to open the menu multiple times. 

 

The code just simply finds all the buttons via the class and loops click each button (three seconds between each clip) 

The time between can be changed, but bigger the files, the longer (at least chrome) needs before the next download, Three seconds is good enough for me, but if others actually start using it, I'll add an automatic detection to make it faster on smaller files.

 

If it's 20+ files, I suggest making sure you don't have "chose directory for each download" on in your browser's settings.

Link To Github Code

downloadAll.jpg

 

Update 0.6
 

  • Added Progress Bar : Thank SleazyFork user Viatana 35 for the idea
  • Added JSZip : No longer need to change download settings and download 180 separate files. All non-external download links are zipped into Title/Title.zip
    • Meaning downloads that aren't on "loverslab" domain aren't included, they usually require more user interaction on those pages, IE Wicked Whims
    • Title/Title means the entire collection's name is the Zip file's name, but it also has all the files in the zip file inside a folder of the same name, for easy extraction.

 

 

downloadSample.png

Zipping.png

Edited by imnotjackie
Updated scripttttt
  • 3 months later...
  • 1 month later...
  • 2 weeks later...
Posted
On 5/18/2022 at 3:34 AM, imnotjackie said:

Hey, please remove if this isn't allowed.  Used the site for a few months just downloading things, and well some people have made things that are multiple of files, up to hundreds, and if I want them all it took awhile to download them. 

So I made a simple userscript that adds a download all button (and give an estimate download size of all files) if the download page ends in "?do=download" (so on the green "Download This File" button you right click to open in new tab) to prevent the code from having to open the menu multiple times. 

 

The code just simply finds all the buttons via the class and loops click each button (three seconds between each clip) 

The time between can be changed, but bigger the files, the longer (at least chrome) needs before the next download, Three seconds is good enough for me, but if others actually start using it, I'll add an automatic detection to make it faster on smaller files.

 

If it's 20+ files, I suggest making sure you don't have "chose directory for each download" on in your browser's settings.

Link To Github Code

downloadAll.jpg

 

Hey, thanks very much for this it helps a lot!!

 

You might wanna know that using the default 3sec delay (on Firefox) only downloads between 151 and 156 files of the 158 files on Kritical´s Naughty BDSM & Fetish Collection. Using 5 sec instead works fine tho!

  • 2 weeks later...
  • 2 weeks later...
Posted
On 10/18/2022 at 3:59 PM, Luanapt2 said:

 

Hey, thanks very much for this it helps a lot!!

 

You might wanna know that using the default 3sec delay (on Firefox) only downloads between 151 and 156 files of the 158 files on Kritical´s Naughty BDSM & Fetish Collection. Using 5 sec instead works fine tho!

Thank you for posting that, I never even thought of testing the delay on other browsers. 

  • 2 weeks later...
Posted

I installed it correctly, but for some reason it downloaded multiples of each file. I was using it to download the Kritical objects, and it downloaded over 1500+ files/15+ GB. 

  • 3 months later...
  • 4 months later...
Posted (edited)

There is now a new version of this script that works as of me writing this comment.
 

On 10/18/2022 at 10:59 PM, luanabuthorny said:

[snip]

 

On 11/1/2022 at 8:23 PM, NestyG said:

[snip]

 

Funny that the need for this functionality exists pretty much soley due to a specific obtuse creator that refuses to package his work properly. ?

Edited by VladBoss
spacing
  • 4 months later...
  • 5 months later...
  • 2 weeks later...
  • 7 months later...
Posted

Sorry to say but I'm not getting the issues you two had. Besides the estimated size it's working perfectly fine for me.
Did you make sure to open it in a new tab? (Right click Download This File and open in new tab) 

As editing the pop-up window when you click it is a lot harder to do then editing a static site so I made it only work if you open it as it's own page and not the pop-up. image.png.8ce925b067aeb6a727a7909cdf5a91c1.png

  • 6 months later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...