Google Dinosaur Hack: All Codes

The dinosaur game is one of the most popular Google Easter Eggs, with hours and hours of gameplay from users while waiting for the Internet connection to return.

Although we all know it as the Dinosaur or Dino game, the real name of this game is t-rex runner. If you think you know everything about him, you are wrong big, you still have a lot to discover.

In this guide we explain how to "hack" the Google dinosaur to change it with characters like Mario, Batman or Naruto, get points effortlessly or increase its speed to make it more complex.




Before explaining how to "hack" the Google dinosaur with the help of some codes, we will briefly examine how you can access the game.

Google Dinosaur Hack: All Codes

The famous minigame of a dinosaur from Google.

How to get into the google dinosaur game

While some regret losing their internet connection, others take advantage of that free time for enjoy one of the simplest but funniest games on the web: T-Rex Runner.

Playing Google's dinosaur without an internet connection is extremely simple: open Google Chrome and, when you see the dinosaur appear next to the "No Internet Connection" label, click the space bar to start playing.

This will activate Dino, who will start running to the right. It will be your time to control him to prevent him from dying when he collides with flying cacti and dinosaurs. The controls on the computer are as follows:

  • To jump: space bar / directional key up.
  • Squatting: directional key down.
  • Break: tasti Alt.

If you want to play from your mobile, you can use Dino T-Rex, a free application which doesn't need an internet connection to work. In this case it will be enough tap the screen to make the dinosaur jump and thus avoid the continuous obstacles that will appear in its path.




All the codes to modify the game

There are a number of codes that allow you to change the original game to enjoy other versions, such as the main character who is Mario or Batman, or Dino who gets thousands of points effortlessly.

Next, we will talk one by one of these codes and explain how to implement them to "hack" the dinosaur of Google at your convenience from the computer.

Trade Dino with Sonic

Google Dinosaur Hack: All Codes

If you "hack" the dinosaur from Google, you can turn it into Sonic

Tired of Dino and want to take another look at the protagonist of T-Rex Runner? You can trade Dino with another iconic character who is also used to running dodging obstacles: Sonic.

Sega's blue hedgehog can become the star of the Google game thanks to a code you can use easily. The steps to switch from Dino to Sonic are the following:

  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the window that appears, click on "Inspect".
  3. At the top of the window displayed on the right of the screen, go to "Elements".
  4. fence the "Offline resources" section and click on it to view it in full.
  5. Replace the link for "Offline resources-1x" with this link for Sonic Graphics.
  6. Click on the game and you will see how Sonic is already the main character of the Google game.

Google Dinosaur Hack: All Codes



Here's what the Elements window should look like to change the dinosaur for Sonic

Trade Dino with Mario

The steps to change Dino for the famous Mario are the same as in the process explained above. In this case, the link we put in «Offline resources» must be with Mario graphics.


  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the options menu that appears, click "Inspect".
  3. At the top of the window displayed on the right of the screen, go to "Elements".
  4. fence the "Offline resources" section and click on it to view it in full.
  5. Replace the link for "Offline resources-1x" with this link for Mario's graphics.
  6. Click on the game and you will see how Mario is already the main character of the Google game, accompanied by the mythical pipes and trees of the Mario universe.

Trade Dino with Batman

We left Mario for go straight to Gotham. If you want the DC Comics hero to become the character who jumps to avoid obstacles while you don't have an internet connection, you can. hacking the google dinosaur.

The steps to go from Dino to Batman are the following:

  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the options menu that appears, click "Inspect".
  3. At the top of the window displayed on the right of the screen, go to "Elements".
  4. fence the "Offline resources" section and click on it to view it in full.
  5. Replace the link for "Offline resources-1x" with this link for Batman graphics.
  6. Click on the game and you will see how Batman is already the main character and the your screen became Gotham. Obviously, this "hack" of the dinosaur from Google does not lack the villain par excellence, the Joker.

Trade Dino with Naruto

The last character you can replace Dino with is Naruto, the protagonist of the well-known manga series. To perform this dinosaur "hack", this is the procedure you need to follow:




  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the options menu that appears, click "Inspect".
  3. At the top of the window displayed on the right of the screen, go to "Elements".
  4. fence the "Offline resources" section and click on it to view it in full.
  5. Replace the link for "Offline resources-1x" with this link for Naruto artwork.
  6. Click on the game and you will see as Naruto starts running with his usual posture bent forward. From then on, you can only intelligently control it so it doesn't die when it collides with obstacles.

Make Dino immortal

Another code to "hack" the dinosaur of Google, or the game T-Rex Runner, is the one that allows you to make Dino immortal. It doesn't matter if the character comes across the cacti that appear in his path, it will continue to advance without suffering any scratches.

The steps to apply the code that makes the dinosaur immortal are these:

  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the options menu that appears, click "Inspect".
  3. At the top of the window that appears on the right of the screen, go to "Console".
  4. Click the text box and type the command «Runner.prototype.gameOver = function () {}» without quotes and press enter.
  5. If you get the message "f () {}", it means you have successfully implemented the e code Dino is already immortal. Go back to the game to see how the dinosaur is progresses and advances without complications.

Google Dinosaur Hack: All Codes

This is what the "Console" text box should look like for Dino to be immortal

Points effortlessly with a Dino that doesn't move

In addition to getting an immortal Dino, you can too earn points effortlessly thanks to a dinosaur that doesn't move from its place. This way, you will never find cacti or other dinosaurs that could end your life.

To get points effortlessly with a dinosaur that doesn't move, follow these steps:

  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the options menu that appears, click "Inspect".
  3. At the top of the window that appears on the right of the screen, go to "Console".
  4. Click the text box and type the command «Runner.instance_.playingIntro = true» without quotes and press enter.
  5. After the "true" message appears, click Dino again and it will start working without moving from its seat. Like this, the score will increase without Dino having to do anything.

Google Dinosaur Hack: All Codes

So you can get thousands of points by playing google dinosaur

Change the speed of the dinosaur

Finally, the last code you can apply to "hack" Google's dinosaur is what it will allow you to increase the speed to your liking to increase the complexity of the game. The procedure is this:

  1. Open Google Chrome without an internet connection and click on the right button.
  2. In the options menu that appears, click "Inspect".
  3. At the top of the window that appears on the right of the screen, go to "Console".
  4. Click the text box and type the command «Runner.instance_.setSpeed ​​​​(100)» without quotes. By default, the dinosaur speed is 100, change that figure to increase or decrease the pace of the game as you like.

Google Dinosaur Hack: All Codes

Change the speed to make the dinosaur go faster or slower

All these codes make it easy for you give new life to the google dinosaur game if you are already bored with its interface or how it works.

From now on, you can easily play with Mario, Batman, Naruto or Sonic, change the speed of the game to your liking and even play with an immortal Dino in T-Rex Runner.


add a comment of Google Dinosaur Hack: All Codes
Comment sent successfully! We will review it in the next few hours.