Last active
January 30, 2024 22:29
-
-
Save cmckni3/3bcce8af74b2915a966a1d16484c7104 to your computer and use it in GitHub Desktop.
Download humble bundle items
This file contains hidden or 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
// Requires jQuery | |
// Paste into console | |
$('a[download]').toArray().map((a, index) => { | |
// delay by index seconds to prevent overloading browser on large bundles | |
return setTimeout(() => { | |
// simulate click event to trigger download | |
a.click(); | |
}, index * 1000) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment