Last active
August 29, 2015 14:21
-
-
Save digital-shokunin/271bc6964dc46e28e08e to your computer and use it in GitHub Desktop.
How to get your grooveshark playlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Chrome, hit Ctrl-Shift-J, | |
Paste the following JS into the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment