Created
October 27, 2014 22:46
-
-
Save Calvein/cafd35221b40b741e0da to your computer and use it in GitHub Desktop.
Download all files from a basecamp "View all of these files at once"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var as = document.querySelectorAll('br + a') | |
for (var i = 0, len = as.length; i < len; i++) { | |
var a = _ref[i] | |
a.setAttribute('download', a.textContent) | |
a.click() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment