Skip to content

Instantly share code, notes, and snippets.

@JARVIS-AI
Last active June 19, 2024 16:28
Show Gist options
  • Save JARVIS-AI/cfb916c7dc3bea73abf0edac42749ea8 to your computer and use it in GitHub Desktop.
Save JARVIS-AI/cfb916c7dc3bea73abf0edac42749ea8 to your computer and use it in GitHub Desktop.
Chrome Dino game cheats

Hack Google Chrome and Make your Dinosaur Immortal

The game can be hacked pretty easily, making your dinosaur not even flinch at the sight of a cactus.

To hack the game, first go the the error message page where your dinosaur is hanging out.

Go ahead and press the space bar to start the game. Once the game starts, right-click and select Inspect” to open up Chrome DevTools, then select the Console tab.

You can also do this by using the Ctrl+Shift+I shortcut, which takes you straight to the Console tab of DevTools.

Open Chrome Console

  • Make sure you are on the No Internet Connection page.
  • Right click anywhere on the page and select Inspect.
  • Go to Console tab. This is where we will enter the commands to tweak the game.

Tweaking Speed

Type the following command in Console and press enter. You can use any other speed in place of 1000.

Runner.instance_.setSpeed(1000)

Immortality

After every command press enter. All the commands are case-sensitive.

We store the original game over function in a variable:

var original = Runner.prototype.gameOver

Then, we make the game over function empty:

Runner.prototype.gameOver = function(){}

Stopping the game after using Immortality

When you want to stop the game, Revert back to the original game over function:

Runner.prototype.gameOver = original

Setting the current score

Let’s set the score to 12345. You can set any other score less than 99999. The current score is reset on game over.

Runner.instance_.distanceRan = 12345 / Runner.instance_.distanceMeter.config.COEFFICIENT

Dino jumping too high?

You can control how high the dino jumps by using the below function. Adjust the value as necessary.

Runner.instance_.tRex.setJumpVelocity(10)
@HogwartsTeacherSnape
Copy link

HogwartsTeacherSnape commented Feb 23, 2024 via email

@PotentialMate
Copy link

PotentialMate commented Mar 2, 2024

Sonic in chrome dino game:

https://i.imgur.com/Jd6xA7i.png

copy that and paste it

@anassaahi
Copy link

anassaahi commented Mar 4, 2024

how can i restore all the changes made

@Robertaliyah
Copy link

Bet who can beat me
image

@Darkness987654321
Copy link

Screenshot 2024-01-21 8 35 53 PM
Screenshot 2024-01-21 8 10 47 PM
killer screen n 999999

@SonicFan2024andBeyond
Copy link

SonicFan2024andBeyond commented Jun 3, 2024

Στιγμιότυπο οθόνης 2024-06-03 214043
Who can defat me now?!

@wompwompcryboutit
Copy link

uh guys i think i broke
Captura de tela 2024-06-04 195940
the game accidentally

@ATS-001
Copy link

ATS-001 commented Jun 8, 2024

image
beated btw, its not243048 its 243048726430904523

@keperman209
Copy link

This removes all cacti.

// Access the Dino game instance
var runner = Runner.instance_;

// Function to remove all cactuses
function removeCactuses() {
runner.horizon.obstacles = [];
}

// Call the function to remove cactuses every frame
runner.gameOver = function() {
removeCactuses();
requestAnimationFrame(runner.gameOver);
}

// Activate the hack by starting the game
runner.playing = true;
runner.runningTime = 0;
runner.setSpeed(10);
requestAnimationFrame(runner.gameOver);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment