Skip to content

Instantly share code, notes, and snippets.

@rebane2001
Last active June 8, 2022 16:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rebane2001/26c7c95f213c0a68c1823f1524149ded to your computer and use it in GitHub Desktop.
Save rebane2001/26c7c95f213c0a68c1823f1524149ded to your computer and use it in GitHub Desktop.
Automatically downloads every Dropbox subfolder (and file) as a zip file.
/*
Sometimes, Dropbox folders are too huge and attempting to download them as zip results in the "The zip file is too large." error.
This script automatically downloads every subfolder (and file) as a zip file to work around this issue.
To use it, just open the Console (F12) on the Dropbox page, paste this script in, and run it.
*/
document.querySelectorAll("a").forEach(e => {
if (e.href.includes("dl=0")){
window.open(e.href.replace("dl=0","dl=1"));
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment