Skip to content

Instantly share code, notes, and snippets.

@kohenkatz
Created October 22, 2017 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohenkatz/92236ee8c39bcbd906d6865ef85ab066 to your computer and use it in GitHub Desktop.
Save kohenkatz/92236ee8c39bcbd906d6865ef85ab066 to your computer and use it in GitHub Desktop.
Cookie Clicker "Helpers"
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