NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Cookie Clicker Hack // @version 1.1 // @description Lol the end is near...Cookies! // @author Orion31 // @match http://orteil.dashnet.org/cookieclicker/ // @require http://userscripts-mirror.org/scripts/source/276064.user.js // @require http://code.jquery.com/jquery-latest.js // @grant none // @license MIT // ==/UserScript== function refresh() { Game.Prompt("<h1>REFRESHING</h1>"); setTimeout(function () { location.reload(); }, 2500); } var shift = false; document.addEventListener("keydown", function (event) { if (event.shiftKey) { $("#commentsText").html( "Hax Ready!<br/>SHIFT + ? for help."); shift = true; } }); document.addEventListener("keyup", function (event) { if (shift) { Game.getNewTicker(); shift = false; } }); var sparkle = false; var mousex, mousey; $(document).mousemove(function (event) { mousex = event.pageX; mousey = event.pageY; }); setInterval(function() { if (sparkle) { Game.SparkleAt(mousex, mousey); } }, 350); function achieveAll () { Game.AchievementsById.forEach(function(e) { // if (e.hide == 3) Game.Win(e.name); }); } Mousetrap.bind("shift+i", function () {Game.cookies = Infinity;}); Mousetrap.bind("shift+1", function () {Game.cookies += 100000;}); Mousetrap.bind("shift+2", function () {Game.cookies += 200000;}); Mousetrap.bind("shift+3", function () {Game.cookies += 300000;}); Mousetrap.bind("shift+4", function () {Game.cookies += 400000;}); Mousetrap.bind("shift+5", function () {Game.cookies += 500000;}); Mousetrap.bind("shift+6", function () {Game.cookies += 600000;}); Mousetrap.bind("shift+7", function () {Game.cookies += 700000;}); Mousetrap.bind("shift+8", function () {Game.cookies += 800000;}); Mousetrap.bind("shift+9", function () {Game.cookies += 900000;}); Mousetrap.bind("shift+0", function () {Game.cookies += 1000000;}); Mousetrap.bind("alt+shift+0", function () {Game.cookies += 100000000000;}); Mousetrap.bind("shift+-", function () { Game.cookies = 0; }); Mousetrap.bind("alt+shift+-", function () { for (var i in Game.AchievementsById) { var me=Game.AchievementsById[i]; me.won=0; } Game.AchievementsOwned=0; Game.goldenClicks=0; Game.missedGoldenClicks=0; Game.Reset(1); Game.resets=0; Game.fullDate=parseInt(Date.now()); Game.bakeryName=Game.GetBakeryName(); Game.bakeryNameRefresh(); Game.cookiesReset=0; Game.prestige=0; Game.heavenlyChips=0; Game.heavenlyChipsSpent=0; Game.heavenlyCookies=0; Game.permanentUpgrades=[-1,-1,-1,-1,-1]; Game.ascensionMode=0; }); Mousetrap.bind("shift+s", function () {sparkle = !sparkle;}); Mousetrap.bind("shift+m", function () {var s = prompt("Type in a message to show up in game."); Game.Prompt(s);}); Mousetrap.bind("shift+a", function () {achieveAll();}); Mousetrap.bind("shift+p", function () {Game.PARTY = !Game.PARTY; if (!Game.PARTY) {refresh();}}); Mousetrap.bind("shift+n", function () {var s = prompt("Choose your bakery name. You may include HTML."); Game.bakeryName = s; Game.bakeryNameRefresh();}); Mousetrap.bind("shift+b", function () {var name = prompt("What building should we buy?"); var amount = parseInt(prompt("How much?"), 10); Game.Objects[name].amount += amount;}) Mousetrap.bind("shift+alt+b", function () {var name = prompt("What building's amount do you want to change?"); var amount = parseInt(prompt("How much do you want of it?"), 10); Game.Objects[name].amount = amount;}) Mousetrap.bind("shift+c", function () {var name = prompt("What building's price do you want to change?"); var price = parseInt(prompt("Cost?"), 10); Game.Objects[name].basePrice = price;}) Mousetrap.bind("shift+/", function () {Game.Prompt("<span style=\"font-size: 20px\">== HACK HELP MENU ==</span><br /> Each key MUST be pressed with SHIFT being held down. <br /> The comments section above should say \"Hax Ready\". <br />" + "<span style=\"color:white; font-size: 15px;\">**Keys**:</span> <br /><span style=\"color:lime\">[ADD]</span><br /> 1 = Add 100,000 cookies. <br /> 2 = Add 200,000<br /> 3 = Add 300,000, and so on to 9.<br /> 0 = Add 1,000,000. <br /> 'ALT + 0' = Add 100,000,000,000 Cookies.<br />" + "I = Infinite Cookies! <br />B = Buy Buildings (free)<br/>ALT + B = Set the Amount Owned of a Building<br/>C = Change Cost of a Building<br/><span style=\"color:red\">[REMOVE]</span><br />'-' = Set cookies to 0. <br />'ALT + -' = Wipe Save.<br/>" + "<span style=\"color:purple\">[MISC]</span><br/>S = Toggle Sparkle.<br/>M = Prompt Message<br/>P = Toggle Party Mode. (Requires refresh after turned off.)<br/>N = Change Bakery Name [With HTML]<br/>A = Unlock all achievements.");});