A Secret Cheat Code to win the Chrome Dino offline game 😲

Clever Developer
2 min readFeb 13, 2022

Hello guys, I have brought up a special code to you. It is called a cheat code. You must have noticed that when you are offline, Chrome displays a small, pixel dinosaur on the page. I think you must know that it is a game. It is a simple game for time-pass till the network comes back.

In this game you have to jump over cactuses and manage to overcome the dragons.

It is a cheat code which will not allow the dino to touch any obstacles and like that you earn unlimited scores.

This code is no harmful to you. You do not need anything additional to make this code run.

How to run this Code?

Right click on the webpage where you are playing the game.

Click on Inspect.

You will see a sidebar opening. On that sidebar, You are on the Elements tab by default, You have to click on the Console tab.

Then paste this code -

Runner.instance_.gameOver = () => {}

then you have to press the Enter key, the output should be -

() => {}

Now play the game. You will see that the dinosaur doesn’t any obstacles, it simply ignores and walks on its way. But, your points will be increasing as it runs.

This is the Magic of JavaScript.

Remember -

“A simple piece of code can change the whole game”

If you like this article then pls follow me on Medium and like this Article.

--

--

Clever Developer

I am a programmer, I will provide many amazing tutorials. You can also learn to animate, edit, use softwares and many other operations.