T-Rex Chrome Dino Game Hack for automatic jumping – immortality hack for the Chrome dinosaur game.

Dino

Member
I’m sharing 2 hack versions.
The first version automatically makes the dinosaur jump when it encounters a cactus and duck when it encounters flying pterodactyls.
The second version allows the dinosaur to keep running, and even when it hits a cactus, it won’t die.

**How to use**:
1. On the tab where the dinosaur game is open, press **F12**.
2. Select the **Console** tab.
3. Paste the hack code into the console.
4. Press **Enter**.
5. Close the **DevTools** tab.
6. Start the game.

1. Automatic Jump Hack:​

JavaScript:
function keyDown(e){Podium={};var n=document.createEvent("KeyboardEvent");Object.defineProperty(n,"keyCode",{get:function(){return this.keyCodeVal}}),n.initKeyboardEvent?n.initKeyboardEvent("keydown",!0,!0,document.defaultView,e,e,"","",!1,""):n.initKeyEvent("keydown",!0,!0,document.defaultView,!1,!1,!1,!1,e,0),n.keyCodeVal=e,document.body.dispatchEvent(n)}function keyUp(e){Podium={};var n=document.createEvent("KeyboardEvent");Object.defineProperty(n,"keyCode",{get:function(){return this.keyCodeVal}}),n.initKeyboardEvent?n.initKeyboardEvent("keyup",!0,!0,document.defaultView,e,e,"","",!1,""):n.initKeyEvent("keyup",!0,!0,document.defaultView,!1,!1,!1,!1,e,0),n.keyCodeVal=e,document.body.dispatchEvent(n)}setInterval(function(){Runner.instance_.horizon.obstacles.length>0&&(Runner.instance_.horizon.obstacles[0].xPos<25*Runner.instance_.currentSpeed-Runner.instance_.horizon.obstacles[0].width/2&&Runner.instance_.horizon.obstacles[0].yPos>75&&(keyUp(40),keyDown(38)),Runner.instance_.horizon.obstacles[0].xPos<30*Runner.instance_.currentSpeed-Runner.instance_.horizon.obstacles[0].width/2&&Runner.instance_.horizon.obstacles[0].yPos<=75&&keyDown(40))},5);

2. Immortality Hack:​

JavaScript:
var original = Runner.prototype.gameOverRunner.prototype.gameOver = function (){}
Runner.instance_.setSpeed(0)
 
Top