Hidden Tips

The offline Dinosaur Game hides plenty of hacks and cheats you can unlock through Chrome’s Developer Tools. Let’s explore some of the best-known ones.

Make the Dinosaur Invincible

This lets you play the game forever. The hack replaces the normal gameOver() function with an empty one, so you keep going even when your dino hits a cactus or a pterodactyl.

  1. Open the Console in Developer Tools.
  2. Paste the following command and press Enter.
  3. Runner.instance_.gameOver = function() {}

Change the Game’s Speed

The Dinosaur Game normally starts at a speed of 6 and gradually gets faster. This command lets you crank it up right away!
  1. Open the Console in Developer Tools.
  2. Paste the following command and press Enter.
  3. Runner.instance_.setSpeed(100)
Tip: Swap 100 for any number to set your own speed.

Auto-Jump

Make your dino jump automatically whenever there’s an obstacle ahead.
  1. Open the Console in Developer Tools.
  2. Paste the following command and press Enter.
  3. setInterval(() => { Runner.instance_.horizon.obstacles.length > 0 ? Runner.instance_.tRex.jump() : null; }, 10);

Infinite Jump

Make your dino take off and stay in the air forever.
  1. Open the Console in Developer Tools.
  2. Paste the following command and press Enter.
  3. Runner.instance_.tRex.gravity = 0;
  4. Paste the following command and press Enter to make the dino jump and never come down.
  5. Runner.instance_.tRex.jumping = true;

Switch the Background to Night Mode

Flip the game into night mode instantly.

  1. Open the Console in Developer Tools.
  2. Paste the following command and press Enter.
  3. document.querySelector('body').style.filter = 'invert(1)';

Countless games launch every year, but the Chrome Dinosaur Game remains a timeless classic with a lasting impact. It has barely changed since it first appeared, yet there’s still enormous room to grow. Google may never give in to fans’ demands, but one thing is certain: the Dinosaur Game will keep entertaining players for generations to come.