How to Hack the Hidden Google Chrome Dinosaur Game

Must read

How to disable and delete Samsung Pay from your Galaxy phone

When it comes to paying conveniently, Samsung Pay makes using your phone as a bank card an easy process; however, there may come...

Should I buy an SSD for my PS4 or PS4 Pro?

Wondering whether you should buy an SSD for your PS4 or PS4 Pro? Then you've landed on the right page. Solid-state storage is...

You Really Are Better Off Spending Your Money On An HP Omen 15 Gaming Laptop

As we resume the Intel vs AMD battles in earnest again, after many years, the Dell G5 15 SE gaming laptop sits very...

Games of the Generation: Stardew Valley is a welcome break from the chaos of the world

Games of the GenerationAs we approach the launch of the PS5 and Xbox Series X, TechRadar is looking back at the games that...
Bhawani Singhhttps://techmepro.com
I am a blogger who believes in delivering latest tech news from around the world to my viewers.

How to Hack the Hidden Google Chrome Dinosaur Game

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 it 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. Just enter any URL in the Google Chrome address bar, and you’ll see this screen.

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’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.

Dinosaur game gif

 

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.

Inspect option in menu

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

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

var original = Runner.prototype.gameOver

First code entered for Chrome hack

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 (){}

Second command for hacking Chrome game

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.

Invincible dinosaur gif

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



Source link

More articles

Leave a Reply

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

- Advertisement -

Latest article

Fears over 'weakening' of UK green watchdog

Campaigners fear that a body designed to protect the environment is being undermined. Source link

TikTok shrugs off Trump attack with expansion plans

Anti-Trump TikTokkers not declaring paid content Source link

What is T-Mobile TVision, and How Much Does it Cost?

T-MobileIt seems like every technology company has its own streaming service these days. T-Mobile is a recent entrant in the field with its “TVision” live...

Ubisoft details its PS5 and Xbox Series X upgrades – and there’s a few surprises

Ubisoft has detailed the next-gen enhancements we can expect for its upcoming games including Assassin's Creed Valhalla, Far Cry 6 and Watchdogs: Legion.We...

Realme Smart Cam 360 Gets Dussehra Specials Sale Discount on Flipkart, Priced at Rs. 2,599

Realme Smart Cam 360 will be available at a special discounted price on Flipkart during the e-commerce platform's Dussehra Specials sale. Launched at...
- Advertisement -