Last active
January 1, 2024 22:44
-
-
Save jimkang/692ad0fa11a9314c36e1da462122f6d3 to your computer and use it in GitHub Desktop.
Download everything from a SoundCloud playlist
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
// Paste this into the console and get ready to click "Save" in response to the save dialog a bunch of times. Or better yet, disable asking where to save in your browser. | |
var buttons = document.querySelectorAll('.sc-button-more') | |
var index = 0; | |
function moreNext() { var more = buttons[index]; more.click(); ++index; setTimeout(dl, 500); } | |
function dl() { var dlButton = document.querySelector('.sc-button-download'); dlButton.click(); if (index < buttons.length) { setTimeout(moreNext, 100);}} | |
moreNext(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment