Home » Chrome dinosaur game Hack – Autoplay

Chrome dinosaur game Hack – Autoplay

Hi Guys,
Today I’m going to show you how to Hack Chrome Dinosaur ie Dino T-Rex.
Since this runs Browser client-side using javascript that means it’s is Hackable.

I’m also telling you how to stream autoplay Dino game to Youtube and Facebook.
You can use a few lines of javascript code to Run your Dino Infinite time (If Electricity and PC not BUSTED).
Also, show you how to play the game with the Internet (Offline Mode in Browser.)

Lets starts:

  1. First Open Google Chrome Browser (No need to disconnect Internet)
  2. Open any Website in my case https://www.thebadgamer.in
  3. Right Click and then click on Inspect. See Image: inspect.png
  4. Then Click on Network Tab show in Browser Inspect window. See Image: network.png
  5. Select Offline mode from select box. Please screenshot.(This will disable internet for current Tab) and refresh page. Hurree now you have no internet connection in current tab
    If you wants internet connect in current tab then revert back to Online.
  6. Now first we need to make our chrome Dino Not Killed. See below js code to avoid kill when dino hit with obstacle. var original = Runner.prototype.gameOver
    Runner.prototype.gameOver = function (){}
  7. Now you have code. I will show you how we use this code.
    1. Click console tab in Inspect window. see image.
    2. Copy Js code lines and paste in console editor and hit Enter. See Image:
    3. For check Dino is not died when hit. Press Space to RUN.
    4. Hurree. Now our Dino Never dead.
  8. Now we have to jump when any obstacle near to our Dino.
    Below JS code to jump our Dino.
  9. const autoPlayLoop = function() { const JUMP_SPEED = 50; const DISTANCE_BEFORE_JUMP = 120; const instance = window.Runner.instance_; const tRex = instance.tRex; if( tRex.jumping ) { requestAnimationFrame(autoPlayLoop); return; } const tRexPos = tRex.xPos; const obstacles = instance.horizon.obstacles; const nextObstacle = obstacles.find(o => o.xPos > tRexPos); if( nextObstacle && ( nextObstacle.xPos - tRexPos ) <= DISTANCE_BEFORE_JUMP ) { tRex.startJump(JUMP_SPEED) } requestAnimationFrame(autoPlayLoop); } requestAnimationFrame(autoPlayLoop);
  10. Just Copy and paste above js code same as done before in point 6.
  11. All done. Now Your dino jump before every obstacle.
  12. If you want’s to Stream this autoplay Dino you can easily use OBS . (If you don’t know how to use OBS please comment I’ll Post a video for OBS)

If you like this please subscript my Youtube channel.

If you like this please subscript to my Youtube channel.
https://www.youtube.com/channel/UCxLcU1PkE85nIwRwDXBW8sg

TheBadGamer

View all posts

Add comment