Skip to content

Instantly share code, notes, and snippets.

@xjamundx
Created May 2, 2011 16:45
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 xjamundx/951902 to your computer and use it in GitHub Desktop.
Save xjamundx/951902 to your computer and use it in GitHub Desktop.
jQuery Code to Pick a Random Winner of Disqus Comments
// run this in the console of the page
$(".dsq-commenter-name").eq(Math.round(Math.random() * $(".dsq-commenter-name").length)).text();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment