Skip to content

Instantly share code, notes, and snippets.

@ajkerrigan
Created May 13, 2020 05:08
Show Gist options
  • Select an option

  • Save ajkerrigan/3eb282ac3ab9f52e0caa36cd4a38dd98 to your computer and use it in GitHub Desktop.

Select an option

Save ajkerrigan/3eb282ac3ab9f52e0caa36cd4a38dd98 to your computer and use it in GitHub Desktop.
Export Jukebox.Today Queue + History

Add a bookmark using this code as the location. Click to pop up an alert box with a crude CSV of the current queue + history.

javascript:(() => { histitems = []; document.querySelectorAll('.jukebox__item').forEach((item) => { histitem = []; item.querySelectorAll('div[class^="item"]').forEach((child) => { histitem.push('"' + child.innerText.replace(/"/g, '""') + '"'); }); histitems.push(histitem.join(',')); }); alert(histitems.join("\n")); })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment