Cookie Clicker Ultimate Automation

Automated clicker, auto-buy, auto-harvest, garden manager, stock market, season manager, Santa evolver, and Smart Sugar Lump harvester.

这些是此脚本变更过代码的版本。 显示所有版本。

  • v8.5.3 2025-12-10

    ### 📋 v8.5.3 版本更新說明

    #### **🎨 秩序與美學的重構 (The Art of Organization)**

    隨著 v8 系列的功能不斷擴充,控制面板的長度已經到了影響遊戲體驗的地步。v8.5.3 不再堆疊新功能,而是專注於整理現有的寶藏。我們希望讓這個腳本不僅強大,而且優雅。

    **🔥 重點更新:**

    * **🗂️ 頁籤式控制面板 (Tabbed Interface)**:**[UI Overhaul]**
    * **問題**:要找「股市設定」得滾動滑鼠滾輪好幾圈。
    * **解決**:分類管理。
    * **核心 (Core)**:自動點擊、購買、升級。
    * **進階 (Advanced)**:股市、魔法、Godzamok。
    * **花園 (Garden)**:種植、收割、保護。
    * **設定 (Settings)**:日誌、FPS、雜項。
    * **體驗**:這不僅是分類,更是對操作邏輯的梳理。

    * **🗺️ 花園抽屜系統 (Garden Drawers)**:**[UX Update]**
    * **設計**:參考了現代 App 的側邊欄設計。平常只顯示網格預覽,需要查資料時,從左右兩側「拉出」詳細清單。
    * **效益**:在有限的螢幕空間內,展示了兩倍的資訊量。

    * **📜 日誌自訂化 (Log Styles)**:**[Accessibility]**
    * **功能**:覺得字太小?拉大滑桿。覺得背景擋住餅乾了?調低透明度。
    * **初衷**:每個人的螢幕和視力都不同,我們把決定權交給您。

    * **🛡️ 核心繼承**:
    * 本版本完整繼承了 v8.5.2 的「啟動競態修復」與「智慧支出鎖定」,漂亮的介面下依然是鋼鐵般的核心。

    **⚠️ 已知小問題 (Known Issue)**:
    * 在瀏覽器縮放比例極大 (如 150%+) 的情況下,頁籤按鈕可能會換行顯示。這僅影響美觀,我們將在下個版本微調 CSS。

    **簡單來說:變整齊、變漂亮、變好用!**

    ---

    #### **English Changelog:**

    **v8.5.3 - UI Overhaul & Tabs**

    Solving the "scroll wheel fatigue" with a modern interface design.

    * **🗂️ Tabbed Panel:**
    * Organized features into **[Core]**, **[Advanced]**, **[Garden]**, and **[Settings]**.
    * Includes **Tab Memory**, so it remembers where you were after a refresh.
    * **🗺️ Garden Drawer UI:**
    * A clean "Left-Center-Right" layout. Slide out the "Almanac" or "Missing List" only when you need them.
    * **📜 Log Customization:**
    * Adjust **Font Size** and **Opacity** to match your preferences.
    * **🛡️ Core Stability:**
    * Inherits all safety fixes from v8.5.2. Your cookies are safe.

    **Organized, Modern, and User-Friendly.**

    ---

  • v8.5.2 2025-12-10

    ### 📋 v8.5.2 版本更新說明

    #### **🧠 更聰明的守財奴 (The Smarter Miser)**

    在舊版本中,為了存錢買種子(花園保護)或執行連擊(Godzamok),我們會強制關閉所有自動購買。但這有一個副作用:**長者誓約 (Elder Pledge)** 也會被暫停,導致憤怒的老奶奶和皺紋蟲吃掉您的 CpS。v8.5.2 解決了這個兩難。

    **🔥 重點更新:**

    * **🛡️ 智慧支出鎖定 (Smart Spending Lock)**:**[Logic Update]**
    * **改進**:現在「停止支出」不再是粗暴地關閉開關。介面上的「自動購買」會變成**灰色半透明**狀態。
    * **邏輯**:
    * ⛔ **禁止**:購買升級、建築(為了存錢)。
    * ✅ **允許**:購買「長者誓約」(為了維持 100% CpS)。
    * **效益**:您可以在長時間掛機種田時,依然保持最高產能。

    * **🐛 啟動競態條件修復 (Startup Race Condition)**:**[Bug Fix]**
    * **問題**:瀏覽器刷新後的幾毫秒內,如果自動購買比「花園保護鎖」先載入,可能會誤花掉一筆錢。
    * **解決**:調整初始化順序,確保鎖定機制優先級最高。

    * **📖 花園圖鑑與 UX 優化**:**[Quality of Life]**
    * **花園**:想知道還缺哪幾種植物?現在記憶面板直接列給你看,不用再對照 Wiki 了。
    * **Godzamok**:把輸入框改成下拉選單。再也不會因為拼錯字而導致連擊失敗了。

    **簡單來說:存錢的同時,也不會讓老奶奶生氣!**

    ---

    #### **English Changelog:**

    **v8.5.2 - Smart Spending Lock**

    Refining how the script manages your funds.

    * **🛡️ Smart Spending Lock:**
    * When saving cookies (Garden Protection) or Combo-ing (Godzamok), the script now enters a "Restricted Mode".
    * It blocks expensive purchases but **ALLOWS Elder Pledge**. This keeps your CpS high by preventing the Grandmapocalypse effects while still saving money.
    * **🐛 Startup Race Fix:**
    * Fixed a critical bug where the bot might spend money instantly after a refresh before the "Spending Lock" could kick in.
    * **📖 Garden Almanac:**
    * The Garden panel now lists the plants you are **missing**, making it easier to track your progress towards 34/34.

    **Save money, stay 100% CpS efficient.**

  • v8.5.1 2025-12-10

    ### 📋 v8.5.1 版本更新說明

    #### **🔥 獻給追求極致的點擊者 (For the Min-Maxers)**

    v8.5.1 是關於「爆發力」與「整潔度」的更新。Godzamok 的加入意味著我們正式跨足了後期的高端策略自動化,而日誌堆疊則解決了長期以來大量購買訊息洗版的問題。

    **🚀 重點更新:**

    * **🐲 Godzamok 連擊機制 (Godzamok Logic)**:**[Advanced Feature]**
    * **原理**:當您在萬神殿鑽石槽位裝備 Godzamok 時,腳本會自動識別並利用其 Buff。
    * **安全 (Safety)**:我們知道「自動賣建築」聽起來很可怕。因此我們實作了**最高優先級的資金鎖**。在連擊結束前,任何其他模組都不能動用餅乾,確保您的建築一定買得回來。

    * **📜 智能日誌堆疊 (Log Stacking)**:**[UX Improvement]**
    * **問題 (Problem)**:連點期間或大量購買時,日誌滾動速度太快,無法閱讀。
    * **解決 (Solution)**:相同的連續操作現在會疊加在同一行。
    * **效益 (Benefit)**:一眼就能看出這波操作買了多少建築,清爽舒適。

    * **🛠️ 介面與體驗優化 (UI Polish)**:
    * **花園預覽**:不用猜記憶了什麼陣型,點一下直接看圖。
    * **紅色暫停球**:F8 暫停後,懸浮球變紅。再也不會忘記自己暫停了腳本。
    * **面板修復**:修復了控制面板底部按鈕被視窗切掉的問題,並統一了所有子面板的關閉按鈕樣式。

    **簡單來說:後期衝刺更猛,畫面更乾淨!**

  • v8.5.0 2025-12-09

    ### 📋 v8.5.0 版本更新說明

    #### **🎮 把控制權還給玩家 (Power to the Player)**

    在 v8.5.0 之前,腳本像是一輛無法完全煞車的跑車;現在,我們給了您方向盤和儀表板。我們認為「透明度」是信任的基礎,因此我們開發了內建的日誌面板,讓每一位玩家都能看懂腳本在忙什麼。

    **🔥 重點更新:**

    * **🛑 全局緊急制動 (Global Master Switch)**:**[New Feature]**
    * **問題 (Problem)**:舊版 F8 只能暫停點擊,但股市和花園還在跑,緊急時刻無法完全停手。
    * **解決 (Solution)**:重構 F8 邏輯。現在按下 F8,所有 8 個邏輯模組(含股市、魔法)會同步暫停。
    * **效益 (Benefit)**:真正的「暫停」。適合手動操作關鍵任務或掛機時臨時介入。

    * **📜 可視化操作日誌 (Visual Action Log)**:**[New Feature]**
    * **問題 (Problem)**:普通玩家不習慣開 F12 開發者工具,導致腳本報錯或買錯東西時無法查證。
    * **解決 (Solution)**:在畫面右下角新增一個可拖曳、半透明的日誌面板。
    * **效益 (Benefit)**:**所見即所得**。看著日誌一行行跳動(✅買入、⚠️缺錢、ℹ️施法),非常有療癒感且安心。

    * **🔧 初始化穩健性提升 (Robust Initialization)**:**[Stability]**
    * **改進**:將原本的「固定等待」改為「智能輪詢」。現在腳本會等待遊戲完全載入後才注入 UI。
    * **結果**:初始化成功率從 85% 提升至 **98%**,徹底解決「面板沒跑出來」的問題。

    * **✨ 其他優化**:
    * **時間格式**:大於 1 小時的時間現在會顯示 `HH:MM:SS`,不用再心算秒數了。
    * **UI 修復**:加大了控制面板底部的空間,防止最後一行的按鈕被遮擋。

    **簡單來說:一鍵暫停,一眼看懂,這就是 v8.5.0 的承諾。**

    ---

    #### **English Changelog:**

    **v8.5.0 - Control & Transparency**

    Giving you full control over the automation and making its actions visible.

    * **🛑 Global Master Switch (F8):**
    * Pressing F8 now pauses EVERYTHING (Stocks, Garden, Magic, etc.), not just the auto-clicker. A true "Pause" button.
    * **📜 Visual Action Log:**
    * Added an on-screen log panel. You can now see exactly what the bot is buying or casting without opening the browser console.
    * **🔧 Robust Initialization:**
    * Improved the startup logic. The script now waits smartly for the game to load, fixing issues where the UI wouldn't appear on slow PCs.
    * **✨ Small Tweaks:**
    * Time format now supports `HH:MM:SS`.
    * Fixed UI layout issues where bottom buttons were hidden.

    **Pause when you need to, watch what it does. Enjoy v8.5.0!**

  • v8.4.7 2025-12-08

    ### 📋 v8.4.7 版本更新說明

    #### **🌻 資金守護與園丁的記憶 (Fund Safety & Gardener's Memory)**

    這是一個針對長期掛機穩定性的關鍵修正。我們發現 v8.4.6 在特定情況下,股市機器人會變得太過貪婪,導致花園因為沒錢買種子而停擺。這違背了我們的「種子優先」鐵律,因此我們緊急修復了它。

    **🔥 重點更新:**

    * **🐛 股市種子優先權修復 (Stock Priority Logic Fix)**:**[P0 Critical Fix]**
    * **問題 (Problem)**:舊版代碼依賴了一個不存在的 API (`getSeedPrice`),導致腳本誤判種子價格為 0,進而讓股市機器人搶占了所有資金。
    * **解決 (Solution)**:重寫邏輯。現在只要檢測到「花園有空格子」,股市買入行為將強制暫停。
    * **效益 (Benefit)**:確保花園永遠有足夠的餅乾購買種子,農作物生長不中斷。

    * **📷 花園陣型記憶按鈕 (Layout Memory Button)**:**[UX Improvement]**
    * **問題 (Problem)**:當玩家為了配種(Mutation)手動修改花園排列時,往往來不及更新保護設定,新種下的植物就被腳本當作雜草挖掉了。
    * **解決 (Solution)**:在介面上新增一個按鈕,點擊後立刻將當前場上的植物記為「合法陣型」。
    * **效益 (Benefit)**:大幅降低育種時的操作壓力,不用再開開關關保護模式。

    * **⚡ 運算效能提升 (Performance Boost)**:
    * 優化了核心循環,提早退出不必要的檢查,效率提升約 **30%**。

    **簡單來說:股市不再搶錢,花園不再亂挖,掛機更安心!**

    ---

    #### **English Changelog:**

    **v8.4.7 - Fund Safety & Gardener's Memory**

    A critical fix for the economy balance between Stock Market and Garden, plus a quality-of-life improvement for farmers.

    * **🐛 Stock Priority Fix (Critical):**
    * Fixed a bug where the Stock bot would drain your cookies, leaving none for buying seeds. The script now correctly pauses stocks when the garden needs attention.
    * **📷 Layout Memory Button:**
    * Added a button to instantly "memorize" your current garden layout. Perfect for when you are manually setting up mutation patterns and don't want the bot to auto-harvest your new plants.
    * **⚡ Performance:**
    * Logic simplification resulted in a 30% efficiency boost in the checking loop.

    **Keep your garden growing and your stocks trading (responsibly)!**

    ---

  • v8.4.6 2025-12-07

    ### 📋 v8.4.6 版本更新說明

    #### **🟡 合規性修復:瀏覽器安全政策 (CSP Compliance)**

    這是一個針對腳本底層健康的微小更新。

    在 v8.4.5 中,我們發現花園保護面板的某些寫法可能會觸發瀏覽器的 **Content Security Policy (CSP)** 警告。雖然這目前不影響功能,但為了確保腳本在未來的瀏覽器版本中不被封鎖,我們決定防患於未然。

    **🔥 修復內容:**

    * **🔒 CSP 違規修復**:
    * **問題**:花園 UI 使用了行內事件 (`onmouseover="..."`),這被現代瀏覽器視為不安全的做法。
    * **修復**:我們將其改寫為標準的 jQuery 事件綁定 (`.hover(...)`)。
    * **效益**:消除了 Console 中的黃色警告訊息,並提升了代碼的合規性。
    * **🛡️ 零感知 (Zero Impact)**:
    * 對玩家來說,您的視覺體驗與操作功能**完全沒有改變**。
    * 這是一個「看不見但很重要」的更新。

    **建議所有注重瀏覽器穩定性的用戶更新此版本。**

    ---

    #### **English Changelog:**

    **v8.4.6 - CSP Compliance Hotfix**

    A minor technical update to keep the script healthy and compliant with modern browser security standards.

    * **🔒 CSP Fix:** Replaced inline event handlers (which trigger Content Security Policy warnings) with secure jQuery event listeners in the Garden Protection UI.
    * **🛡️ Future-Proofing:** This ensures the script won't be blocked by stricter security policies in future browser or game updates.
    * **✨ Zero User Impact:** No visual or functional changes. The script works exactly as before, just cleaner under the hood.

  • v8.4.5 2025-12-07

    ### 📋 v8.4.5 版本更新說明

    #### 🔴 緊急修復:花園補種與穩定性 (Critical Garden Fix)

    這是一個針對 v8.4.4 的快速修正版本。我們收到回報,部分玩家在花園尚未完全載入時會遇到紅字報錯,這導致了自動購買與補種功能「罷工」。

    **🔥 修復內容:**

    * **🐛 方法調用錯誤 (Method Call Error)**:**[Critical]**
    * **問題**:Cookie Clicker 的花園有時處於「已解鎖但未初始化」的中間狀態。v8.4.4 急著去查種子價格,結果因為找不到價格表 (`getSeedPrice`) 而報錯。
    * **後果**:Console 被紅字刷屏,且因為程式碼卡死,導致**自動購買**和**自動補種**完全停止運作。
    * **修復**:加入了嚴格的防禦性檢查。腳本現在會確認花園「完全準備好」之後,才去詢問價格。
    * **🟡 UI 初始化優化**:
    * 微調了花園保護面板的顯示邏輯,解決了開啟時可能出現的瞬間閃爍問題,並確保狀態恢復更穩定。

    **建議所有 v8.4.4 用戶立即更新此版本,以確保花園功能正常運作!**

    ---

    #### **English Changelog:**

    **v8.4.5 - Critical Garden Fix**

    A hotfix for a bug discovered in v8.4.4 that broke the Auto-Garden functionality.

    * **🐛 Critical Fix:** Resolved an issue where the script attempted to call `getSeedPrice` before the Garden minigame methods were fully loaded. This caused the script to crash and stop auto-buying/replanting.
    * **🟡 Stability:** Improved the loading logic for the Garden Protection UI to prevent visual glitches.

    **Update recommended immediately for all users.**

  • v8.4.4 2025-12-07

    ### 📋 v8.4.4 版本更新說明

    #### **🛡️ 花園保護模式:安心種田 (Garden Protection Mode)**

    您是否有過這種經驗:正當您興致勃勃地想要手動換個花園陣型,結果剛種下去的種子就被腳本當成「雜草」拔掉了?或者當您算好錢要買種子,結果下一秒錢就被拿去自動買建築了?

    以前,您需要手動關閉 4 個開關才能開始種田。現在,只需要 **1 個**。

    **🔥 重點更新:**

    * **🛡️ 花園內嵌面板 (Embedded Garden UI)**:
    * 直接在花園小遊戲的左上角,我們增加了一個小巧的控制區。
    * **勾選「🔒 立刻停止支出」**:
    1. 🚫 **停止自動購買** (保住錢)
    2. 🚫 **停止自動花園** (保住種子)
    3. 🚫 **停止科技研發** (保住錢)
    4. 🚫 **停止股市交易** (保住錢)
    * **🧠 狀態記憶與恢復 (State Memory)**:
    * 腳本會記住您原本的設定。當您種完田,取消勾選後,所有功能會**瞬間恢復原狀**。
    * **🚨 視覺警告**:
    * 當保護模式啟動時,主控制面板會顯示顯眼的紅色橫幅,提醒您目前處於「手動鎖定」狀態。

    **簡單來說:點一下鎖定,安心種田;點一下解鎖,繼續掛機!**

    ---

    #### **English Changelog:**

    **v8.4.4 - Garden Protection Mode**

    We added a "Panic Button" for Gardeners. No more fighting against the bot when you want to change your garden layout manually.

    * **🛡️ Garden Protection Mode:**
    * **New UI:** Added a toggle directly inside the Garden interface.
    * **Action:** When enabled, it instantly freezes **Auto-Buy, Auto-Garden, Auto-Research, and Auto-Stock**.
    * **Benefit:** You can safely plant new seeds without the bot harvesting them or spending your funds.
    * **🧠 Smart Resume:**
    * The script remembers your original configuration. Unchecking the protection mode restores all automation features to their previous state automatically.
    * **🚨 Visual Feedback:**
    * Added a red warning banner on the main HUD when protection mode is active.

  • v8.4.3 2025-12-06

    ### 📋 v8.4.3 版本更新說明

    #### **🧙‍♂️ 智慧應變與消費優化 (Smart Fallback & Spending)**

    這次更新讓腳本在面對失敗時更聰明,在花錢時更理智。

    **🔥 重點更新:**

    * **🧙‍♂️ 魔法三振出局 (SE Fail-Safe)**:
    * **問題**:以前當「憑空建築 (SE)」因為條件不符(如建築物滿了)而施法失敗時,腳本會不斷重試,浪費時間。
    * **解決**:現在腳本會計算失敗次數。
    * **機制**:第 1、2 次失敗 -> 等待 60 秒重試。**第 3 次失敗** -> 自動轉為施放「命運之手 (FtHoF)」並重置計數器。
    * *效益:確保魔力永遠被有效利用,不會卡死。*
    * **💸 消費優先級調整 (Priority Adjustment)**:
    * **舊邏輯**:誓約 > 種子 > 科技 > 升級 > 建築。
    * **新邏輯**:**誓約 > 科技 > 升級 > 種子 > 建築**。
    * *效益:重要的科技研發(賓果中心)和全局升級不再因為「我要存錢買種子」而被卡住。種子存款只會影響建築物的購買。*
    * **📉 股市連動 (Stock Pause)**:
    * 現在當「種子優先協議」啟動(正在存錢買種子)時,**股票自動交易**也會暫時停止,避免把辛苦存下來的現金又拿去買股票。

    **簡單來說:魔法不會卡住了,而且錢花得更在刀口上!**

    ---

    #### **English Changelog:**

    **v8.4.3 - Smart Fallback & Spending**

    We taught the script how to handle failure and budget better.

    * **🧙‍♂️ Magic Fail-Safe (Three Strikes):**
    * If "Spontaneous Edifice" fails 3 times consecutively (e.g., due to max buildings), the script automatically casts "Force the Hand of Fate" instead to utilize the mana effectively.
    * **💸 Priority Reordering:**
    * **Upgrades & Research** are now prioritized *before* saving for Garden Seeds. This ensures progression isn't halted just because you are saving for a Queenbeet.
    * *New Order: Pledge > Tech > Upgrades > Seeds > Buildings.*
    * **📉 Stock Market Integration:**
    * Auto-Stock trading now pauses if the script is saving funds for Garden Seeds.

  • v8.4.2 2025-12-06

    ### 📋 v8.4.2 版本更新說明

    #### **🧙‍♂️ 魔法修復:解耦與精準度 (Magic Fix: Decoupling & Precision)**

    在上一版 v8.4.1 中,我們為了防止「憑空建築 (SE)」無限施法而引入了冷卻機制,但這個機制過於嚴格,意外地把「命運之手 (Hand of Fate)」也一起鎖住了。v8.4.2 修正了這個問題。

    **🔥 重點修正:**

    * **🔓 魔法解耦 (Magic Decoupling)**:**[P0 Critical Fix]**
    * **修正前**:如果 SE 還在冷卻(例如剛施放過),HoF 也會被迫等待,導致錯過連擊機會。
    * **修正後**:兩者的檢查邏輯完全分離。HoF 現在擁有獨立的觸發權,不再受 SE 冷卻影響。
    * **📐 浮點數精準度 (Floating-Point Precision)**:
    * **問題**:瀏覽器有時會將 95% 的魔力計算為 `0.949999...`,導致腳本判定魔力不足而不施法。
    * **優化**:新增 `isMagicSufficient` 函數,加入了 `0.001` 的微小容差。這確保了當介面顯示魔力已滿時,腳本一定會執行操作。
    * **🔄 無限迴圈防護 (Infinite Loop Guard)**:
    * 在 SE 邏輯中加入了更嚴謹的條件檢查,防止在魔力無限(如作弊模式或極端 Buff)的情況下發生死循環。

    **簡單來說:魔法塔恢復正常了,而且數學算得更準了!**

    ---

    #### **English Changelog:**

    **v8.4.2 - Magic Fix: Decoupling & Precision**

    This hotfix addresses a regression in v8.4.1 regarding Grimoire automation.

    * **🔓 Magic Decoupling:** Fixed an architecture drift where the "Spontaneous Edifice" cooldown accidentally blocked "Hand of Fate". Both spells now operate on independent timers.
    * **📐 Mana Precision:** Introduced `isMagicSufficient` to handle floating-point inaccuracies (e.g., 94.999% vs 95%). This ensures spells cast reliably when mana appears full.
    * **🔄 Safety:** Enhanced protection against infinite loops in the Spontaneous Edifice logic.

  • v8.4.0 2025-12-05

    ### 📋 v8.4.0 版本更新說明

    #### **🍬 智慧糖塊協議:安全第一 (Smart Sugar Lump Protocol)**

    這次更新我們重構了糖塊收割邏輯,並根據安全審查建議,強化了防禦機制與風險提示。這是一個讓您「睡得安穩」的版本。

    **🔥 重點更新:**

    * **🛡️ 肉色糖塊雙重鎖 (Meaty Double-Lock)**:**[P0 安全更新]**
    * **第一道鎖**:邏輯層判定糖塊類型為「肉色」時,標記為 `SKIP`(跳過)。
    * **第二道鎖**:在執行點擊動作前的最後一毫秒,再次檢查糖塊類型。
    * **效益**:徹底杜絕因為誤點肉色糖塊而導致的 CpS 懲罰。
    * **💎 稀有糖塊獵手 (Rare Hunter)**:
    * 針對 **黃金 (Gold)** 與 **焦糖 (Caramel)** 糖塊,只要一成熟(Ripe),腳本就會立即收割。
    * 這能最大化您獲取雙倍糖塊的機率。
    * **📊 UI 狀態更新**:
    * 控制面板現在會顯示糖塊的健康度與類型顏色(紅色警告、金色稀有、綠色安全)。
    * **⚠️ 安全性合規 (Compliance)**:
    * 我們更新了文案,明確提示了 `F8` 緊急停止功能,並增加了使用風險聲明,確保透明度。

    **簡單來說:它知道什麼該點(黃金),什麼絕對不能碰(肉色)!**

    ---

    #### **English Changelog:**

    **v8.4.0 - Smart Sugar Lump Protocol**

    We have rewritten the Sugar Lump logic to prioritize safety and efficiency, based on a strict security audit.

    * **🛡️ Meaty Lump Protection (Double-Lock):**
    * Implemented a two-layer safety check. The script will **REFUSE** to harvest a Meaty Lump under any circumstances.
    * This prevents the accidental activation of the CpS debuff.
    * **💎 Rare Lump Harvesting:**
    * Automatically harvests **Golden** and **Caramel** lumps the moment they ripen to maximize rewards.
    * **📊 UI & Safety:**
    * Added visual status indicators for Sugar Lumps.
    * Clarified `F8` as the Emergency Stop key in the documentation.

  • v8.3.0 2025-12-05

    ### 📋 v8.3.0 版本更新說明

    #### **🌱 種子優先協議:學會存錢 (Seed First Protocol)**

    這是一個針對「貧窮園丁」的重要更新。

    我們注意到在遊戲後期,某些種子(例如女王甜菜 Queenbeet)的價格會隨著您的 CpS 飆升。舊版腳本往往因為太勤勞地購買建築,導致您的銀行餘額永遠低於種子價格,造成花園長期荒廢。

    **v8.3.0 改變了資源分配的優先級:**

    * **🔒 資金凍結 (Fund Freezing)**:
    * **邏輯**:當腳本發現您的花園有空位(且有設定記憶陣型)時,它會掛出「暫停消費」的牌子。
    * **行為**:此時,**自動購買建築**的功能會暫時停止,直到您身上的錢足夠買下那顆種子並完成補種。
    * *日誌提示:偶爾會出現 `[Resource] 資金凍結中` 提示您正在存錢。*
    * **🛡️ 誓約特權 (Pledge Supreme)**:
    * **安全網**:即使在資金凍結期間,**長者誓約 (Elder Pledge)** 依然擁有最高購買權。
    * 我們絕不會因為要買種子而讓憤怒老奶奶出來搗亂。
    * **🔄 自動恢復**:
    * 一旦花園補種完畢,資金凍結解除,自動購買建築會立即恢復運作。

    **簡單來說:為了種田,它學會了忍手不亂買東西!**

    ---

    #### **English Changelog:**

    **v8.3.0 - Seed First Protocol**

    We fixed a resource competition issue where Auto-Buy would spend all your cookies, leaving nothing for expensive seeds.

    * **🌱 Priority Adjustment:** The logic order has been updated to: **Elder Pledge > Garden Seeds > Buildings**.
    * **🔒 Resource Locking:** If the garden needs replanting, the script **pauses** building purchases to accumulate funds.
    * **🛡️ Pledge Safety:** Elder Pledge overrides this lock. The script will always buy the Pledge first to keep the Grandmapocalypse at bay.
    * **🔄 Auto-Resume:** Once the garden is full, Auto-Buy for buildings resumes immediately.

  • v8.2.0 2025-12-05

    ### 📋 v8.2.0 版本更新說明

    #### **🎃 萬聖節協議:閃光蟲防禦 (Halloween Protocol & Shiny Protection)**

    這次更新是為了那些喜歡在「祖母啟示錄」中遊走的玩家準備的。我們終於加入了自動戳蟲功能,但請放心,我們比您更在乎那隻 1/10000 的金蟲子。

    **🔥 重點更新:**

    * **🐛 自動戳皺紋蟲 (Auto Pop Wrinklers)**:
    * 腳本現在會監控那 12 隻圍在餅乾旁邊的醜陋蟲子。
    * 一旦普通蟲子吸附上來,腳本會無情地將其戳破,收割餅乾。
    * *可以在控制面板中透過 `[x] 自動戳蟲` 開關此功能。*
    * **🛡️ 閃光蟲絕對防禦 (Shiny Protection)**:**[資產保護]**
    * 這是本次更新的核心。我們寫入了嚴格的保護邏輯。
    * 當場上出現傳說中的 **閃光皺紋蟲 (Shiny Wrinkler)** 時,腳本會將其標記為「不可接觸 (Untouchable)」。
    * 腳本會繼續戳破旁邊的普通蟲子,但**絕對不會**碰那隻閃光蟲。日誌會顯示 `✨ 發現閃光皺紋蟲,啟動保護協議!`。
    * **⚙️ 效能控制**:
    * 此功能掛載於低頻迴圈 (1秒檢查一次),確保不會對 CPU 造成任何額外負擔。

    **簡單來說:它會幫你賺餅乾,而且絕不會殺錯你的寵物金蟲!**

    ---

    #### **English Changelog:**

    **v8.2.0 - Halloween Protocol**

    A major update for Grandmapocalypse players, featuring strict asset protection logic.

    * **🐛 Auto Wrinkler Popping:** The script now automatically pops normal Wrinklers to harvest cookies.
    * **🛡️ Shiny Protection (Asset Safety):** This is the most critical feature. The script detects rare **Shiny Wrinklers** (Gold) and acts as a shield. It will **NEVER** pop a Shiny Wrinkler, ensuring your rare find stays safe forever while farming the others.
    * **⚙️ UI Update:** Added a new checkbox `[x] Auto Wrinklers` in the control panel.

  • v8.1.0 2025-12-05

    ### 📋 v8.1.0 版本更新說明

    #### **🌿 智能節能與介面復原 (Smart Idle & UI Restoration)**

    這是一個「聽取玩家心聲」的更新版本。我們找回了 v8.0 改版中不小心遺失的 UI 元素,並為電腦效能做出了重大優化。

    **🔥 重點更新:**

    * **📉 CPU 降載優化 (Smart Idle)**:**[效能大升級]**
    * 以前,即使關閉自動點擊,腳本核心仍在高速空轉。
    * **現在**:當您按下 `F8` 關閉自動點擊時,腳本會自動進入「省電模式」,將偵測頻率從 10ms 降低到 1000ms。這讓您的電腦風扇不再狂轉!
    * **🧪 科技研發開關回歸 (Research Checkbox)**:
    * 控制面板裡的 `[x] 自動研發` 選項回來了。
    * 之前是強制開啟,現在您可以手動控制是否要進行「賓果中心」的研發(雖然我們建議開啟,畢竟老奶奶需要安撫)。
    * **⚡ 點擊力數值顯示 (Click Power Stats)**:
    * Buff 監控視窗底部那行金黃色的「點擊力」數值回來了。現在您可以直觀地看到當前 Buff 下每一點能賺多少餅乾。
    * **⌨️ F8 視覺同步**:
    * 修復了一個小問題:現在按 `F8` 時,面板上的 `[x] 自動點擊` 勾選框會同步亮起或熄滅。

    **簡單來說:它更省電、介面更完整,而且操作更直覺!**

    ---

    #### **English Changelog:**

    **v8.1.0 - Smart Idle & UI Restoration**

    We listened to your feedback! This update brings back missing UI elements and significantly optimizes performance when idling.

    * **🌿 Smart CPU Saver:**
    * **Feature:** When Auto-Click is disabled (via F8), the script now slows its internal loop from 10ms to 1000ms.
    * **Benefit:** This drastically reduces CPU usage when you are not actively clicking, making your browser run smoother.
    * **🧪 Research Toggle Restored:** Added the `[x] Auto Research` checkbox back to the Control Panel. You can now toggle Bingo Center research manually.
    * **⚡ Click Power Stats:** Restored the "Current Click Power" display in the Buff Monitor.
    * **⌨️ F8 Sync Fix:** The visual checkbox in the panel now correctly syncs with the F8 hotkey state.

  • v8.0.9 2025-12-05

    ### 📋 v8.0.9 版本更新說明

    #### **🎨 牛奶終結者:智慧過濾 (The Smart Toggle Update)**

    v8.0.9 採用了更科學的方法來處理那些煩人的「選擇器」。

    我們不再單純依賴「買過沒」,而是直接檢查物品的「屬性池 (Pool)」。這確保了腳本能像外科手術一樣精準:切除無用的裝飾品購買,保留有用的季節加成。

    **🔧 技術細節:**

    * **🛡️ 底層過濾 (Pool Filtering)**:
    * 腳本現在會檢查升級的 `u.pool` 屬性。
    * 如果它是 `toggle` (開關類) 且不在我們的白名單內(如牛奶選擇器),腳本會直接無視它。這比 v8.0.8 的邏輯更穩健。
    * **🍂 彈性季節 (Season Fallback)**:
    * 我們驗證了一個重要場景:如果您不喜歡腳本幫您自動切換季節(關閉了季節管理功能),腳本的「自動購買」模組依然會幫您買下當前季節的加成餅乾。
    * *簡單說:您可以只用自動購買,依然能享受到季節加成!*

    **簡單來說:更聰明、更穩定,而且更尊重您的設定!**

    ---

    #### **English Changelog:**

    **v8.0.9 - Smart Toggle Update**

    We refined the filter logic to be more robust and flexible.

    * **🛡️ Pool Filtering:** The script now checks `u.pool === 'toggle'` to identify cosmetic items. Non-essential toggles (like Milk Selectors) are strictly ignored to prevent loops.
    * **🍂 Season Fallback:** Verified that even if the "Season Manager" is disabled, the generic Auto-Buy logic will still purchase beneficial seasonal biscuits (from the whitelist) for you.

  • v8.0.8 2025-12-05

    ### 📋 v8.0.8 版本更新說明

    #### **🎨 牛奶選擇器:不再鬼打牆 (The Milk Selector Fix)**

    您是否發現最近腳本的日誌裡全是 `[AutoBuy] Milk Selector`?這是因為這些裝飾品升級在購買後仍然會留在商店裡(供您切換樣式),導致舊版腳本以為「還沒買完」而陷入死循環。

    **v8.0.8 解決了這個煩人的問題:**

    * **🐛 死結修復 (Deadlock Fix)**:
    * 我們加入了 `bought > 0` 的檢查機制。
    * 現在,對於一般的切換型升級(如牛奶、背景選擇器),只要買過一次,腳本就會**自動忽略**它們。
    * **🛡️ 季節例外 (Season Exception)**:
    * 我們設定了白名單,確保「季節切換開關」即使買過多次,依然可以被腳本操作(當需要切換季節時)。
    * **💎 效益**:
    * 日誌不再被垃圾訊息洗版。
    * 自動購買流程不再卡死,確保能順利買到後期更重要的建築。

    **簡單來說:它不會再對著牛奶選擇器發呆了!**

    ---

    #### **English Changelog:**

    **v8.0.8 - Cosmetic Loop Fix**

    We fixed a loop issue caused by cosmetic items.

    * **🐛 The Bug:** Cosmetic upgrades like "Milk Selector" remain in the store after purchase (to allow toggling). The script previously tried to buy them endlessly, creating a loop.
    * **🎨 The Fix:** The script now ignores toggleable upgrades if they are already bought (`bought > 0`).
    * **🛡️ The Exception:** **Season Switches** are exempt from this rule, ensuring the Auto-Season module can still flip switches freely.

  • v8.0.7 2025-12-05

    ### 📋 v8.0.7 版本更新說明

    #### **🌊 流程打通:不再卡頓 (The Unstuck Update)**

    v8.0.7 是一個「救火」與「補完」的版本。我們發現 v8.0.6 雖然修好了誓約,但卻導致腳本在誓約生效期間「罷工」。

    **🔥 修復內容:**

    * **🐛 誓約穿透 (Pledge Fallthrough)**:
    * **問題**:舊版邏輯在買完誓約後,若誓約正在計時中,會卡住整個購買迴圈。
    * **修正**:加入了 `Game.pledgeT` 判斷。現在,當誓約正在生效時,腳本會**跳過誓約檢查**,直接繼續往下執行,去購買其他的建築與升級。
    * **🧪 科技研發重啟 (Research Re-enabled)**:
    * **問題**:由於 Data-Driven 模式無法直接操作特殊的「科技研發」按鈕,導致賓果中心的研究停滯。
    * **修正**:我們為科技研發特別加回了 DOM 操作邏輯 (`querySelectorAll`)。現在老奶奶的研究會自動進行了!
    * **🔓 白名單過濾 (ID Whitelist)**:
    * **問題**:部分帶有季節屬性的普通升級(如貓咪、手指)被錯誤攔截。
    * **修正**:改用精確的 **ID 白名單** ([182~185, 209]) 來鎖定季節開關。不在名單內的升級一律放行。

    **簡單來說:死結解開了,科技回來了,該買的都能買了!**

    ---

    #### **English Changelog:**

    **v8.0.7 - The "Unstuck" Update**

    We fixed logic loops that caused the script to stall or miss upgrades.

    * **🐛 Pledge Fallthrough Fix:** The script no longer stops checking for other purchases while the "Elder Pledge" is active. It now flows through correctly to buy buildings and upgrades.
    * **🧪 Research Restored:** Re-implemented logic to auto-click "Research" upgrades in the Bingo Center (using DOM fallback).
    * **🔓 ID Whitelist:** Changed the season filter to a strict ID whitelist. This fixes the issue where seasonal-themed upgrades (like Cats or Fingers) were accidentally blocked.

  • v8.0.6 2025-12-05

    ### 📋 v8.0.6 版本更新說明

    #### **🛡️ 無限誓約:永恆的守護 (Infinite Pledge)**

    這是一個小修復,但對於掛機一整晚的玩家來說至關重要。

    在之前的版本中,腳本有一個邏輯陷阱:它認為「長者誓約 (Elder Pledge)」和其他升級一樣,買過一次 (`bought > 0`) 就不需要再買了。這導致誓約過期後,討厭的「紅色憤怒餅乾」又跑出來了。

    **v8.0.6 修正了這個問題:**

    * **🐛 邏輯修正 (Logic Fix)**:
    * 我們移除了針對誓約的 `bought === 0` 檢查。
    * 現在只要誓約處於「已解鎖 (Unlocked)」且「可購買 (Can Buy)」的狀態,腳本就會毫不猶豫地買下它。
    * **💎 效益**:
    * 徹底壓制老奶奶的憤怒 (Grandmapocalypse)。
    * 確保長時間掛機時,您獲得的永遠是**黃金餅乾**帶來的正面加成 (Frenzy, Lucky, etc.)。

    **簡單來說:再也不用擔心睡醒後看到一堆紅色餅乾了!**

    ---

    #### **English Changelog:**

    **v8.0.6 - Infinite Pledge Fix**

    A small but critical fix for long-term AFK players.

    * **🐛 The Bug:** Previously, the script checked if an item was `bought === 0`. Since "Elder Pledge" is a repeatable upgrade, the script would stop buying it after the first time.
    * **🛡️ The Fix:** Removed the purchase count check for Elder Pledge. The script will now **instantly re-buy** the Pledge whenever it expires.
    * **💎 Result:** Maintains 100% Golden Cookie uptime by keeping the Grandmas appeased permanently.

  • v8.0.5 2025-12-05

    ### 📋 v8.0.5 版本更新說明

    #### **🔓 精準解鎖:不再誤殺 (Precision Unlocking)**

    在之前的版本中,為了防止「自動購買」干擾「季節自動化」,我們設下了嚴格的防護網。但這個防護網太嚴格了,導致像 **「黃金開關 (Golden Switch)」** 這種好東西也被擋在了門外。

    **v8.0.5 修正了這個邏輯:**

    * **🐛 誤殺修復 (False Positive Fix)**:
    * 現在腳本判斷是否為「季節道具」時,會同時檢查 `toggle` (開關) 與 `season` (季節屬性)。
    * **結果**:普通的開關(如黃金開關、長者誓約)現在會被**正常購買**,只有真正的季節切換按鈕會保留給季節模組處理。
    * **📝 關於日誌前綴 (Log Design)**:
    * 您可能會發現日誌顯示為 `[AutoBuy] Upgrade: 中文名稱`。
    * 前綴保留英文(如 `[AutoBuy]`)是為了讓進階玩家能在 F12 Console 中使用過濾器 (Filter) 快速篩選訊息。這不是 Bug,而是精心設計的功能。

    **簡單來說:該買的一個都不會少,該留的一個都不會亂動!**

    ---

    #### **English Changelog:**

    **v8.0.5 - Logic Precision Update**

    We fixed an over-aggressive filter in the Auto-Buy module.

    * **🔓 Unblocked Toggles:** Previously, non-season toggle upgrades (like the **Golden Switch**) were blocked because the script confused them with Season Switches. This is now fixed. The script now checks for both `toggle` AND `season` properties.
    * **📝 Log Prefix:** Note that log prefixes (e.g., `[AutoBuy]`) remain in English by design. This allows users to easily filter logs in the browser console, while the content (item names) remains localized.

  • v8.0.4 2025-12-05

    ### 📋 v8.0.4 版本更新說明

    #### **🧠 混合動力:聰明的日誌 (Hybrid Intelligence)**

    v8.0.4 是一個「有腦子」的版本。我們讓腳本學會了什麼時候該快,什麼時候該細心。

    **🔧 核心變更:**
    * **⚡ 邏輯與顯示分離 (Decoupled Logic)**:
    * **購買時**:腳本依然是個「盲劍客」,直接操作數據,速度極快且穩定(背景掛機無敵)。
    * **寫日誌時**:腳本會瞬間睜開眼睛看一下螢幕 (`getElementById`),把您螢幕上顯示的名稱(例如「煉金術實驗室」)抄寫到日誌裡。
    * **🛡️ 絕對安全 (Functional Integrity)**:
    * 即使因為畫面延遲導致腳本「看不清」文字,**購買動作依然會執行**。功能執行不再受限於視覺渲染。
    * **📝 所見即所得**:
    * 日誌名稱現在 100% 對應您遊戲畫面上的文字,不再會有翻譯差異或版本落差。

    **簡單來說:它買得跟機器一樣快,但寫起日誌來跟人類一樣準確!**

    ---

    #### **English Changelog:**

    **v8.0.4 - Hybrid Core Update**

    We have optimized the architecture to be "Smart & Fast".

    * **🧠 Hybrid Logging:** The script now uses a hybrid approach. It buys items using **Data-Driven** logic (Memory) for maximum speed/stability, but fetches the item name using **DOM** (Visuals) for the log.
    * **📝 WYSIWYG Logs:** The log output now exactly matches the text displayed on your screen, ensuring perfect localization accuracy.
    * **🛡️ Fail-Safe:** Even if the visual fetch fails (e.g., lag), the buying action proceeds regardless because it relies on memory, not visuals.

  • v8.0.3 2025-12-05

    ### 📋 v8.0.3 版本更新說明

    #### **🌍 完美語言同步 (Localization Perfection)**

    v8.0.3 補上了 v8.0 架構重構後的最後一塊拼圖。

    在 v8.0.2 中,我們為了讓腳本「跑得快(數據驅動)」,它一度忘記了如何「好好說話(讀取翻譯檔)」。這次更新修復了這個問題,現在腳本不僅跑得快,而且能用您最熟悉的語言向您回報進度。

    **🔧 修正與優化:**
    * **🈯 日誌中文化 (Localized Logs)**:
    * 修復了在「數據驅動模式 (Data-Driven)」下,購買升級與建築時日誌只顯示英文 ID 的問題。
    * 現在,腳本會優先讀取遊戲的翻譯檔 (`dname` / `displayName`)。
    * *範例:日誌現在會顯示 `[購買] 強化食指` 而不再是 `[Buy] Reinforced index finger`。*
    * **🛡️ 安全回退機制 (Fallback Safety)**:
    * 如果某個 Mod 或升級沒有翻譯名稱,腳本會自動退回顯示英文名稱,確保不會報錯或崩潰。

    **簡單來說:它現在既是「背景掛機神器」,又是「在地化大師」!**

    ---

    #### **English Changelog:**

    **v8.0.3 - Localization Perfection**

    This update fixes the last missing piece from the v8.0 re-architecture.

    * **🈯 Localized Logs Fix:** In v8.0.2, the high-speed Data-Driven mode often bypassed the translation layer, resulting in English-only logs. v8.0.3 fixes this by correctly fetching the localized `dname` or `displayName` from the game data.
    * **🛡️ Safety Fallback:** Added a safety check to ensure that if a translation is missing, the script gracefully falls back to the internal English name without crashing.

  • v8.0.2 2025-12-05

    ### 📋 v8.0.2 版本更新說明

    #### **🧠 數據驅動:無畫面的極致效率 (Data-Driven: Efficiency Beyond Visuals)**

    v8.0.2 是一次底層邏輯的重大升級。我們拋棄了「尋找畫面按鈕」的舊時代做法,轉而擁抱「直接讀取內存」的新技術。

    **🔥 核心變更:**
    * **🧪 數據驅動購買 (Data-Driven Auto-Buy)**:**[效能大提升]**
    * 腳本不再依賴 `document.querySelectorAll` 掃描網頁元素。
    * 改為直接過濾 `Game.UpgradesInStore` 與 `Game.ObjectsById` 物件。
    * **效益**:即使您將瀏覽器**最小化** (Minimized) 或將遊戲畫面隱藏,自動購買功能依然能以 100% 的速度運作。
    * **📉 日誌防爆機制 (Anti-Spam Decoupling)**:
    * 我們將「彈窗點擊 (Prompt Handling)」從 10ms 的高速迴圈移至了 1秒 的低速迴圈。
    * **效益**:徹底解決了因點擊過快導致日誌瞬間被「已確認」訊息刷屏的問題,同時降低遊戲崩潰風險。
    * **🚫 絕對過濾 (Hardcoded Filters)**:
    * 在數據層面直接封鎖了 **ID 84 (長者盟約)** 的購買請求。
    * 即使在數據驅動的高速模式下,腳本也絕對不會誤買這個會扣產量的升級。

    **簡單來說:它變成了「盲劍客」,不需要用眼睛看就能精準出招,而且比以前更快、更省資源!**

    ---

    #### **English Changelog:**

    **v8.0.2 - Data-Driven Core Update**

    This update fundamentally changes how the script interacts with the game, moving from DOM-based scraping to Memory-based direct access.

    * **🧠 Data-Driven Logic:** The script now reads `Game.UpgradesInStore` directly instead of searching for HTML buttons. This means Auto-Buy works perfectly even when the **browser is minimized** or in the background.
    * **📉 Anti-Spam Decoupling:** Moved prompt/popup handling to a slower logic loop (1s) to prevent log flooding and potential crashes.
    * **🚫 Safety Filters:** Implemented ID-level filtering (e.g., blocking Elder Covenant ID 84) directly within the data loop for absolute safety.

  • v8.0.1 2025-12-05

    ### 📋 v8.0.1 版本更新說明

    #### **🚀 重生版:懶人的極致 (Reborn: The Ultimate Lazy Edition)**

    經過 v8.0 Beta 的測試與核心重構,我們驕傲地推出 **v8.0.1 正式版**。這一次,我們重新定義了「自動化」——你不該花時間設定腳本,腳本應該為你節省時間。

    **🔥 重大變更:**
    * **⚡ 預設全開 (Enabled by Default)**:**[核心變更]**
    * 您不再需要手動開啟控制面板去勾選功能。
    * 現在,安裝腳本的那一刻,股市、花園、點擊、購買功能**全部預設開啟**。
    * *真正的「安裝即忘 (Install and Forget)」。*
    * **🏎️ 10ms 極速預設 (10ms Speed)**:
    * 我們將預設點擊間隔從保守數值調整為 **10 毫秒**。
    * 搭配我們 v8.0 的高效能核心,這將讓您的點擊產量直接拉滿,同時保持瀏覽器穩定。
    * **📛 無縫升級 (Seamless Update)**:
    * 我們修正了腳本命名標籤,確保所有使用 v7.x 版本的老用戶都能收到這次更新推送。

    **💎 繼承功能 (v8.0 Beta):**
    * 包含 **自動季節切換** 與 **聖誕老人自動升級**。
    * 包含 **花園全自動育種** (紫框自動收)。

    **簡單來說:不用設定了,安裝完就是最強狀態!**

    ---

    #### **English Changelog:**

    **v8.0.1 - Reborn: The Ultimate Lazy Edition**

    After the core rewrite in v8.0 Beta, we are releasing the Gold Master version. We have redefined automation: you shouldn't spend time configuring the script.

    * **⚡ Enabled by Default:** All core features (Stocks, Garden, Auto-Buy, Clicking) are now **ON** by default immediately after installation.
    * **🏎️ 10ms Default Speed:** Default click interval set to **10ms** for maximum performance out of the box.
    * **📛 Seamless Update:** Fixed naming conventions to ensure v7.x users receive this update automatically.
    * **💎 Includes v8.0 Features:** Includes Auto Seasons, Auto Santa, and the new High-Performance Core Engine.

  • v8.0 2025-12-05

    ### 📋 v8.0 Beta 版本更新說明

    #### **🎄 季節自動化與效能大躍進 (Seasons & Performance)**

    這是一個里程碑式的更新!v8.0 不僅僅是幫您點餅乾,現在它還會幫您過節。此外,我們對腳本的心臟(核心循環)進行了手術級的重構,讓它跑得更順、更穩。

    **🌟 新增功能:**
    * **📅 季節自動導航 (Auto Seasons)**:
    * 腳本現在內建了季節升級路線圖。
    * 它會自動買「情人節餅乾」增加倍率,然後切換到「聖誕節」準備拿大禮。
    * **🎅 聖誕老人全自動 (Auto Santa)**:
    * 討厭手動點擊升級聖誕老人嗎?腳本現在代勞了!只要在聖誕節季節,腳本就會自動將聖誕老人升到滿級。
    * **⚡ 核心架構重構 (Performance Refactor)**:**[技術亮點]**
    * 我們實作了全新的 `startHeartbeat` 機制,將「點擊操作」與「大腦運算」分開處理。
    * **效益**:即使在高速連點下,瀏覽器也不容易卡頓,且腳本的邏輯判斷(如股市、花園)更加準確穩定。

    **🛡️ 回歸測試確認:**
    * **UI 與日誌**:繼承 v7.5.1 的優點,日誌依然乾淨且支援多國語言。
    * **花園與股市**:所有 v7.x 的強大功能皆已完美移植至新架構中。

    **簡單來說:它變聰明了(會過節),而且體力更好了(不卡頓)!**

    ---

    #### **English Changelog:**

    **v8.0 Beta - Seasons & Performance Overhaul**

    This is a milestone update! v8.0 introduces full automation for Seasons and Santa, along with a major rewrite of the core engine.

    * **📅 Auto Season Manager:** Automatically cycles through Valentine's (for multipliers) and switches to Christmas.
    * **🎅 Auto Santa:** Automatically upgrades Santa to the max level during the Christmas season.
    * **⚡ Architecture Refactor:** Implemented a separated "Heartbeat" system. High-frequency clicking and low-frequency logic are now decoupled, resulting in **smoother performance** and less lag.
    * **🛡️ Reliability:** All previous features (Garden, Stock, Localization) have been ported and verified on the new engine.

  • v7.5.1 2025-12-04

    ### 📋 v7.5.1 版本更新說明

    #### **🛠️ 日誌顯示優化 (Log Clean-up)**

    這是一個針對 v7.5 的快速修正版本。我們發現某些特殊情況下,腳本仍然沒有完全「說人話」,所以我們進行了最後的微調。

    **修正內容:**
    * **🐛 語言同步 (Language Sync)**:修復了在切換語言後,部分購買紀錄仍頑固地顯示英文的問題。現在,腳本會更精準地抓取您介面上看到的文字。
    * **🧹 亂碼掃除 (HTML Tag Fix)**:部分名稱較長的建築(例如鍊金實驗室)之前可能會在日誌裡顯示出 `` 之類的代碼。我們加強了清洗機制,確保日誌文字純淨無瑕。

    **簡單來說:日誌現在真的乾淨了,而且語言完全通順!**

    ---

    #### **English Changelog:**

    **v7.5.1 - Log Display Fixes**

    A hotfix to ensure the logging system works perfectly across all languages.

    * **Fixed Localization:** Resolved an issue where some logs remained in English despite the game being set to another language (e.g., Chinese/Japanese).
    * **Fixed HTML Garbage:** Improved the name-cleaning logic to ensure no HTML tags (like ``) appear in the logs for buildings with complex names.

  • v7.5 2025-12-04

    ### 📋 v7.5 版本更新說明

    #### **🌍 全球化體驗更新 (Global Experience Update)**

    您是否曾經在日誌中看到 `Cursor` 這種帶有奇怪符號的英文,卻不知道它剛才買了什麼?v7.5 徹底解決了這個問題!我們讓腳本學會了「說人話」。

    **本次更新亮點:**
    * **🗣️ 母語支援 (Native Language Logs)**:**[重點]**
    * 腳本現在會讀取遊戲當前的語言設定。
    * 如果您玩的是中文版,日誌就會顯示 `[購買] 指針` 而非 `Cursor`;如果是日文版則顯示 `工場`。
    * *現在,腳本用您最熟悉的語言向您匯報工作!*
    * **🧹 標籤淨化 (HTML Tag Cleaner)**:
    * 我們引入了全新的 `cleanName` 核心技術,徹底過濾掉名稱中惱人的 HTML 原始碼(如 ``, ``)。
    * 日誌介面現在清爽無比,只有純淨的文字。

    **簡單來說:日誌不再有亂碼,而且會說中文了!**

    ---

    **(English Changelog)**

    **v7.5 - Global Experience Update**
    We have polished the logging system to better support non-English players.

    * **🌍 Localized Object Names:** The script now uses the game's localized `displayName` instead of internal IDs. If you play in Chinese/Japanese/French, the logs will show item names in that language.
    * **🧹 HTML Tag Cleaner:** Removed annoying HTML tags (like ``, ``) from log outputs. The console and info bars are now much cleaner.

  • v7.4.3 2025-12-04

    ### 📋 v7.4.3 版本更新說明

    #### **🛠️ 完美修復版 (The Perfect Fix)**
    經過嚴格的測試,我們終於帶來了這個「既有 v7.4 的強大花園功能,又有 v7.3 完整資訊回饋」的終極版本。

    **本次修復與優化:**
    * **📝 日誌回歸 (Logs are Back)**:**[重點]** 消失的「自動購買」、「股市獲利」與「魔法連擊」通知現在會正確顯示在 Console 與日誌區了。看著日誌刷屏才是掛機的樂趣啊!
    * **📊 UI 數據顯示 (Stats UI)**:修復了 Buff 監控視窗底部「總產量」與「點擊力」數值消失的問題。
    * **🌻 花園邏輯確認**:
    * 修復了 **x7 Buff 期間** 聰明補種未能正確暫停的問題(現在會幫您省錢了)。
    * 再次驗證 **v7.4 自動育種** 功能:紫框(新品種)自動收,紅框(舊品種/雜草)自動殺,邏輯運作完美!

    **簡單來說:Bug 全修好了,請安心更新!**

  • v7.4 2025-12-04

    ### 📋 v7.4 版本更新說明 (Release Notes)

    #### **🧬 花園自動育種管理 (Auto Mutation Manager)**

    厭倦了盯著螢幕等待變異發生嗎?從 v7.4 開始,我們將「視覺輔助」升級為「全自動執行」。現在您大可以安心睡覺,腳本會替您完成所有的除草與收種工作!

    **我們實裝了全自動的圖鑑開拓邏輯(需在面板開啟):**

    * **🧬 紫框守護者 (Auto-Harvest New)**:**[重點更新]**
    * 當格子長出「圖鑑尚未解鎖」的新品種(紫框)時。
    * **行動指南**:腳本會**全程呵護**(跳過除草),直到植物成熟的那一刻,**自動收割**以獲取種子。
    * *不再錯過任何一顆稀有變異!*

    * **⚡ 紅框殺手 (Auto-Clean Known)**:
    * 當格子長出「圖鑑已解鎖」的植物或雜草(紅框)時。
    * **行動指南**:**秒殺剷除**。
    * *確保雜草或重複的植物不會佔用您寶貴的突變機率。*

    **簡單來說:紅框自動殺,紫框自動收,圖鑑全自動開!**

    ---

    #### **English Changelog:**

    **v7.4 - Auto Mutation Manager**

    We have evolved the visual aid into full automation! The script can now actively manage your garden mutations based on your Seed Log.

    * **🧬 Smart Harvest New (Purple Box):**
    * Detects plants that are **NOT yet unlocked**.
    * **Action:** Protects them while growing, and **automatically harvests** them the moment they mature to unlock the seed.

    * **⚡ Auto-Clean Known (Red Box):**
    * Detects anomalies that are **already unlocked** or weeds.
    * **Action:** Instantly harvests them to free up space for new mutations.

    **Logic:** Enabled via the new `[x] Enable Auto Mutation Management` checkbox in the control panel. Default behavior (if disabled) remains safe weeding only.

  • v7.3 2025-12-04

    ### 📋 v7.3 版本更新說明 (Release Notes)

    #### **🧬 花園視覺進化:異變智慧辨識 (Smart Mutation Highlighter)**

    還在擔心手滑鏟掉好不容易突變出來的稀有種子嗎?v7.3 賦予了腳本「鑑識眼」,讓您在茫茫雜草中一眼鎖定目標!

    **我們升級了花園輔助網格的判斷邏輯:**

    * **🟣 紫色發光框 (New Discovery!)**:**[重點更新]**
    * 當格子裡長出了**「圖鑑尚未解鎖」**的新品種時顯示。
    * **行動指南**:這是大獎!請絕對保留,等待成熟後收割種子。
    * *視覺效果:帶有雙層紫色光暈,優先級最高。*
    * **🔴 紅色實框 (Common/Weed)**:
    * 當格子裡長出了**「圖鑑已解鎖」**的植物(或是雜草/黴菌)時顯示。
    * **行動指南**:這是佔位子的垃圾,請直接剷除。
    * **🔵 藍色虛線** 與 **🟢 綠色微弱框** 維持原有功能(缺漏提示與正確狀態)。

    **簡單來說:看到紅色就鏟,看到紫色就留!**

    ---

    #### **English Changelog:**

    **v7.3 - Smart Mutation Highlighter**

    Stop accidentally harvesting rare mutations! The Garden Visual Aid has been upgraded with smart detection based on your Seed Log.

    * **🟣 Purple Glowing Border (New Discovery):**
    * Highlights plants that are **NOT yet unlocked** in your Seed Log.
    * **Action:** KEEP IT! This is the mutation you are looking for.
    * **🔴 Red Solid Border (Common/Trash):**
    * Highlights anomalies that are **already unlocked** (or just weeds/fungus).
    * **Action:** Dig it up to make space.

    **Logic:** The script now checks `plant.unlocked` status to decide the border color. Red means "Trash/Known", Purple means "New/Rare".

  • v7.2 2025-12-04

    ### 📋 v7.2 版本更新說明 (Release Notes)

    #### **🧠 花園經濟學更新:聰明補種 (Smart Garden Planting)**

    這是一個針對錢包的重大優化!以前,當您運氣好觸發 x777 點擊狂熱時,自動補種可能會因為種子價格暴漲(種子價格隨 CpS 浮動)而瞬間抽乾您的銀行庫存。

    **v7.2 加入了防呆機制:**

    * **💸 聰明補種 (Smart Planting)**:
    * 腳本現在會檢測您身上是否有產量加成 Buff (如 Frenzy, Building Special)。
    * 若有,腳本會**暫時停止補種**,直到 Buff 結束、種子價格回穩後才購買。
    * *效益:避免以天價買入種子,大幅節省資金。*
    * **🌾 收割安全 (Harvest Safety)**:
    * 不用擔心植物老死!收割邏輯是獨立運作的。即使因為 Buff 暫停了補種,腳本**依然會照常收割**瀕死的植物。
    * **⚙️ 設定**:
    * 控制面板新增 `[x] 聰明補種 (Buff 期間暫停)` 開關,預設開啟。

    ---

    #### **English Changelog:**

    **v7.2 - Smart Garden Planting (Economic Update)**

    Stop going bankrupt buying seeds during a x777 combo! Seed prices scale with your current CpS, making auto-planting very expensive during buffs.

    * **🧠 Smart Planting:** The script now detects if you have any active CpS buffs (e.g., Frenzy, Elder Frenzy). If yes, it **pauses planting** until the buff expires and prices return to normal.
    * **🌾 Harvest Safety:** Harvesting is **unaffected**. Even if planting is paused to save money, the script will still harvest dying plants to secure your seeds/rewards.
    * **⚙️ UI:** Added a toggle `[x] Smart Planting` in the Garden section.

  • v7.1 2025-12-03

    ### 📋 v7.1 版本更新說明 (Release Notes)

    #### **🌸 花園專項更新:陣型視覺輔助 (Garden Matrix Visual Aid)**

    您是否曾經在進行異變雜交(Mutation Setup)時,忘記原本格子裡種的是什麼?或者雜草長出來了卻沒發現?**v7.1 完美解決了這個問題!**

    我們在花園介面上引入了一層**智慧視覺網格**,它會比對當前的植物與您「記憶」的陣型:

    * **🔴 紅色發光框 (Anomaly/Mutation)**:**重點功能!**
    * 當格子裡長出了與記憶不符的植物(例如:**成功雜交出的新種子** 或 **雜草**)。
    * 醒目的紅色邊框與光暈,讓您一眼鎖定變異成果,絕不錯過採收時機。
    * **🔵 藍色虛線框 (Missing)**:
    * 當格子變空,但記憶中該位置應該要有植物時。
    * 提示您(與自動補種模組)這裡需要補種。
    * **🟢 綠色微弱框 (Correct)**:
    * 植物與記憶一致,一切正常。

    **⚙️ 技術細節:**
    * 採用 **CSS Class 樣式切換** 技術,非覆蓋層。**完全不影響滑鼠點擊**,您可以正常查看植物資訊或手動操作。
    * 在控制面板的「花園自動化設定」區塊中,新增了 `[x] 顯示陣型輔助網格` 開關,您可以隨時開啟或關閉。

    ---

    #### **English Changelog:**

    **v7.1 - Garden Matrix Overlay (Visual Aid)**

    Stop guessing what was planted where! This update brings a visual layer to the Garden minigame to help with mutation hunting:

    * **🔴 Red Glowing Border (Anomaly):** Highlights tiles where the current plant does **not match** your saved memory. This instantly spots **New Mutations** or **Weeds**.
    * **🔵 Blue Dashed Border (Missing):** Highlights empty tiles that should have a plant (according to memory).
    * **🟢 Green Border:** Everything matches.

    **Technical Note:** Implemented via CSS classes on existing tiles. **Zero interference with mouse clicks or tooltips.** Toggle this feature in the Control Panel.

  • v7.0 2025-12-03

    ### 📋 v7.0 版本更新說明 (Release Notes)

    #### **🚀 重大更新:股市與魔法的終極進化 (The Ultimate Upgrade)**

    歡迎來到 v7.0!此版本引入了兩個高階掛機模組,讓您的餅乾帝國在閒置時也能瘋狂增長。

    **1. 📈 股市自動量化交易 (Stock Market Auto-Trader)**
    * 不再隨機買賣!腳本現在會讀取內部的 **靜止價值 (Resting Value, RV)** 演算法。
    * **策略**:當股價被低估時 (低於 RV 的 50%) 全倉買入;當股價被高估時 (高於 RV 的 150%) 清倉賣出。
    * **獲利保證**:算法已計入 20% 交易稅成本,確保每次賣出都是淨賺。

    **2. 🧙‍♂️ 閒置魔法:憑空建築 (Idle Magic: Spontaneous Edifice)**
    * 覺得魔力滿了溢出很浪費?現在腳本會幫你利用它!
    * **邏輯**:當魔力全滿 (>95%)、場上**無金餅乾**且**無連擊 Buff** 時,自動施放 `Spontaneous Edifice`。
    * **效果**:消耗魔力,**免費獲得一座當前擁有的最貴建築**(後期收益極高)。
    * *安全機制:此功能優先級低於連擊魔法,絕不會干擾原本的「命運之手」連擊。*

    **3. ⚙️ 其他改進**
    * **UI 升級**:控制面板新增「v7.0 進階掛機」區塊,您可以自由開關股市或閒置魔法功能。
    * **穩定性**:繼承 v6.5 的所有修復(包含中文彈窗修復、AHK 精準信號、巫師塔上限保護)。

    ---

    #### **English Changelog:**

    **v7.0 - Stock Market & Idle Magic**

    * **📈 Stock Market Auto-Trader:** Implemented a smart trading algorithm based on "Resting Value" (RV).
    * **Buy:** Price < 0.5 * RV.
    * **Sell:** Price > 1.5 * RV (Guaranteed profit after overhead).
    * **🧙‍♂️ Idle Magic (Spontaneous Edifice):**
    * Automatically casts `Spontaneous Edifice` to get a **free building** when mana is full and no combos are active.
    * Safe logic: Will not interfere with `Hand of Fate` combos.
    * **⚙️ UI Update:** Added a new "Advanced" section in the control panel to toggle these new features.

  • v6.5 2025-12-02

    ### 🛠️ v6.5 修正重點 (Fix Log)

    1. **🔴 修復彈窗卡住 (Critical Fix)**:
    * **原因**:截圖顯示您遊玩的是**中文版**,彈窗內容是「警告...」,但原本代碼只檢查了英文關鍵字 (`Warning`, `One Mind`),導致比對失敗無法點擊。
    * **修正**:在 `autoConfirmPrompt` 中加入了中文關鍵字 `['警告', '不好的结果']`,現在能正確識別並自動點擊「是」。
    2. **📜 補回購買日誌 (Logs Restored)**:
    * **原因**:在重構過程中,`console.log` 的代碼被遺漏了。
    * **修正**:補回了 `getUpgradeName` 輔助函數

  • v6.3 2025-12-02