Cookie Clicker Hack

Get Tons Of Money In Cookie Clicker, Use Right Shift to open the menu. Now has WASD controls in the ascending menu. Top bar was removed.

当前为 2022-06-21 提交的版本,查看 最新版本

// ==UserScript==
// @name         Cookie Clicker Hack
// @namespace    http://tampermonkey.net/
// @version      3.0
// @description  Get Tons Of Money In Cookie Clicker, Use Right Shift to open the menu. Now has WASD controls in the ascending menu. Top bar was removed.
// @author       Brenny#0001 | 1Brenny1
// @match        https://orteil.dashnet.org/cookieclicker/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=dashnet.org
// @grant        none
// @license     GNU
// ==/UserScript==

(function() {
    'use strict';

    setTimeout(function(){
        Game.bakeryNameSet("Hacked Bakery");
        var TopBar = document.getElementById("topBar")
        TopBar.remove()
        var GameWindow = document.getElementById("game")
        GamwWindow.styles.onWeb.top = "0px"
    },2000)

    var X = 0
    var Y = 0

    function KeyDown(){
    var KeyCode = event.code;

        if (KeyCode == "KeyW"){
            Y = 1
        } else if (KeyCode == "KeyS") {
            Y = -1
        } else if (KeyCode == "KeyA") {
            X = 1
        } else if (KeyCode == "KeyD") {
            X = -1
        }

        if (KeyCode == "ShiftRight") {
            var Mode = prompt("Which value do you want to modify? (Cookies or sugar lumps)").toLowerCase()
            if (Mode == "cookie" || Mode == "cookies"){
                try {
                    var Amnt = parseInt(prompt("How many cookies do you want added?"))
                    if (!Number.isNaN(Amnt)){
                        Game.Earn(Amnt)
                        alert(Amnt + " Cookies have been added to your account")
                    }
                } catch {
                    alert("Input is not a valid integer")
                }
            } else if (Mode == "lumps" || Mode == "sugar" || Mode == "sugar lump" || Mode == "sugar lumps") {
                try {
                    var Amnt = parseInt(prompt("How many sugar lumps do you want added?"))
                    if (!Number.isNaN(Amnt)) {
                        Game.lumps = Game.lumps + Amnt
                        alert(Amnt + " Sugar lumps have been added to your account")
                    }
                } catch {
                    alert("Input is not a valid integer")
                }
            }
        }
    }
    function KeyUp(){
        var KeyCode = event.code
        if (KeyCode == "KeyW"){
            Y = 0
        } else if (KeyCode == "KeyS") {
            Y = 0
        } else if (KeyCode == "KeyA") {
            X = 0
        } else if (KeyCode == "KeyD") {
            X = 0
        }
    }

    window.addEventListener('keydown', KeyDown, true);
    window.addEventListener('keyup',KeyUp,true);

    setInterval(function(){
        Game.AscendOffXT += X * 1
        Game.AscendOffYT += Y * 1
    },1);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址