Skip to content

Instantly share code, notes, and snippets.

@Vap0r1ze
Last active December 2, 2021 10:25
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 Vap0r1ze/d4411a610050559223272c339a0c81d7 to your computer and use it in GitHub Desktop.
Save Vap0r1ze/d4411a610050559223272c339a0c81d7 to your computer and use it in GitHub Desktop.
Rip tracklist from various stores for MusicBrainz
$$('.songs-list-row').map((e, i) => `${i + 1}. ${$('.songs-list-row__song-name', e).innerText} - ${$('.songs-list-row__by-line', e).innerText} (${$('.songs-list-row__length', e).innerText})`).join('\n')
$$('[data-testid="tracklist-row"]').map((e, i) => `${i + 1}. ${$('[data-testid="tracklist-row"] > div:nth-child(2) > div > :nth-child(1)', e).innerText} - ${$('[data-testid="tracklist-row"] > div:nth-child(2) > div > :nth-child(2)', e).innerText} (${$('[data-testid="tracklist-row"] > div:nth-child(3)', e).innerText})`).join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment