Skip to content

Instantly share code, notes, and snippets.

@jdivock
Last active September 6, 2016 03:39
Show Gist options
  • Save jdivock/9c1a843b18167fcc73e531c46462366c to your computer and use it in GitHub Desktop.
Save jdivock/9c1a843b18167fcc73e531c46462366c to your computer and use it in GitHub Desktop.
Cheatin at cookie clicker
const autoClickBig = () => {
const bigCookie = $('#bigCookie');
const bigClickInterval = setInterval(() => bigCookie.click(), 0);
}
// Vanilla auto-click golden
setInterval(() => {
const $shimmer = document.querySelector('div.shimmer');
$shimmer && $shimmer.click();
}, 1000)
// CM golden clicker
const CMGolden = () => {
const gameChildren = $('#game.focusLeft').children;
const goldenCookie = gameChildren[gameChildren.length - 1];
const goldenClickInterval = setInterval(() => {
if (goldenCookie.style.display !== 'none') {
goldenCookie.click();
}
}, 1000);
}
const checkBank = () => {
k=6000;
if (Game.HasUnlocked("Get lucky") === 1) {
k=k*7
}
bf=["Frenzy","Elder%20frenzy","Clot","Dragon Harvest","High-five","Slap to the face","Congregation","Senility","Luxuriant harvest","Locusts","Ore vein","Cave-in","Oiled-up","Jammed machinery","Juicy profits","Recession","Fervent adoration","Crisis of faith","Manabloom","Magivores","Delicious lifeforms","Black holes","Breakthrough","Lab disaster","Righteous cataclysm","Dimensional calamity","Golden ages","Time jam","Extra cycles","Predictable tragedy","Solar flare","Eclipse"];
for (i in bf){
if (Game.hasBuff(bf[i])) {
k=k/Game.buffs[bf[i]].power
}
}
console.log("Bank: "+(Beautify(Game.cookiesPs*k))+"\nLucky: "+(Beautify(Game.cookiesPs*k*0.15)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment