Skip to content

Instantly share code, notes, and snippets.

@hesenger
Created May 2, 2017 18:46
Show Gist options
  • Save hesenger/0e12bdd11c840febd2d5537fee17ca4c to your computer and use it in GitHub Desktop.
Save hesenger/0e12bdd11c840febd2d5537fee17ca4c to your computer and use it in GitHub Desktop.
List music names from Spotify playlist.
// paste code on console from chrome in a playlist page like this: https://open.spotify.com/user/spotify/playlist/37i9dQZF1DX2e5iuTsMOoD
var eles = document.getElementsByClassName('track-name');var list = '';
for(var i = 0; i < eles.length; i++) {list+=eles[i].innerText + '\n';}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment