Skip to content

Instantly share code, notes, and snippets.

@daurnimator
Created March 21, 2014 03:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daurnimator/9678826 to your computer and use it in GitHub Desktop.
Save daurnimator/9678826 to your computer and use it in GitHub Desktop.
Array.prototype.random=function(){return this[Math.floor(Math.random()*this.length)]};
var keydown = getEventListeners(document).keydown[0].listener
setInterval(function () { keydown({which:[38,39,40,37].random(), preventDefault:function(){}}) },5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment