Skip to content

Instantly share code, notes, and snippets.

@brihter
Created November 21, 2018 08:15
Show Gist options
  • Save brihter/7924c8567dc011ed2131f7b6e318d486 to your computer and use it in GitHub Desktop.
Save brihter/7924c8567dc011ed2131f7b6e318d486 to your computer and use it in GitHub Desktop.
1001tracklist playlist export bookmarklet

bookmarklet (add this to your bookmarks):

javascript:(() => {let buffer = [];document.querySelectorAll('div[itemtype="http://schema.org/MusicPlaylist"] meta[itemprop=name]').forEach(n => buffer.push(n.attributes.content.value));document.querySelector('body').innerHTML = buffer.join('<br />')})()

source:

javascript:(function () {
  let buffer = []
  document
    .querySelectorAll('div[itemtype="http://schema.org/MusicPlaylist"] meta[itemprop=name]')
    .forEach(n => buffer.push(n.attributes.content.value))

  document.querySelector('body').innerHTML = buffer.join('<br />')
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment