Dino Chrome Hacks Menu 30+ Commands

hi

目前為 2022-10-29 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Dino Chrome Hacks Menu 30+ Commands
// @namespace    http://tampermonkey.net/
// @version      1.0
// @homepage     https://greasyfork.org/scripts/
// @description  hi
// @author       Shortboi
// @match        chrome://dino
// @grant        none
// @license      GNU GPLv3
// ==/UserScript==
 
//you can type the commands in console and it will work. Just type the function.
 
var smilelogo = `\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2588\u2557\u2591\u2591\u2591\u2588\u2588\u2588\u2557  \u2588\u2588\u2557  \u2588\u2588\u2557\u2591\u2591\u2591\u2591\u2591  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d  \u2588\u2588\u2588\u2588\u2557\u2591\u2588\u2588\u2588\u2588\u2551  \u2588\u2588\u2551  \u2588\u2588\u2551\u2591\u2591\u2591\u2591\u2591  \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d
\u255a\u2588\u2588\u2588\u2588\u2588\u2557  \u2591\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551  \u2588\u2588\u2551  \u2588\u2588\u2551\u2591\u2591\u2591\u2591\u2591  \u2588\u2588\u2588\u2588\u2588\u2557\u2591\u2591
\u2591\u255a\u2550\u2550\u2550\u2588\u2588\u2557  \u2588\u2588\u2551\u255a\u2588\u2588\u2554\u255d\u2588\u2588\u2551  \u2588\u2588\u2551  \u2588\u2588\u2551\u2591\u2591\u2591\u2591\u2591  \u2588\u2588\u2554\u2550\u2550\u255d\u2591\u2591
\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d  \u2588\u2588\u2551\u2591\u255a\u2550\u255d\u2591\u2588\u2588\u2551  \u2588\u2588\u2551  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
\u255a\u2550\u2550\u2550\u2550\u2550\u255d  \u2591\u255a\u2550\u255d\u2591\u2591\u2591\u2591\u2591\u255a\u2550\u255d  \u255a\u2550\u255d  \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d  \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d
`
alert('s c g gmax score 999999 stuck scorelag dead accelerate1 accelerate0.1 help extra info1 info2 info3 info4 info5 info6 info7 info8 info9 accelerinfo acceler1info allcmds length30 infoheight clear sussy? nyan mach874030.49 hidden weavethesmallcacti hacks c00lkidd hacks = true')
 
var passwrong = 'WRONG'
const  myCustomFunction = i => console.error(passwrong);
let iteration = 0;
const delay = 10;
const tillCount = 1000;
 
 
nyan = new Audio('https://vincens2005.github.io/vr/Nyan%20Cat%20[original].mp3');
if (typeof nyan.loop == 'boolean') {
  nyan.loop = true;
}
else {
  nyan.addEventListener('ended', function() {
    this.currentTime = 0;
    this.play();
  }, false);
}
 
console.log(smilelogo);
 
function keys() {
 
  let input = prompt('');
  switch (input) {
    case 's': speediskey()
      break;
    case 'c': noCollision()
      break;
    case 'g': Gravity50()
      break;
    case 'gmax': Gravitymax()
      break;
    case 'score': setScore()
      break;
    case '999999': setScoremax()
      break;
    case 'stuck': noMovement()
      break;
    case 'scorelag': setScoremalf()
      break;
    case 'dead': Gameover()
      break;
    case 'mach874030.49': Mach()
      break;
    case 'accelerate0.1': Speedfrac110()
      break;
    case 'accelerate1': Speed1()
      break;
    case 'hidden': INVIS()
      break;
    case 'help': HELP()
      break;
    case 'extra': INFO()
      break;
    case 'info1': speediskeyINFO()
      break;
    case 'info2': noCLIPinfo()
      break;
    case 'info3': GravINFO()
      break;
    case 'info4': GravmaxINFO()
      break;
    case 'info5': ScoreINFO()
      break;
    case 'info6': ScoremaxINFO()
      break;
    case 'info8': LAGINFO()
      break;
    case 'accelerinfo': ACCELERINFO()
      break;
    case 'acceler1info': ACCELER1INFO()
      break;
    case 'allcmds': CMDINFO()
      break;
    case 'info7': stuckINFO()
      break;
    case 'clear': CLEARCMDS()
      break;
    case 'length30': AREA()
      break;
    case 'infoheight': AREAINFO()
      break;
    case 'weavethesmallcacti': AREAsmol()
      break;
    case 'hacks': HACKS()
      break;
    case 'c00lkidd': robloxhackerlol()
      break;
    case 'hacks = true': HACKSenabled()
      break;
    case 'sussy?': SUSSYBAKA()
      break;
    case 'nyan': nyancat()
      break;
    default:console.log('you exited, type main() to go to menu again.'), setTimeout(1750); 
  }
}
 
function password() {
 
  let input = prompt('');
  switch (input) {
    case 'stto': stto()
      break;
    default:
   if (setInterval(() => {
    if (iteration < tillCount) {
      iteration ++;
      myCustomFunction(iteration);
    }
}, delay))  {
    }
  }
}
 
 
function infocmdkeys() {
  console.log(`
Type "allcmds" for all commands
`);
 
  let input = prompt('');
  switch (input) {
    case 's': speediskey()
      break;
    case 'c': noCollision()
      break;
    case 'g': Gravity50()
      break;
    case 'gmax': Gravitymax()
      break;
    case 'score': setScore()
      break;
    case '999999': setScoremax()
      break;
    case 'stuck': noMovement()
      break;
    case 'scorelag': setScoremalf()
      break;
    case 'dead': Gameover()
      break;
    case 'mach874030.49': Mach()
      break;
    case 'accelerate0.1': Speedfrac110()
      break;
    case 'accelerate1': Speed1()
      break;
    case 'hidden': INVIS()
      break;
    case 'help': HELP()
      break;
    case 'extra': INFO()
      break;
    case 'info1': speediskeyINFO()
      break;
    case 'info2': noCLIPinfo()
      break;
    case 'info3': GravINFO()
      break;
    case 'info4': GravmaxINFO()
      break;
    case 'info5': ScoreINFO()
      break;
    case 'info6': ScoremaxINFO()
      break;
    case 'info8': LAGINFO()
      break;
    case 'accelerinfo': ACCELERINFO()
      break;
    case 'acceler1info': ACCELER1INFO()
      break;
    case 'allcmds': CMDINFO()
      break;
    case 'info7': stuckINFO()
      break;
    case 'clear': CLEARCMDS()
      break;
    case 'length30': AREA()
      break;
    case 'infoheight': AREAINFO()
      break;
    case 'weavethesmallcacti': AREAsmol()
      break;
    case 'hacks': HACKS()
      break;
    case 'c00lkidd': robloxhackerlol()
      break;
    case 'hacks = true': HACKSenabled()
      break;
    case 'sussy?': SUSSYBAKA()
      break;
    case 'nyan': nyancat()
      break;
    default: console.log('you exited, type main() to go to menu again.'), setTimeout(1750);
  }
}
 
function helpcmdkeys() {
  console.log(`
Type "extra" for commands
`);
 
  let input = prompt('');
  switch (input) {
    case 's': speediskey()
      break;
    case 'c': noCollision()
      break;
    case 'g': Gravity50()
      break;
    case 'gmax': Gravitymax()
      break;
    case 'score': setScore()
      break;
    case '999999': setScoremax()
      break;
    case 'stuck': noMovement()
      break;
    case 'scorelag': setScoremalf()
      break;
    case 'dead': Gameover()
      break;
    case 'mach874030.49': Mach()
      break;
    case 'accelerate0.1': Speedfrac110()
      break;
    case 'accelerate1': Speed1()
      break;
    case 'hidden': INVIS()
      break;
    case 'help': HELP()
      break;
    case 'extra': INFO()
      break;
    case 'info1': speediskeyINFO()
      break;
    case 'info2': noCLIPinfo()
      break;
    case 'info3': GravINFO()
      break;
    case 'info4': GravmaxINFO()
      break;
    case 'info5': ScoreINFO()
      break;
    case 'info6': ScoremaxINFO()
      break;
    case 'info8': LAGINFO()
      break;
    case 'accelerinfo': ACCELERINFO()
      break;
    case 'acceler1info': ACCELER1INFO()
      break;
    case 'allcmds': CMDINFO()
      break;
    case 'info7': stuckINFO()
      break;
    case 'clear': CLEARCMDS()
      break;
    case 'length30': AREA()
      break;
    case 'infoheight': AREAINFO()
      break;
    case 'weavethesmallcacti': AREAsmol()
      break;
    case 'hacks': HACKS()
      break;
    case 'c00lkidd': robloxhackerlol()
      break;
    case 'hacks = true': HACKSenabled()
      break;
    case 'sussy?': SUSSYBAKA()
      break;
    case 'nyan': nyancat()
      break;
    default: console.log('you exited, type main() to go to menu again.'), setTimeout(1750);
  }
}
 
