Created
August 9, 2014 20:22
-
-
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
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
$.each(mejs.players, function(i, p) { | |
p.media.onended = function() { | |
mejs.players[(i == mejs.players.length - 1 ? 0 : i + 1)].play() | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run this in your browser console and the album will loop... someone can turn this into a bookmarklet, I guess.