The dinosaur game is one of the most popular Google Easter Eggs, with hours and hours of gameplay by users while they wait for their Internet connection to return.
Although we all know it as the game of the dinosaur or Dino, the real name of this game is T-Rex Runner. If you think you know everything about him, you are wrong; you still have a lot to discover.
In this guide, we explain how to “hack” the Google dinosaur to change it for 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 are going to review how you can access the game briefly.
How to get into Google’s dinosaur game
While some regret losing their Internet connection, others take advantage of that free time to enjoy one of the simplest but most fun games on the web: T-Rex Runner.
Playing the Google dinosaur without an Internet connection is extremely easy: open Google Chrome. When you see the dinosaur appear next to the “No Internet connection” label, click on the space bar to start playing.
This will activate Dino, who will start running to the right. Your time will come to control it to prevent it from dying when colliding with cacti and flying dinosaurs. The controls on the computer are as follows:
- To jump: Spacebar / Directional key up.
- Crouch down: Directional key down.
- Pause: Alt keys.
If you want to play from your mobile, you can use Dino T-Rex, a free application that does not need an Internet connection to work. In this case, you have to tap on the screen to make the dinosaur jump and thus avoid the continuous obstacles that will appear on its way.
All codes to modify the game
There are a series of codes that allow you to change the original game to enjoy other versions, such as that the main character is Mario or Batman or that Dino scores thousands of points without any effort.
Next, we will talk about one by one of these codes, and we will explain how to implement them to “hack” the Google dinosaur at your whim from the computer.
Trade Dino for Sonic
Tired of Dino and want to give the main character of T-Rex Runner another look? You can swap Dino for another iconic character who is also used to running while dodging obstacles: Sonic.
Sega’s blue hedgehog can become the star of Google’s game, thanks to a code that you can easily use. The steps to change from Dino to Sonic are as follows:
- Open Google Chrome without an Internet connection and click on the right button.
- In the window that appears, click on “Inspect.”
- At the top of the window displayed on the right of the screen, access “Elements.”
- Look for the “Offline resources” section and click on it to display it in full.
- Replace the link for “Offline resources-1x” with this link for Sonic graphics.
- Click on the game, and you will see how Sonic is already the main character of the Google game.
Trade Dino for Mario
The steps to change Dino for the famous Mario are the same as the process explained above. In this case, the link that we put in “Offline Resources” must be with Mario’s graphics.
- Open Google Chrome without an Internet connection and click on the right button.
- In the options menu that appears, click on “Inspect.”
- At the top of the window displayed on the right of the screen, access “Elements.”
- Look for the “Offline resources” section and click on it to display it in full.
- Replace the link for “Offline resources-1x” with this link for Mario’s graphics.
- Click on the game, and you will see how Mario is already the main character of the Google game, accompanied by the mythical tubes and trees of the Mario universe.
Trade Dino for Batman
We left Mario to go directly to Gotham. If you want the DC Comics hero to become the character who jumps to dodge obstacles while you have no internet connection, you can do so by “hacking” the Google dinosaur.
The steps to change from Dino to Batman are as follows:
- Open Google Chrome without an Internet connection and click on the right button.
- In the options menu that appears, click on “Inspect.”
- At the top of the window displayed on the right of the screen, access “Elements.”
- Look for the “Offline resources” section and click on it to display it in full.
- Replace the link for “Offline resources-1x” with this link for Batman graphics.
- Click on the game, and you will see how Batman is already the main character, and your screen has become Gotham. Of course, this “hack” of the Google dinosaur does not lack the villain par excellence, the Joker.
Trade Dino for Naruto
The last character you can replace Dino with is Naruto, the protagonist of the well-known manga series. To perform this “hack” to the dinosaur, this is the procedure you must follow:
- Open Google Chrome without an Internet connection and click on the right button.
- In the options menu that appears, click on “Inspect.”
- At the top of the window displayed on the right of the screen, access “Elements.”
- Look for the “Offline resources” section and click on it to display it in full.
- Replace the link for “Offline resources-1x” with this link for the Naruto graphics.
- Click on the game, and you will see how Naruto begins to run with his usual forward-leaning posture. From that moment on, you can only control it intelligently not to die when colliding with obstacles.
Get Dino to be immortal.
Another code to “hack” the dinosaur from Google, or the game T-Rex Runner, is the one that allows you to make Dino immortal. No matter that the character bumps into the cacti that appear in his path, he will continue forward without suffering any scratches.
The steps to apply the code that makes the dinosaur immortal are these:
- Open Google Chrome without an Internet connection and click on the right button.
- In the options menu that appears, click on “Inspect.”
- At the top of the window that appears on the right of the screen, access “Console.”
- Click on the text box and type the command “Runner.prototype.gameOver = function () {}” without quotes and hit enter.
- If the message “f () {}” appears, it means that you have implemented the code correctly, and Dino is already immortal. Come back to the game to see how the dinosaur progresses and advances without complications.
Effortless points with a Dino that doesn’t move
In addition to getting an immortal Dino, you can also score points effortlessly, thanks to a dinosaur that does not move from its place. In this way, you will never find cacti or other dinosaurs that could end your life.
To effortlessly score points with a Dino that doesn’t move, follow these steps:
- Open Google Chrome without an Internet connection and click on the right button.
- In the options menu that appears, click on “Inspect.”
- At the top of the window that appears on the right of the screen, access “Console.”
- Click on the text box and type the command “Runner.instance_.playingIntro = true” without quotes and hit enter.
- After the “true” message that will appear, click on Dino again, and it will start running without moving from its place. Thus, the score will increase without Dino having to do anything.
Change the speed of the dinosaur.
Finally, the last code that you can apply to “hack” the Google dinosaur is the one that will allow you to increase its speed at will to increase the complexity of the game. The procedure is this:
- Open Google Chrome without an Internet connection and click on the right button.
- In the options menu that appears, click on “Inspect.”
- At the top of the window that appears on the right of the screen, access “Console.”
- Click in the text box and type the command “Runner.instance_.setSpeed (100)” without quotes. By default, the speed of the dinosaur is 100; change that figure to increase or decrease the pace of the game as you see fit.
All these codes make it easy for you to give a new life to the Google dinosaur game if you have already gotten bored with its interface or operation.
From now on, you can easily play with Mario, Batman, Naruto, or Sonic, change the game’s speed to your liking and even play with an immortal Dino in T-Rex Runner.
Sharlene Meriel is an avid gamer with a knack for technology. He has been writing about the latest technologies for the past 5 years. His contribution in technology journalism has been noteworthy. He is also a day trader with interest in the Forex market.