Skip to content

Instantly share code, notes, and snippets.

@egrim
Forked from atommarvel/Rhapsody Playlist TextMaker
Last active August 29, 2015 14:15
Show Gist options
  • Save egrim/e6402afd9f4c6e69209e to your computer and use it in GitHub Desktop.
Save egrim/e6402afd9f4c6e69209e to your computer and use it in GitHub Desktop.
var trackNames = document.getElementsByClassName("name");
var artistNames = document.getElementsByClassName("album-name");
var final = "";
for (var track=0; track<trackNames.length; track++) {
final += artistNames[track].innerText + " - " + trackNames[track].innerText + "\n";
}
console.log(final);
@osal6
Copy link

osal6 commented Feb 19, 2015

stating that "inner text" is not valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment