Created
June 26, 2016 01:02
-
-
Save zwhitchcox/ae1ad2b9844fb159f7b77059e300f777 to your computer and use it in GitHub Desktop.
randomize hbo now video selection
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 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