Skip to content

Instantly share code, notes, and snippets.

@JARVIS-AI
Last active February 24, 2026 18:04
Show Gist options
  • Select an option

  • Save JARVIS-AI/cfb916c7dc3bea73abf0edac42749ea8 to your computer and use it in GitHub Desktop.

Select an option

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)
@arslanberat108-ops
Copy link

Runner.instance_.tRex.setJumpVelocity(10)

@arslanberat108-ops
Copy link

@arslanberat108-ops
Copy link

Uploading Screenshot_20260114-190441.jpg…

@Z3Nqw
Copy link

Z3Nqw commented Feb 3, 2026

@inconuqwe
Copy link

(function() { // Check if the injector is already loaded if (window.dinoInjectorLoaded) { alert("⚡ Injector is already loaded!"); return; } window.dinoInjectorLoaded = true;

// Create panel
let panel = document.createElement("div");
panel.style.cssText = `
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    z-index: 9999;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    border: 2px solid #444;
    transition: 0.3s ease;
`;
document.body.appendChild(panel);

// Injector header
panel.innerHTML = `
    <h2 style="font-size: 20px; margin: 0; padding: 10px; background-color: #333; border-radius: 8px;">🚀 Dino Injector</h2>
    <p style="margin-top: 10px; color: #bbb;">Powerful injector for Dino Game</p>
`;

// Panel drag functionality
let isDragging = false;
let offsetX, offsetY;

panel.addEventListener('mousedown', (e) => {
    isDragging = true;
    offsetX = e.clientX - panel.getBoundingClientRect().left;
    offsetY = e.clientY - panel.getBoundingClientRect().top;
    document.body.style.cursor = 'move';
});

document.addEventListener('mousemove', (e) => {
    if (isDragging) {
        panel.style.top = e.clientY - offsetY + 'px';
        panel.style.left = e.clientX - offsetX + 'px';
    }
});

document.addEventListener('mouseup', () => {
    isDragging = false;
    document.body.style.cursor = 'auto';
});

// Function to create buttons
function createButton(text, onClick) {
    let btn = document.createElement("button");
    btn.innerText = text;
    btn.style.cssText = `
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 12px;
        background: #333;
        color: white;
        border: none;
        cursor: pointer;
        font-size: 14px;
        border-radius: 8px;
        transition: background 0.3s ease;
    `;
    btn.onmouseover = () => (btn.style.background = "#444");
    btn.onmouseout = () => (btn.style.background = "#333");
    btn.onclick = onClick;
    panel.appendChild(btn);
}

// Cheat functions
let isESPEnabled = false;
let isSpeedHackEnabled = false;
let isJumpHackEnabled = false;
let isGravityHackEnabled = false;
let isWallHackEnabled = false;
let isInfiniteLivesEnabled = false;
let isSuperSpeedEnabled = false;
let isSuperJumpEnabled = false;
let isGiantDinoEnabled = false;
let isBackgroundChanged = false;
let isDinoColorChanged = false;

// Enable ESP
function enableESP() {
    alert("✔ ESP activated! Objects will now be highlighted.");
    isESPEnabled = true;
    const dino = Runner.instance_.tRex;
    setInterval(() => {
        if (dino) {
            dino.draw();  // Example ESP
        }
    }, 100);
}

// Enable Auto Jump
function enableJumpHack() {
    alert("✔ Auto-jump activated!");
    isJumpHackEnabled = true;
    const dino = Runner.instance_.tRex;
    setInterval(() => {
        if (dino && !dino.jumping) {
            dino.setJumping(true);
        }
    }, 100);
}

// Enable Speed Hack
function enableSpeedHack() {
    alert("✔ Speed increased!");
    isSpeedHackEnabled = true;
    Runner.instance_.setSpeed(2);
}

// Enable Gravity Hack
function enableGravityHack() {
    alert("✔ Gravity reduced!");
    isGravityHackEnabled = true;
    Runner.instance_.gravity_ = 0.2;
}

// Enable Wall Hack
function enableWallHack() {
    alert("✔ Wall Hack activated! Dinosaur now passes through obstacles.");
    isWallHackEnabled = true;
    const dino = Runner.instance_.tRex;
    setInterval(() => {
        if (dino) {
            dino.xPos = Runner.instance_.currentSpeed;
        }
    }, 50);
}

// Enable Infinite Lives
function enableInfiniteLives() {
    alert("✔ Infinite lives activated!");
    isInfiniteLivesEnabled = true;
    Runner.instance_.gameOver = () => {};  // Player doesn't die
}

// Enable Super Speed
function enableSuperSpeed() {
    alert("✔ Super speed activated!");
    isSuperSpeedEnabled = true;
    Runner.instance_.setSpeed(9000);  // Max speed
}

// Enable Super Jump
function enableSuperJump() {
    alert("✔ Super jump activated!");
    isSuperJumpEnabled = true;
    Runner.instance_.tRex.jumpVelocity = 20;  // Increased jump speed
}

// Enable Giant Dinosaur
function enableGiantDino() {
    alert("✔ Giant dinosaur activated!");
    isGiantDinoEnabled = true;
    const dino = Runner.instance_.tRex;
    dino.dinoElement.style.transform = 'scale(3)';  // Increase dinosaur size
}

// Change background with your gradient
function changeBackground() {
    if (!isBackgroundChanged) {
        document.body.style.background = "linear-gradient(to right, #ff7e5f, #feb47b)";
        alert("✔ Background changed to gradient!");
        isBackgroundChanged = true;
    } else {
        document.body.style.background = "";
        alert("✔ Background restored!");
        isBackgroundChanged = false;
    }
}

// Change Dino color
function changeDinoColor() {
    if (!isDinoColorChanged) {
        const dino = Runner.instance_.tRex;
        dino.dinoElement.style.backgroundColor = "red";  // Change dinosaur color
        alert("✔ Dinosaur color changed!");
        isDinoColorChanged = true;
    } else {
        const dino = Runner.instance_.tRex;
        dino.dinoElement.style.backgroundColor = "";
        alert("✔ Dinosaur color restored!");
        isDinoColorChanged = false;
    }
}

// Add buttons
createButton("🔍 Enable ESP", enableESP);
createButton("⛷ Enable Auto-jump", enableJumpHack);
createButton("⚡ Enable Speed Hack", enableSpeedHack);
createButton("🌍 Enable Gravity Hack", enableGravityHack);
createButton("🚧 Enable Wall Hack", enableWallHack);
createButton("💥 Enable Infinite Lives", enableInfiniteLives);
createButton("💨 Enable Super Speed", enableSuperSpeed);
createButton("🌟 Enable Super Jump", enableSuperJump);
createButton("🦖 Enable Giant Dinosaur", enableGiantDino);
createButton("🌄 Change Background", changeBackground);
createButton("🌈 Change Dinosaur Color", changeDinoColor);

// Script input field
let inputScriptButton = document.createElement("button");
inputScriptButton.innerText = "Enter Script";
inputScriptButton.style.cssText = `
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.3s ease;
`;
inputScriptButton.onclick = () => {
    let script = prompt("Enter your script:");
    if (script) {
        try {
            eval(script);
            alert("✔ Script executed successfully!");
        } catch (e) {
            alert("❌ Error executing script!");
        }
    }
};
panel.appendChild(inputScriptButton);

alert("⚡ Dino Injector loaded! Press the button to activate cheats.");

})(); this hack works whichout tampermonkey and very good he can execute scripts

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