🚀 Your daily business tech & AI briefing — Subscribe free →

How To Hack The Google Chrome Dinosaur Game

Share this articleA lot of us have played the Google Dinosaur game. The game that appears when there is no internet. However, you can get the world record in seconds by hacking the game, so, not a legit world record, but still close. How to do it Even if you have an internet connection, you […]

Ash
Share this article

A lot of us have played the Google Dinosaur game. The game that appears when there is no internet. However, you can get the world record in seconds by hacking the game, so, not a legit world record, but still close.

How to do it

Even if you have an internet connection, you can get to the secret Google Chrome game by opening up a new tab and searching chrome://dino in the address bar, and you will be able to play the fun game. The aim of the game is to jump over the birds and cacti to stay alive. If you were to crash into either one of them, you would lose the game.

  1. Open the Google Chrome dinosaur game
  2. Right-click on the game
  3. Click on inspect
  4. Click on the Console tab in the bar at the top
  5. Once you’re in the Console tab, paste in the following text:
    var original = Runner.prototype.gameOver
    Then press enter. If it says unidentified, then it has worked.
  6. Now enter the following command:
    Runner.prototype.gameOver = function () {}
how to hack the dino game

Our code just replaces the gameOver function with an empty function, thus when you’re supposed to lose, you will instead simply walk through the object that would have originally ended the game for you. Now say if you want to keep your score, and want to return the game to its original state. It’s pretty easy, all you do is enter the following command in the Console:

Runner.prototype.gameOver = original

This will then reset the gameOver function back to its original state, which is to end the game when colliding with an object.

You can also change the speed of the dinosaur, as well as its jump height of it with the following commands that can be put in the console:

Runner.instance_.tRex.setjumpVelocity(15)

The 15 can be replaced with any number. This command will change the jump power of the dinosaur to a different value. The next command will change the speed of the dinosaur:

Runner.instance_.setSpeed(1000)

You can change the 1000 to a different value depending on how fast you would like the dinosaur to go.

Now the dinosaur is invincible, runs extremely fast, and can jump extremely high as well.

Source

Share this article

Stay in the Loop

Weekly tech insights, AI news and tools — straight to your inbox.

Newsletter Form (#4)

Contents