Skip to content

Instantly share code, notes, and snippets.

@jimkang
Last active January 1, 2024 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimkang/692ad0fa11a9314c36e1da462122f6d3 to your computer and use it in GitHub Desktop.
Save jimkang/692ad0fa11a9314c36e1da462122f6d3 to your computer and use it in GitHub Desktop.
Download everything from a SoundCloud playlist
// 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