Skip to content

Instantly share code, notes, and snippets.

@palikhov
Created February 11, 2019 08:14
Show Gist options
  • Save palikhov/1a456e4e7c32a2563acd1f9b048039e2 to your computer and use it in GitHub Desktop.
Save palikhov/1a456e4e7c32a2563acd1f9b048039e2 to your computer and use it in GitHub Desktop.
Fanburst MP3 Link Grabber: Copies a newline-separated text dump containing links to all the Fanburst tracks in a game to your clipboard. You can then paste the links into e.g. Tab Save (https://chrome.google.com/webstore/detail/tab-save/lkngoeaeclaebmpkgapchgjdbaekacki) to mass-download them. This method avoids "Cross-Origin" errors.
copy(Jukebox.playlist.filter(it => it.attributes.source === "Fanburst").map(it => `https://api.fanburst.com/tracks/${it.attributes.track_id}/stream?client_id=0fc1df8b-40a4-4391-b0f7-d0257edb6634`).join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment