Skip to content

Instantly share code, notes, and snippets.

@digital-shokunin
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save digital-shokunin/271bc6964dc46e28e08e to your computer and use it in GitHub Desktop.

Select an option

Save digital-shokunin/271bc6964dc46e28e08e to your computer and use it in GitHub Desktop.

Revisions

  1. digital-shokunin renamed this gist May 19, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. digital-shokunin created this gist May 19, 2015.
    3 changes: 3 additions & 0 deletions howto.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    In Chrome, hit Ctrl-Shift-J,

    Paste the following JS into the console
    8 changes: 8 additions & 0 deletions playlist.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    var libraryKey = Object.keys(localStorage).filter(function(key) { return key.match(/library\d/) });
    var lib = JSON.parse(localStorage[libraryKey]).songs
    var songs = []
    for (var i in lib) {
    var song = lib[i]
    songs.push(song.D + " - " + song.B + " - " + song.J)
    }
    songs.join("\n")