Stuck without internet again? Don’t worry, you’re not alone. Millions of us find ourselves face-to-face with that pixelated T-Rex in Google Chrome every day. But what if I told you that you could turn this frustrating moment into an epic gaming experience?
You’ve probably played the Chrome dinosaur game before – jumping over cacti and ducking under pterodactyls. It’s fun for a while, but let’s be honest: it gets old fast. That’s where hacking comes in. With a few simple tricks, you can transform this basic game into your own customized adventure.
Maybe you’re tired of losing too quickly, or you want to show off an impossibly high score to your friends. Perhaps you’re just curious about what’s possible when you peek under the hood of a web game. Whatever your reason, you’re in the right place.
In this guide, we’ll walk you through easy-to-follow steps to hack the Chrome dinosaur game – no coding experience needed. Ready to unleash your inner T-Rex? Let’s dive in!
What is the Chrome dinosaur game?
Before we start hacking, let’s quickly recap what this game is all about. The Chrome dinosaur game, officially called the “No Internet game,” appears when you try to visit a website without an internet connection.
You’ll see a cute little T-Rex standing in a desert landscape. Press the spacebar, and voila! The dino starts running, jumping over cacti, and ducking under pterodactyls. Your goal? Simply survive as long as you can and rack up those points.
How to access the dinosaur game (even with the internet)
Don’t want to wait for your internet to go out to play? No problem! Here’s how you can access the dino game anytime:
- Open Google Chrome.
- Type chrome://dino in the address bar.
- Press Enter.

There you have it – your very own dinosaur playground, no internet outage required!
Now, let’s get to the fun part: hacking the game!
How to hack the Chrome dinosaur game?
Ready to give your T-Rex some superpowers? Let’s break down how to hack the game step by step. Don’t worry if you’re not a coding expert – we’ll keep things simple and easy to follow.
Step 1: Open the game and the Chrome Developer Tools
First, make sure you have the dino game open (remember, type chrome://dino in your address bar). Now, let’s open up Chrome’s Developer Tools. Here’s how:
- Right-click anywhere on the game screen.
- Select “Inspect” from the menu.

- Click on the “Console” tab in the Developer Tools panel.

You should now see a text input area at the bottom of the Developer Tools panel. This is where we’ll enter our hacks!
Step 2: Make your dinosaur invincible
Let’s start with the ultimate power-up: invincibility. No more game-overs for you! Here’s what to do:
- In the Console, type the following command:
var original = Runner.prototype.gameOver

- Press Enter.
- Now, type this command:
Runner.prototype.gameOver = function(){}

- Press Enter again.
Congratulations! Your dino is now invincible. You can run through cacti and fly through pterodactyls without a care in the world.
Want to turn off invincibility? No problem. Just type:Runner.prototype.gameOver = original

Step 3: Control your dinosaur’s speed
Why settle for the default speed when you can make your dino zoom across the screen? Here’s how to adjust your speed:
- In the Console, type:
Runner.instance_.setSpeed(1000)

- Press Enter.
Feel free to replace 1000 with any number you like. Higher numbers mean faster speeds. Want to go back to normal? Just set the speed back to 10:
Runner.instance_.setSpeed(10)

Step 4: Super-jump powers
Want your dino to leap like a champion? You can control its jump height:
- In the Console, type:
Runner.instance_.tRex.setJumpVelocity(10) - Press Enter.

Again, feel free to experiment with different numbers. Higher numbers mean bigger jumps!
Step 5: Walk on air
Who says dinosaurs can’t fly? With this hack, your T-Rex can walk on air:
- In the Console, type:
Runner.instance_.tRex.groundYPos = 0 - Press Enter.

To bring your dino back down to earth, use: Runner.instance_.tRex.groundYPos = 93

Step 6: Set your own high score
Want to impress your friends with an impossibly high score? Here’s how:
- In the Console, type:
Runner.instance_.distanceRan = 12345 / Runner.instance_.distanceMeter.config.COEFFICIENT - Press Enter.

Replace 12345 with whatever score you want to set. Just remember, this score will reset when the game ends.
Advanced hack: Auto-play mode
For the ultimate hands-off experience, you can set up an auto-play mode that will keep your dino running forever. Here’s the code to make it happen:
function dispatchKey(type, key) {
document.dispatchEvent(new KeyboardEvent(type, {keyCode: key}));
}
setInterval(function () {
const KEY_CODE_SPACE_BAR = 32
const KEY_CODE_ARROW_DOWN = 40
const CANVAS_HEIGHT = Runner.instance_.dimensions.HEIGHT
const DINO_HEIGHT = Runner.instance_.tRex.config.HEIGHT
const obstacle = Runner.instance_.horizon.obstacles[0]
const speed = Runner.instance_.currentSpeed
if (obstacle) {
const w = obstacle.width
const x = obstacle.xPos
const y = obstacle.yPos
const yFromBottom = CANVAS_HEIGHT - y - obstacle.typeConfig.height
const isObstacleNearby = x < 25 * speed - w / 2
if (isObstacleNearby) {
if (yFromBottom > DINO_HEIGHT) {
// Pterodactyl going from above, do nothing
} else if (y > CANVAS_HEIGHT / 2) {
// Jump
dispatchKey("keyup", KEY_CODE_ARROW_DOWN)
dispatchKey("keydown", KEY_CODE_SPACE_BAR)
} else {
// Duck
dispatchKey("keydown", KEY_CODE_ARROW_DOWN)
}
}
}
}, Runner.instance_.msPerFrame);
Copy this entire block of code, paste it into the Console, and press Enter. Your dino will now play the game automatically, jumping and ducking as needed!
Why hack the Chrome dinosaur game?
Now, you might be wondering: why bother hacking this simple game? Well, there are a few good reasons:
1. It’s a fun way to experiment
Hacking the Chrome dinosaur game is enjoyable. There’s something exciting about changing how a game works and seeing what happens. It’s like being a game designer for a day, tweaking things to see how they affect the gameplay.
2. You can learn about coding
This is a great chance to learn about JavaScript, the language that powers many websites and games. By hacking the dino game, you’re getting a peek at how games work behind the scenes. It’s a hands-on way to start understanding coding concepts.
3. Show off your skills
Imagine surprising your friends with an unbeatable high score or a dinosaur that can fly. Hacking the game gives you a cool trick to show off when someone’s internet goes down. It’s a fun way to impress others with your newfound tech skills.
4. It can be relaxing
Watching an invincible dinosaur run endlessly through a desert can be oddly soothing. Sometimes, you just need a mindless distraction, and a hacked dino game can provide that. It’s a simple way to take your mind off things and relax for a bit.
The takeaway
Hacking the Chrome dinosaur game is easier than you might think. With a few simple commands entered in the browser’s console, you can transform this basic endless runner into a personalized gaming experience.
We’ve covered how to make your dinosaur invincible, adjust its speed and jumping ability, and even set up an auto-play mode. These hacks not only make the game more fun but also offer a glimpse into how web-based games work behind the scenes.
Remember, the goal isn’t to cheat, but to explore and learn. By experimenting with these hacks, you’re taking your first steps into the world of web development and game modification. So the next time your internet cuts out, don’t get frustrated – get hacking!
What did you think of this guide? Feel free to share your experiences or ask questions in the comments below.

