Skip to content

Instantly share code, notes, and snippets.

@s2tephen

s2tephen/autogenius

Created Aug 9, 2014
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@s2tephen 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