Most of us have seen the dreaded “No Internet” error message on Google Chrome. You can actually turn this screen inlớn a fun, dino-themed endless runner game &, even better, haông xã it to where your dinosaur becomes invincible. Here’s how.

Bạn đang xem: T

How khổng lồ Play the Hidden Google Chrome Dinosaur Game

If you don’t have sầu an mạng internet connection, then you don’t have sầu lớn vị anything special to lớn play. Just enter any URL in the Google Chrome address bar, & you’ll see this screen.


If you do have sầu an internet connection, you can access this page without cutting the connection. Type chrome://dino in the address bar, & it will take you there.


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

This is a pretty neat way to lớn kill time, & it’s always fun to try lớn 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 khổng lồ the next point.

RELATED: How lớn Play Microsoft Edge"s Secret Surfing Game

Hack the Google Chrome Dinosaur Game

This hachồng allows your dinosaur to lớn become invincible, letting players continue the game without fear of being poked or pecked.

To haông chồng the game, you’ll need lớn be on the “No Internet” screen, so go ahead and enter chrome://dino in the address bar. Once there, right-clichồng anywhere on the screen & select “Inspect” from the menu that appears.


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


Alternatively, you can press Ctrl+Shift+I và jump straight lớn the “Console” tab in Chrome DevTools.

Xem thêm: Đánh Giá Pin Iphone X : Đủ Sức Sử Dụng Trong Một Ngày Dài, Iphone X Có Mấy Viên Pin

RELATED: What Your Function Keys Do in Chrome DevTools

Once in the “Console” tab, paste the following comm& & then press the “Enter” key:

var original = Runner.prototype.gameOver


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


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 và the action is triggered. In this case, you’ll hear a sound, the game stops, and a trò chơi 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. Cthua trận DevTools, và press the space bar to lớn start playing the game.

As you can see, the dinosaur is unaffected by the cacti or flying creatures. Mission accomplished.

Now, let’s say you’ve sầu been playing for 25 minutes & you want lớn stop the game & record your high score. You’ll need a way to end the game, which can no longer be done by running into a cactus.

Rethành viên the first code we entered? That stored the normal gameOver function in the original variable. That means we can now exeđáng yêu this commvà lớn use the normal gameOver function:

Runner.prototype.gameOver = original


If you’re interested, you can (see 2) look at what is supposed lớn happen when the normal gameOver function is called.

Marshall GunnellMarshall Gunnell is a writer with experience in the data storage industry. He worked at Synology, và most recently as CMO and technical staff writer at StorageĐánh Giá. He"s currently an API/Software Technical Writer at LINE Corporation in Tokyo, Japan, runs ITEnterpriser, a data-storage và cybersecurity-focused online truyền thông, và plays with development, with his RAID calculator being his first public project. Read Full Bio »