function main() {
  console.clear();
  console.log(smilelogo);
  console.log(`
Type "help" for commands
`);
 
  let input = prompt('');
  switch (input) {
    case 's': speediskey()
      break;
    case 'c': noCollision()
      break;
    case 'g': Gravity50()
      break;
    case 'gmax': Gravitymax()
      break;
    case 'score': setScore()
      break;
    case '999999': setScoremax()
      break;
    case 'stuck': noMovement()
      break;
    case 'scorelag': setScoremalf()
      break;
    case 'dead': Gameover()
      break;
    case 'mach874030.49': Mach()
      break;
    case 'accelerate0.1': Speedfrac110()
      break;
    case 'accelerate1': Speed1()
      break;
    case 'hidden': INVIS()
      break;
    case 'help': HELP()
      break;
    case 'extra': INFO()
      break;
    case 'info1': speediskeyINFO()
      break;
    case 'info2': noCLIPinfo()
      break;
    case 'info3': GravINFO()
      break;
    case 'info4': GravmaxINFO()
      break;
    case 'info5': ScoreINFO()
      break;
    case 'info6': ScoremaxINFO()
      break;
    case 'info8': LAGINFO()
      break;
    case 'accelerinfo': ACCELERINFO()
      break;
    case 'acceler1info': ACCELER1INFO()
      break;
    case 'allcmds': CMDINFO()
      break;
    case 'info7': stuckINFO()
      break;
    case 'clear': CLEARCMDS()
      break;
    case 'length30': AREA()
      break;
    case 'infoheight': AREAINFO()
      break;
    case 'weavethesmallcacti': AREAsmol()
      break;
    case 'hacks': HACKS()
      break;
    case 'c00lkidd': robloxhackerlol()
      break;
    case 'hacks = true': HACKSenabled()
      break;
    case 'clearcmds': CLEARCMDS()
      break;
    case 'sussy?': SUSSYBAKA()
      break;
    case 'nyan': nyancat()
      break;
    default: console.log('you exited, type main() to go to menu again.'), setTimeout(1750);
  }
}
 
main();
 
function speediskey() {
  Runner.instance_.setSpeed(100)
  prompt("command speed enabled, press ok to go to main menu");
  main();
}
 
function noCollision() {
  Runner.instance_.gameOver = function() { };
  prompt("no collision enabled, press ok to go to main menu");
  main();
}
 
function Gravity50() {
  Runner.instance_.tRex.config.GRAVITY = 0.1
  prompt("Gravity 50 enabled, press ok to go to main menu");
  main();
}
 
function Gravitymax() {
  Runner.instance_.tRex.config.GRAVITY = 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
  prompt("Gravity Infinite, press ok to go to main menu");
  main();
}
 
function stto() {
  console.warn("ACCESS GRANTED")
  document.body.style.backgroundColor = "lime";
  Runner.instance_.gameOver = function() { };
  Runner.instance_.setSpeed(100)
  Runner.instance_.tRex.config.GRAVITY = 0.1
  alert("You join SMILE, welcome.")
  document.body.style.backgroundImage = "url('');"
}
 
function setScore() {
  Runner.instance_.distanceRan = 10000 / Runner.instance_.distanceMeter.config.COEFFICIENT
  prompt("Score set to 10000, press ok to go to main menu");
  main();
}
 
function setScoremax() {
  Runner.instance_.distanceRan = 999950 / Runner.instance_.distanceMeter.config.COEFFICIENT
  prompt("this might be buggy ngl");
  main();
}
 
function noMovement() {
  Runner.instance_.playingIntro = true
  prompt("No Movement enabled, press ok to go to main menu");
  main();
}
 
function setScoremalf() {
  Runner.instance_.highestScore = 99999
  prompt("Score Malfunction enabled, press ok to go to main menu");
  main();
}
 
function Gameover() {
  Runner.instance_.gameOver();
  console.warn("u ded")
}
 
function Mach() {
  Runner.instance_.config.ACCELERATION = 100000
  prompt("Lightspeed enabled 😳, press ok to go to main menu");
  main();
}
 
function HELP() {
  console.log("Commands: s, c, g, gmax, score, 999999, stuck, extra")
  prompt("press ok to go to main menu");
  helpcmdkeys();
}
 
function INFO() {
  console.log("EXTRA: scorelag, dead, accelerate0.1, accelerate1")
  prompt("press ok to go to main menu");
  infocmdkeys();
}
 
function INVIS() {
  Runner.instance_.tRex.config.HEIGHT = 0
  prompt("invisible mode enabled (it's not really invis, it's that you just are tiny), press ok to go to main menu");
  main();
}
 
function Speedfrac110() {
  Runner.instance_.config.ACCELERATION = 0.1
  prompt("Accerlerate0.1 enabled, press ok to go to main menu");
  main();
}
 
function Speed1() {
  Runner.instance_.config.ACCELERATION = 1
  prompt("Accerlerate1 enabled, press ok to go to main menu");
  main();
}
 
function speediskeyINFO() {
  console.log("your speed will be set to 100");
  prompt("press ok to go to main menu");
  infocmdkeys();
}
 
function noCLIPinfo() {
  console.log("you will enter god mode")
  prompt("press ok to go to main menu");
  keys();
}
 
function GravINFO() {
  console.log("your gravity will be set to 50")
  prompt("press ok to go to main menu");
  keys();
}
 
function GravmaxINFO() {
  console.log("your gravity will be set to 1e-560")
  prompt("press ok to go to main menu");
  keys();
}
 
function ScoreINFO() {
  console.log("your score will be set to 10000")
  prompt("press ok to go to main menu");
  keys();
}
 
function ScoremaxINFO() {
  console.log("your score will be 999999 when you die, also read disclaimer")
  prompt("press ok to go to main menu");
  keys();
}
 
function stuckINFO() {
  console.log("you can't move")
  prompt("press ok to go to main menu");
  keys();
}
 
function LAGINFO() {
  console.log("your high score wont change when you die")
  prompt("press ok to go to main menu");
  keys();
}
 
function CMDINFO() {
  console.log(`
s c g gmax score 999999 stuck scorelag dead accelerate1 accelerate0.1 help extra info1 info2 info3 info4 info5 info6 info7 info8 info9 accelerinfo acceler1info allcmds length30 infoheight clearcmds
`)
  prompt("press ok to go to main menu");
  keys();
}
 
function ACCELERINFO() {
  console.log("your acceleration will be set to 0.1, kinda useless but i'm trying to code more cmds so yeah")
  prompt("press ok to go to main menu");
  keys();
}
 
function ACCELER1INFO() {
  console.log("your acceleration will be set to 1")
  prompt("press ok to go to main menu");
  keys();
}
 
function AREAINFO() {
  console.log("your height will be set to 30")
  prompt("press ok to go to main menu");
  keys();
}
 
function AREA() {
  Runner.instance_.tRex.config.HEIGHT = 30
  prompt("Height30 enabled, press ok to go to main menu");
  main();
}
 
function AREAsmol() {
  Runner.instance_.tRex.config.HEIGHT = 13
  prompt("u smol, press ok to go to main menu");
  main();
}
 
function HACKS() {
  console.error("bruh")
  prompt("lol you thought dumbahh, press ok to go to main menu");
  keys();
}
 
function robloxhackerlol() {
  document.body.style.backgroundColor = "red";
  document.body.style.backgroundImage = "url('https://static.wikia.nocookie.net/terminated/images/a/ac/C00lkiddEarlyYears.png/revision/latest?cb=20211103073101')";
  Runner.instance_.setArcadeMode()
  Runner.instance_.tRex.config.WIDTH = 10000
  prompt("roblo hakr 💀, press ok to go to main menu");
  keys();
}
 
function HACKSenabled() {
  password();
}
 
function CLEARCMDS() {
  location.reload()
  console.log("the location.reload() doesn't work")
  prompt("just do ctrl+r you bum XD")
  main();
}
 
function SUSSYBAKA() {
  console.warn("SUSSY MODE ENABLED")
  document.body.style.backgroundImage = "url('https://earlygame.com/uploads/images/_article/imposter-card.jpg')";
  Runner.instance_.tRex.config.DROP_VELOCITY = 100
  Runner.instance_.tRex.config.INITIAL_JUMP_VELOCITY = -10000
  alert("You can vent, just press space.")
  alert("if you want to become sussy, replace the online-resources-1x with ")
  main();
}
 
function nyancat() {
  console.log("nyan time!")
  document.body.style.backgroundImage = "url('https://i.kym-cdn.com/photos/images/original/000/128/096/Nyancatless20110725-22047-2vf3z5.gif')";
  Runner.instance_.tRex.config.DROP_VELOCITY = -10
  Runner.instance_.tRex.config.INITIAL_JUMP_VELOCITY = -10000
  nyan.play()
}