Skip to content

Instantly share code, notes, and snippets.

@urielaero
Created March 22, 2022 04:58
Show Gist options
  • Save urielaero/4100dfe64412bb6abe151d0baff4105f to your computer and use it in GitHub Desktop.
Save urielaero/4100dfe64412bb6abe151d0baff4105f to your computer and use it in GitHub Desktop.
Spotify Playlist To Text 21-mar-2022
// CTRL + SHIFT + C and run:
const songs = [...document.querySelectorAll("[role='row']")].map((e) => {
const childs = e.firstChild.childNodes[1];
if (!childs) { return ''; }
const song = e.firstChild.childNodes[1].childNodes[1];
return song.firstChild.textContent + " - " + song.childNodes[1].textContent;
}).join("\r\n")
console.log(songs);
@urielaero
Copy link
Author

Tool that allows to transfer from the text: tunemymusic useful when you don't have a Spotify account.

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