Chrome Dino Simple Hack For https://dino-chrome.com/

Simple Invincibility and Speed Hack

目前為 2019-11-12 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Chrome Dino Simple Hack For https://dino-chrome.com/
// @namespace    http://tampermonkey.net/
// @version      2.0.2
// @description  Simple Invincibility and Speed Hack
// @author       Hypno7767
// @icon https://cdn.dribbble.com/users/974273/screenshots/3270748/chrom_no_internet_connection.png
// @include        https://dino-chrome.com/
// @include        https://t-rex-game.com/
// @grant        none
// ==/UserScript==


// NOTE: I am fully aware this is basic as f*ck, but stay with me here.
// NOTE: I am fully aware this is basic as f*ck, but stay with me here.
// NOTE: I am fully aware this is basic as f*ck, but stay with me here.
// NOTE: I am fully aware this is basic as f*ck, but stay with me here.
// NOTE: I am fully aware this is basic as f*ck, but stay with me here.
// it really took me a long time to figure this out. HTML is so much easier, dammit.

// Invincibility Script
Runner.instance_.gameOver = function(){}
//Speed hack
var button = document.createElement("Button");
button.innerHTML = "Speed Hack Enable";
button.style = "top:0;right:0;position:absolute;z-index:99999;padding:20px;";
document.body.appendChild(button);
button.onclick = function(){Runner.instance_.setSpeed(40)};

// Other Speed Hack (press "s" for it)

window.addEventListener("keydown", hehe, false);

showHacks();

function showHacks(){
    var box = document.getElementById("desktop-controls");
    var controls = document.createElement("div");
    controls.className = "title2";
    controls.id = "adamsstuff";
    var lol = document.getElementById("adamsstuff");
}

function hehe(e){
    if(e.keyCode == "83"){
        var a = prompt("What Speed Would You Like?");
        if(isNaN(a)){
            window.alert("Please enter a number next time");
        }else{
            Runner.instance_.setSpeed(a);
        }
    }

else if(e.keyCode == "68"){
        var b = prompt("What Distance Would You Like?");
        if(isNaN(b)){
            window.alert("Please enter a number next time");
        }else{
            Runner.instance_.distanceRan = b
        }
    }
}