Skip to content

Instantly share code, notes, and snippets.

@markknol
Last active August 26, 2019 08:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markknol/86f2ef61c9c3306b0557 to your computer and use it in GitHub Desktop.
Save markknol/86f2ef61c9c3306b0557 to your computer and use it in GitHub Desktop.
Google chrome dino game runner hack - add screenshakes ( chrome://dino )
// open F12, paste this in the console. screenshakes!!
window.oldJump = Runner.instance_.tRex.startJump
Runner.instance_.tRex.startJump = function() {
window.oldJump.call(Runner.instance_.tRex, null);
for(i=0;i<30;i++) {
setTimeout(function() {
Runner.instance_.tRex.canvas.style.marginTop = (-10+Math.random()*20) + "px";
Runner.instance_.tRex.canvas.style.marginLeft = (-10+Math.random()*20) + "px";
}, 500 + i * 10);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment