How to Hack the Hidden Google Chrome Dinosaur Game (2024)

Quick Links

  • How to Play the Hidden Google Chrome Dinosaur Game

  • Hack the Google Chrome Dinosaur Game

Key Takeaways

To hack the Chrome Dinosaur game, open Chrome’s DevTools and select the Console tab. The Console tab lets you run JavaScript to modify a page. Run "var original = Runner.prototype.gameOver; Runner.prototype.gameOver = function (){};" to change or remove the game’s game over condition, making it impossible to lose.

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.

If you don't have an internet connection, then you don't have to do anything special to play. Just enter any URL in the Google Chrome address bar, and you'll see this screen.

How to Hack the Hidden Google Chrome Dinosaur Game (1)

If youdo 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.

How to Hack the Hidden Google Chrome Dinosaur Game (2)

Once you've made your way to this screen, you can start the game by pressing the space bar. Once you do, the dinosaur will begin running. The object of the game is to avoid whatever comes your way, such as birds and cacti. Once the dinosaur gets hit by a bird or runs into a cactus, it's game over.

How to Hack the Hidden Google Chrome Dinosaur Game (3)

This is a pretty neat way to kill time, and it's always fun to try to beat your own high score. As you continue, the difficulty of the game increases. It's interesting to think about what the highest score ever achieved is, without cheating of course, which brings us to the next point.

Related: How to Play Microsoft Edge's Secret Surfing Game

Hack the Google Chrome Dinosaur Game

This hack allows your dinosaur to become invincible, letting players continue the game without fear of being poked or pecked.

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. Once there, right-click anywhere on the screen and select "Inspect" from the menu that appears.

This opens Chrome DevTools, which appears to the right of the browser window. In DevTools, select the "Console" tab.

How to Hack the Hidden Google Chrome Dinosaur Game (5)

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 in the "Console" tab, paste the following command and then press the "Enter" key:

var original = Runner.prototype.gameOver
How to Hack the Hidden Google Chrome Dinosaur Game (6)

This may seem like it does nothing, but we'll explain why this is necessary in a second.

Next, enter this command:

Runner.prototype.gameOver = function (){}
How to Hack the Hidden Google Chrome Dinosaur Game (7)

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

Here's 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. In this case, you'll hear a sound, the game stops, and a Game Over message appears. That's without our code.

What our code does is replaces the gameOver function with an empty function. That means that instead of hearing the sound, the game stopping, and the message appearing, nothing happens. You just keep running.

Test it out. Close DevTools, and press the space bar to start playing the game.

How to Hack the Hidden Google Chrome Dinosaur Game (8)

As you can see, the dinosaur is unaffected by the cacti or flying creatures. 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. You'll need a way to end the game, which can no longer be done by running into a cactus.

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 gameOverfunction:

Runner.prototype.gameOver = original
How to Hack the Hidden Google Chrome Dinosaur Game (9)

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

How to Hack the Hidden Google Chrome Dinosaur Game (2024)

FAQs

How do you get the secret dinosaur game? ›

When Chrome users lose internet connection, they'll see a T-Rex icon above the message stating, “No internet.” To start up the game, players simply need to hit the spacebar, which will make the dinosaur run and hop over the cactuses that come into its way.

How do you glitch the Dino game? ›

To hack the Chrome Dinosaur game, open Chrome's DevTools and select the Console tab. The Console tab lets you run JavaScript to modify a page. Run "var original = Runner.prototype.gameOver; Runner.prototype.gameOver = function (){};" to change or remove the game's game over condition, making it impossible to lose.

What happens after 99999 in chrome dinosaur game? ›

There's literally no end: get to the maximum possible score of 99,999 and the game simply resets itself. You can't change direction and you have no control over your speed. All you can do is jump and duck.

What is the last level of the dinosaur game? ›

The dinosaur game does not technically have an end, but the maximum score is 99,999 and the design team for the game said that it does stop working after you play the game for 17 million years strait- the same amount of time dinosaurs were on the Earth.

How do you duck on Chrome Dino? ›

To start the Dino game (and jump) - "Space" button, to duck - ""down arrow (v)" button.

How to run through cactus in Dino game? ›

As the dinosaur runs across the desert landscape, keep pressing the Spacebar or the up arrow key on your keyboard to jump over the cacti.

What is the highest score in Chrome Dino? ›

Type 'chrome://dino' in the address bar and hit the Enter key. How much is the top score in google chrome dinosaur game? The highest score ever to get is 999,999. After that, the game resets and the score goes back to 0 as its how the game works.

What is the cheat code for dino game? ›

Chrome Dino Game Hacks
HackCode
SpeedRunner.instance_.setSpeed(speed)
JumpRunner.instance_.tRex.setJumpVelocity(jumping_height)
InvincibilityRunner.prototype.gameOver = function (){}
Jul 6, 2023

What is the dinosaur escape code? ›

DINAUSORE - ESCAPE ADVENTURE 0455-9981-9725 by jalf - Fortnite.

How to complete no internet dinosaur game? ›

Look for the little dropdown arrow, click it, and select "Offline" (instead of "Online", where it should be set if you currently have a connection). Once you've done that, if you try to visit a web page, you'll get the dinosaur! You can exit dev tools and hit the space bar, as usual, to get dino running. Play away!

What is the command for dino in Chrome? ›

Type chrome:dino into Chrome's address bar and press Enter. This will display a graphic of a dinosaur with the instruction “Press space to play.”

What happens after 99999 in dino game? ›

The maximum score the game gives you is 99999 before it resets back to 0. This will change the speed of the dinosaur to 6000.

How to open dev tools in Chrome? ›

Right-click a page and select "Inspect Element". This displays the HTML code for the element you clicked. Select View > Developer > Developer tools.

Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 5970

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.