A handcrafted collection of JavaScript mods that refine and improve the Cookie Clicker experience.
Browse Mods โข Installation โข Compatibility โข Contributing
This repository contains a collection of quality-of-life JavaScript mods for Cookie Clicker โ the iconic idle game by Orteil. Each mod is designed to be:
- ๐ชถ Lightweight โ No bloat, no dependencies, no frameworks.
- ๐ง Non-destructive โ Mods patch game behaviour without corrupting save files.
- ๐งฉ Modular โ Each mod is self-contained and can be used independently.
- ๐ Transparent โ Every line of code is readable and documented.
Whether you're a casual clicker or a hardcore optimizer, these mods help you shape the game to fit your own playstyle.
Tired of wasting a golden cookie on a small luck bonus? This mod eliminates the Lucky outcome entirely from the golden cookie pool.
| Property | Details |
|---|---|
| File | no-lucky-cookie.js |
| Category | Golden Cookie / RNG |
| Impact | Modifies golden cookie effect pool |
| Reversible | โ Yes โ reload the game to restore default behaviour |
In vanilla Cookie Clicker, clicking a Golden Cookie can trigger one of several effects โ including the Lucky effect, which gives you a modest flat cookie bonus based on your current bank. For optimized runs, the Lucky reward is often the weakest outcome, especially when you're waiting for a Frenzy + Click Frenzy combo chain.
This mod removes Lucky from the list of possible golden cookie effects so it will never be drawn when you click a shiny cookie.
| Before | After |
|---|---|
| Lucky, Frenzy, Click Frenzy, Elder Frenzy, etc. | Frenzy, Click Frenzy, Elder Frenzy, etc. |
| Random โ Lucky can appear anytime | Lucky is fully excluded from the pool |
// Removes the "Lucky" effect from the golden cookie effect pool
const originalShimmer = Game.shimmer.prototype.pop;
Game.shimmer.prototype.pop = function () {
const luckyIndex = Game.goldenCookieChoices.indexOf('Lucky');
if (luckyIndex !== -1) {
Game.goldenCookieChoices.splice(luckyIndex, 1);
}
return originalShimmer.apply(this, arguments);
};Freezes the mana cost of Grimoire spells so they never increase, letting you cast freely without the spiraling price penalty.
| Property | Details |
|---|---|
| File | grimoire-mana-lock.js |
| Category | Grimoire / Magic |
| Impact | Overrides mana cost scaling logic |
| Reversible | โ Yes โ reload the game to restore default behaviour |
The Grimoire mini-game in Cookie Clicker assigns a mana cost to each spell. By default, casting spells increases the cost of subsequent casts for a cooldown period โ a mechanic meant to throttle spell spam.
This mod prevents the mana price from increasing after each cast, keeping spells permanently affordable and allowing you to cast as many times as your current mana pool allows without facing escalating costs.
| Before | After |
|---|---|
| Each cast raises the cost of the next spell | Mana cost stays constant no matter how many casts |
| Requires waiting for prices to reset | Cast freely as long as you have mana |
// Prevents mana cost escalation in the Grimoire mini-game
const originalGetCost = Game.Objects.Wizard_tower.minigame.getSpellCost;
Game.Objects.Wizard_tower.minigame.getSpellCost = function (spell) {
const cost = originalGetCost.call(this, spell);
// Return base cost only, ignoring the inflation multiplier
return spell.costMin;
};Prerequisites: You need access to Cookie Clicker running in a browser (Steam version also supported via the developer console).
- Open Cookie Clicker in your browser.
- Press
F12(orCtrl+Shift+I/Cmd+Option+Ion Mac) to open the DevTools. - Click the Console tab.
- Copy the contents of the desired
.jsmod file from this repository. - Paste it into the console and press Enter.
โ ๏ธ The mod will be active for the current session only. It will need to be re-applied after a page refresh.
For a persistent experience, use a browser extension like Tampermonkey or Violentmonkey.
- Install Tampermonkey from your browser's extension store.
- Click the Tampermonkey icon โ Create a new script.
- Replace the default content with the contents of your chosen mod file, adding the following header at the top:
// ==UserScript==
// @name Cookie Clicker โ No Lucky Cookie
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Removes Lucky from the golden cookie effect pool
// @match https://orteil.dashnet.org/cookieclicker/*
// @grant none
// @run-at document-idle
// ==/UserScript==- Save the script (
Ctrl+S). - Reload Cookie Clicker โ the mod will apply automatically every time you visit the game.
Requires Cookie Clicker v2.031+
- From the main screen, go to Options โ Mods โ Manage mods โ Open mod folder.
- Create a new folder for your mod (e.g.
no-lucky-cookie/). - Inside, create an
info.txtfile following the Cookie Clicker mod format. - Place your mod
.jsfile inside the same folder. - Enable the mod from the mod menu and reload.
Cookie Clicker exposes a rich global Game object in the browser's JavaScript environment. All game state, mechanics, and logic is accessible through this object, making it straightforward to extend or override behaviour without touching the game's source files.
Both mods follow the same pattern:
1. Wait for the game to fully load
2. Locate the specific function or array responsible for the behaviour
3. Patch it using a closure that wraps the original function
4. Preserve the original so behaviour can be restored on reload
This monkey-patching approach ensures the mods are safe, reversible, and compatible with future game updates as long as the underlying API doesn't change drastically.
| Cookie Clicker Version | No Lucky Cookie | Grimoire Mana Lock |
|---|---|---|
| v2.054 (Latest) | โ Compatible | โ Compatible |
| v2.048 | โ Compatible | โ Compatible |
| v2.031 | โ Compatible | โ Compatible |
| Steam Edition | โ Compatible | โ Compatible |
| v1.x (Legacy) | โ Not supported | โ Not supported |
Mods are tested against the web version at orteil.dashnet.org/cookieclicker. The Steam version should work identically via the in-game console.
Will these mods corrupt my save file?
No. Both mods only modify runtime behaviour in memory. They do not touch save data, cookies, or achievements. Your save file is completely safe.
Can I use both mods at the same time?
Yes! The mods are fully independent and do not conflict with each other. Load them both via the console or set them both up as userscripts.
Do the mods work with other Cookie Clicker mod collections like Cookie Monster?
Generally yes, since these mods operate on different parts of the game. However, if another mod also patches the golden cookie logic or the Grimoire cost function, load order may matter. Always load these mods after other mods for best results.
Why remove Lucky? Isn't it part of the game?
Absolutely โ and this mod is entirely optional! Lucky has its uses, especially early game. But for players optimizing for big combo chains (Frenzy โ Click Frenzy), Lucky can feel like a wasted golden cookie. This mod simply gives you the choice.
Does the Grimoire Mana Lock mod make the game too easy?
That's the point! ๐ This is a quality-of-life mod for players who find the mana cost escalation frustrating rather than fun. Use it if you want โ ignore it if you don't.
Contributions are very welcome! If you've written a useful Cookie Clicker mod and want to add it to this collection:
- Fork this repository.
- Create a new branch:
git checkout -b mod/your-mod-name - Add your mod file with a clear, descriptive name (e.g.
no-wrinklers.js). - Update this
README.mdwith a new section for your mod following the existing format. - Open a Pull Request with a description of what the mod does and why it's useful.
- โ
Keep each mod in a single self-contained
.jsfile. - โ Add comments explaining what each section of code does.
- โ Preserve original game functions using closures so mods are reversible.
- โ Test against the latest version of Cookie Clicker before submitting.
- โ Do not include external dependencies or network requests.
- โ Do not modify or read save data directly.
This project is licensed under the MIT License โ see the LICENSE file for details.
Cookie Clicker is created and owned by Orteil / Dashnet. This repository is an unofficial fan project and is not affiliated with or endorsed by the Cookie Clicker developers.
Made with โ and way too many cookies
โญ If these mods helped you, consider leaving a star! โญ