Skip to content

Instantly share code, notes, and snippets.

@Jhoow13
Created November 2, 2019 19:03
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 Jhoow13/e05c490de03fb755e923b2404933ea9e to your computer and use it in GitHub Desktop.
Save Jhoow13/e05c490de03fb755e923b2404933ea9e to your computer and use it in GitHub Desktop.
Chrome dino game auto jump
setInterval(function(){
var evt = new KeyboardEvent('keydown', {'keyCode':38, 'which':38});
document.dispatchEvent (evt);
}, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment