Greasy Fork

Cookie Clicker Hack

Get Tons Of Money In Cookie Clicker

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

// ==UserScript==
// @name         Cookie Clicker Hack
// @namespace    NONE
// @version      1
// @description  Get Tons Of Money In Cookie Clicker
// @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';
    function KeyClicked(){
    var KeyCode = event.keyCode;
        if (KeyCode == 38) {
            try {
                var Amnt = parseInt(prompt("How many cookies would you like?"))
                if (!Number.isNaN(Amnt)){
                    Game.Earn(Amnt)
                    alert(Amnt + " Cookies have been added to your account")
                }
            } catch {
                alert("Input is not a valid integer")
            }
        }
    }
    window.addEventListener('keydown', KeyClicked, true);
})();