1. 首先我们需要打开它浏览器搜索栏中输入chrome://dino/

dino

  1. 以下是修改他的方法

首先F12,其次直接打开chrome的console
console
Runner.instance_.setSpeed(299792458) 这一行可以让小恐龙跑的贼快
Runner.instance_.tRex.setJumpVelocity(1000000) 这一行可以让小恐龙跳的贼高
将下面的代码贴到控制台中,即可完成小恐龙自动奔跑的神操作!

function TrexRunnerBot() {
  const makeKeyArgs = (keyCode) => {
    const preventDefault = () => void 0;
    return {keyCode, preventDefault};
  };
  const upKeyArgs = makeKeyArgs(38);
  const downKeyArgs = makeKeyArgs(40);
  const startArgs = makeKeyArgs(32);
  if (!Runner().playing) {
    Runner().onKeyDown(startArgs);
    setTimeout(() => {
      Runner().onKeyUp(startArgs);
    }, 500);
  }
  function conquerTheGame() {
    if (!Runner || !Runner().horizon.obstacles[0]) return;
    const obstacle = Runner().horizon.obstacles[0];
    if (obstacle.typeConfig && obstacle.typeConfig.type === 'SNACK') return;
    if (needsToTackle(obstacle) && closeEnoughToTackle(obstacle)) tackle(obstacle);
  }
  function needsToTackle(obstacle) {
    return obstacle.yPos !== 50;
  }
  function closeEnoughToTackle(obstacle) {
    return obstacle.xPos <= Runner().currentSpeed * 18;
  }
  function tackle(obstacle) {
    if (isDuckable(obstacle)) {
      duck();
    } else {
      jumpOver(obstacle);
    }
  }
  function isDuckable(obstacle) {
    return obstacle.yPos === 50;
  }
  function duck() {
    Runner().onKeyDown(downKeyArgs);
    setTimeout(() => {
      Runner().onKeyUp(downKeyArgs);
    }, 500);
  }
  function jumpOver(obstacle) {
    if (isNextObstacleCloseTo(obstacle))
      jumpFast();
    else
      Runner().onKeyDown(upKeyArgs);
  }
  function isNextObstacleCloseTo(currentObstacle) {
    const nextObstacle = Runner().horizon.obstacles[1];
 
    return nextObstacle && nextObstacle.xPos - currentObstacle.xPos <= Runner().currentSpeed * 42;
  }
  function jumpFast() {
    Runner().onKeyDown(upKeyArgs);
    Runner().onKeyUp(upKeyArgs);
  }
  return {conquerTheGame: conquerTheGame};
}
let bot = TrexRunnerBot();
let botInterval = setInterval(bot.conquerTheGame, 2);

将下面的代码贴到控制台中,即可无视任何伤害
Runner.instance_.gameOver=function(){}
积分提升速度修改为1000倍…

let hackScore = 0;
 
Object.defineProperty(Runner.instance_, 'distanceRan', {
  get: () => hackScore,
  set: (value) => hackScore = value + Math.floor(Math.random() * 1000),
  configurable: true,
  enumerable: true,
});

刷分BUG,输进控制台按回车后再开始游戏即可
Runner.instance_.setSpeed(99999);
恢复正常请输入:
Runner.instance_.setSpeed(10);
倒退模式(没有什么用)请输入:
Runner.instance_.setSpeed(-10);
右键-检查-找到“offline-resources”,这个 img 后面的链接就是放图片的位置了:
https://pic2.zhimg.com/80/v2-ed3d7188d9871f0dd64038d58aa0ec41_720w.jpg
一番魔改后:
马里奥
*特别提示:
这些代码可以叠加使用。
在输入完一个代码后按回车,然后输入另一个代码再按回车即可实现叠加。*