DEV Community

Spandan Sehgal
Spandan Sehgal

Posted on

3 1 1 1 1

How to hack Chrome Dino Game using Javascript

Intro

We all know the popular internet game of chrome which appears when there is no internet, there is however another way to access it that is by typing chrome://dino into the address bar.
So I have discovered a trick by which you can play that game without dying .

Let's Start

First of all go to chrome://dino
Image description

Then right click anywhere from there select inspectImage description

From there go to console tab from the top Image description

and now type the following code and hit enter :

Runner.prototype.gameOver = function(){}
Enter fullscreen mode Exit fullscreen mode

After that when you will start playing the game you don't need to press any key and you will never die .

I hope you all enjoyed this post ! Be safe and do take good care of yourselves .

If you see this then comment "Yaay!"
Feel free to ask or give suggestions in the comments section.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay