Skip to content

Instantly share code, notes, and snippets.

@s2tephen
Created August 9, 2014 20:22
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 s2tephen/25512836bd9cd6d72fb8 to your computer and use it in GitHub Desktop.
Save s2tephen/25512836bd9cd6d72fb8 to your computer and use it in GitHub Desktop.
Autoplay/loop RapGenius album streams e.g. http://genius.com/albums/Watsky/All-you-can-do
$.each(mejs.players, function(i, p) {
p.media.onended = function() {
mejs.players[(i == mejs.players.length - 1 ? 0 : i + 1)].play()
}
});
@s2tephen
Copy link
Author

s2tephen commented Aug 9, 2014

Run this in your browser console and the album will loop... someone can turn this into a bookmarklet, I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment