Skip to content

Instantly share code, notes, and snippets.

@angeloped
Created November 19, 2019 17:21
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 angeloped/0f08194c3c0e3739475290085a12b070 to your computer and use it in GitHub Desktop.
Save angeloped/0f08194c3c0e3739475290085a12b070 to your computer and use it in GitHub Desktop.
The bandcamp pirates. ;P
/*
* title: The bandcamp pirates.
* coded by: Bryan Angelo Pedrosa
* date: 19 November 2019
*/
/* to download album (free version) */
window.location=TralbumData["freeDownloadPage"]
/* to download current track (all)*/
document.location=TralbumData["trackinfo"][0]["file"]["mp3-128"]
/* select which music you wanna download; '<n>' is the array index of music on the tracklist (all) */
document.location=TralbumData["trackinfo"][<n>]["file"]["mp3-128"]
/* bypass expiration checkpoint of a single track; will only play the song in the background haha (all) */
fr=document.createElement("iframe");fr.src=TralbumData["trackinfo"][0]["file"]["mp3-128"];document.body.appendChild(fr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment