Created
October 22, 2017 21:47
-
-
Save kohenkatz/92236ee8c39bcbd906d6865ef85ab066 to your computer and use it in GitHub Desktop.
Cookie Clicker "Helpers"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makeCookie() { | |
Game.shimmerTypes.golden.time = Game.shimmerTypes.golden.maxTime; | |
} | |
function clickVisibleCookies() { | |
Game.shimmers.forEach(function(item) { | |
if (item.type === 'golden') { | |
item.l.click(); | |
} | |
}); | |
} | |
_clicker = null; | |
function clickCookiesStart() { | |
_clicker = setInterval(clickVisibleCookies, 500); | |
} | |
function clickCookiesStop() { | |
clearInterval(_clicker); | |
} | |
_maker = null; | |
function makeCookiesStart(time) { | |
_maker = setInterval(makeCookie, time); | |
} | |
function makeCookiesStop() { | |
clearInterval(_maker); | |
} | |
_bigClicker = null; | |
function bigCookieClick() { | |
document.getElementById('bigCookie').click(); | |
} | |
function bigCookieStart() { | |
_bigClicker = setInterval(bigCookieClick, 100) | |
} | |
function bigCookieStop() { | |
clearInterval(_bigClicker) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment