March 17, 2022

Google Chrome Dinosaur Game - Hack

Google Chrome includes an endless runner Dinosaur game that appears in the absence of an internet connection.

If you are unable to get the No Internet page, open a new tab and type chrome://dino, and press enter.

Playing

  • Space Bar / Up: Jump (also to start the game)
  • Down: Duck (pterodactyls appear after 450 points)
  • Alt: Pause
  • The game enters a black background mode after every multiple of 700 points for the next 100 points.

Chrome Dino

Open Chrome Console

  • Make sure you are on the No Internet Connection page.
  • Right-click anywhere on the page and select Inspect.
  • Go to the Console tab. This is where we will enter the commands to tweak the game.

Tweaking Speed

Type the following command in Console and press enter. You can use any other speed in place of 1000.

Runner.instance_.setSpeed(1000)

Immortality

  • After every command press enter. All the commands are case-sensitive.

  • We store the original game over function in a variable:

    var original = Runner.prototype.gameOver
    
  • Then, we make the game over function empty:

    Runner.prototype.gameOver = function(){}
    

Stopping the game after using Immortality

When you want to stop the game, Revert back to the original game over function:

Runner.prototype.gameOver = original

Setting the current score

Let’s set the score to 12345. You can set any other score less than 99999. The current score is reset on the game over.


Runner.instance_.distanceRan = 12345 / Runner.instance_.distanceMeter.config.COEFFICIENT

Dino jumping too high?

You can control how high the dino jumps by using the below function. Adjust the value as necessary.


Runner.instance_.tRex.setJumpVelocity(10)
Previous Post
Next Post

post written by:

0 comments:

Thanks for your comments