Skip to content

About

A collection of JavaScript mods for Cookie Clicker made by me, organized for easy installation, maintenance, and community contribution. Link to the steam workshop collection.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Cookie Clicker Icon

๐Ÿช Cookie Clicker โ€” Mod Collection

A handcrafted collection of JavaScript mods that refine and improve the Cookie Clicker experience.

JavaScript Cookie Clicker Mods License PRs Welcome


Browse Mods โ€ข Installation โ€ข Compatibility โ€ข Contributing


๐Ÿ“– Table of Contents


๐Ÿช About

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.


๐Ÿงฉ Mods

1 โ€” ๐Ÿšซ No Lucky Cookie

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

What it does

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

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

Code Preview

// 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);
};

2 โ€” ๐Ÿ”ฎ Grimoire Mana Lock

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

What it does

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

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

Code Preview

// 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;
};

๐Ÿš€ Installation

Prerequisites: You need access to Cookie Clicker running in a browser (Steam version also supported via the developer console).

Method 1: Browser Console (Quickest)

  1. Open Cookie Clicker in your browser.
  2. Press F12 (or Ctrl+Shift+I / Cmd+Option+I on Mac) to open the DevTools.
  3. Click the Console tab.
  4. Copy the contents of the desired .js mod file from this repository.
  5. 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.


Method 2: Userscript Manager (Recommended)

For a persistent experience, use a browser extension like Tampermonkey or Violentmonkey.

  1. Install Tampermonkey from your browser's extension store.
  2. Click the Tampermonkey icon โ†’ Create a new script.
  3. 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==
  1. Save the script (Ctrl+S).
  2. Reload Cookie Clicker โ€” the mod will apply automatically every time you visit the game.

Method 3: In-Game Mod Menu

Requires Cookie Clicker v2.031+

  1. From the main screen, go to Options โ†’ Mods โ†’ Manage mods โ†’ Open mod folder.
  2. Create a new folder for your mod (e.g. no-lucky-cookie/).
  3. Inside, create an info.txt file following the Cookie Clicker mod format.
  4. Place your mod .js file inside the same folder.
  5. Enable the mod from the mod menu and reload.

โš™๏ธ How It Works

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.


๐Ÿ”„ Compatibility

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.


โ“ FAQ

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.


๐Ÿค Contributing

Contributions are very welcome! If you've written a useful Cookie Clicker mod and want to add it to this collection:

  1. Fork this repository.
  2. Create a new branch: git checkout -b mod/your-mod-name
  3. Add your mod file with a clear, descriptive name (e.g. no-wrinklers.js).
  4. Update this README.md with a new section for your mod following the existing format.
  5. Open a Pull Request with a description of what the mod does and why it's useful.

Guidelines

  • โœ… Keep each mod in a single self-contained .js file.
  • โœ… 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.

๐Ÿ“„ License

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! โญ

About

A collection of JavaScript mods for Cookie Clicker made by me, organized for easy installation, maintenance, and community contribution. Link to the steam workshop collection.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors