Categories
Google Hidden

How to Hack the Hidden Google Chrome Dinosaur Game

RAY-BON/Shutterstock.comMost of us have seen the dreaded “No Internet” error message on Google Chrome. You can actually turn this screen into a fun, dino-themed endless runner game and, even better, hack the hidden Easter egg to where your dinosaur becomes invincible. Here’s how. How to Play the Hidden Google Chrome Dinosaur Game If you don’t…


Google's No Internet Dino game running on a laptop computer
RAY-BON/Shutterstock.com

Most of us have seen the dreaded “No Internet” error message on Google Chrome. You can actually turn this screen into a fun, dino-themed endless runner game and, even better, hack the hidden Easter egg to where your dinosaur becomes invincible. Here’s how.

How to Play the Hidden Google Chrome Dinosaur Game

If you don’t have an internet connection, then you don’t have to do anything special to play. This screen will appear if you enter any URL into the Google Chrome address box.

No internet screen in Google Chrome

If you do have an internet connection, you can access this page without cutting the connection. Type chrome://dino in the address bar, and it will take you there.

address bar url for accessing dino game

Once you have reached this screen, press the spacebar to start the game. The dinosaur will start running once you have done this. You must avoid all obstacles, including birds and cacti. It’s over when the dinosaur is hit by a bird, or runs into a plant.

This is a great way to pass the time and it’s always a lot of fun to beat your high score. The game becomes more difficult as you go on. It is interesting to consider what the highest score achieved without cheating, which leads us to the next point.

RELATED: How to Play Microsoft Edge’s Secret Surfing Game

Hack the Google Chrome Dinosaur Game

This hack allows players to make their dinosaur invincible and allow them to continue playing the game without worrying about being pecked or poked.

To hack the game, you’ll need to be on the “No Internet” screen, so go ahead and enter chrome://dino in the address bar. Right-click on any area of the screen to open the inspector menu.

Inspect option in menu

This opens Chrome DevTools, which appears to the right of the browser window. Select the “Console tab” in DevTools.

Console tab of Chrome DevTools

Alternatively, you can press Ctrl+Shift+I and jump straight to the “Console” tab in Chrome DevTools.

RELATED: What Your Function Keys Do in Chrome DevTools

Once you have opened the “Console”, tab, copy the following command. Then press the “Enter” key to access

var original = Runner.prototype.gameOver

First code entered for Chrome hack

This may seem insignificant, but we’ll show you why it is so important in a moment.

Next, enter the following command:

Runner.prototype.gameOver = function (){}

Second command for hacking Chrome game

On the next line, f (){} will appear after pressing the “Enter” key.

Here is what happens now. When the game is over (i.e., when you hit an object), Runner.prototype.gameOver() is called and the action is triggered. This will cause the game to stop and display a Game Over message. This happens without your code.

Our code replaces the gameOver function by an empty function. This means that the code does not trigger the gameOver function, so you don’t hear the sound or see the message. You just keep running.

Test it out. Close DevTools and hit the space key to play the game.

As you can see, the flying creatures and cacti have not affected the dinosaur. Mission accomplished.

Now, let’s say you’ve been playing for 25 minutes and you want to stop the game and record your high score. To end the game, you will need to find a way.

Remember the first code we entered? That stored the normal gameOver function in the original variable. That means we can now execute this command to use the normal gameOver function:

Runner.prototype.gameOver = original

End game code

If you’re interested, you can (see 2) look at what is supposed to happen when the normal gameOver function is called.

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *