Skip to content

Instantly share code, notes, and snippets.

@ymrl
Last active May 13, 2023 23:28
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 ymrl/6595051 to your computer and use it in GitHub Desktop.
Save ymrl/6595051 to your computer and use it in GitHub Desktop.
Cookie Clicker Cheat Script
setInterval(function(){
var g=Game,h=g.goldenCookie,o=g.ObjectsById,u=g.UpgradesInStore,
s=o.concat(u).sort(function(a,b){return a.bought-b.bought;}),
l=s.length,i;
g.ClickCookie();
for(i=0;i<l;i++){s[i].buy();}
h.life>0&&h.click();
},10);
@JJHAXS
Copy link

JJHAXS commented May 4, 2022

it dosnt work]\

@vinzy2
Copy link

vinzy2 commented May 25, 2022

click ctrl + I + shift go to console and past it there @JJHAXS

@alexnitronowpls
Copy link

and then what

I Am really confused

@ymrl
Copy link
Author

ymrl commented Jun 13, 2022

I had written this script in 2013!! The contents is considered to be very outdated.
Today I have tried with v2.048, Game.goldenCookie does not exist. h.life>0&&h.click() in Line 7 doesn't work.

Feel free to reference it, but keep it in mind that it is out of date.

@Sk1nnyB01
Copy link

Sk1nnyB01 commented Jan 16, 2023

It is very simple and similar with most Github browser exploits.
1- Copy Script
2-Click on star to bookmark the page
3.a- Edit bookmark by clicking done then right click bookmark and click edit or
3.b- Click "more" before you exit the original bookmark popup
4-Delete URL
5-Type "javascript:" without quotations
6-paste script after you type the above
7-Click save
8-Go to whatever website it should work on and just click on the bookmark one time
9-It should work

@jam4859
Copy link

jam4859 commented Apr 17, 2023

how do you do that if you are are on a chrom book

@idrkaa
Copy link

idrkaa commented May 13, 2023

it deletes all of my cookies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment