Skip to content

Instantly share code, notes, and snippets.

@zwhitchcox
Created June 26, 2016 01:02
Show Gist options
  • Save zwhitchcox/ae1ad2b9844fb159f7b77059e300f777 to your computer and use it in GitHub Desktop.
Save zwhitchcox/ae1ad2b9844fb159f7b77059e300f777 to your computer and use it in GitHub Desktop.
randomize hbo now video selection
var ul = document.getElementsByClassName('thumbs')[0]
for (var i = ul.children.length; i >= 0; i--) {
ul.appendChild(ul.children[Math.random() * i | 0]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment