Greasy Fork

Greasy Fork is available in English.

Cookie Clicker Ultimate Automation

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

当前为 2025-12-14 提交的版本,查看 最新版本

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

  • v8.8.9 2025-12-22

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

    #### **🌿 掌控全局 (Total Control)**

    * **📝 花園藍圖編輯器 (Blueprint Editor)**:**[Major Feature]**
    * **痛點 (Problem)**:舊版腳本只能使用預設陣型,想自定義陣型需要修改代碼,對一般玩家太不友善。
    * **解決 (Solution)**:引入互動式編輯介面。玩家可以像畫圖一樣配置植物 ID,並直接存入設定檔。
    * **效益 (Benefit)**:**戰術自由!** 無論是為了美觀還是為了極限效率,您的花園由您定義。

    * **📂 群組化存檔架構 (Profile Groups)**:**[Infrastructure]**
    * **痛點**:原本的 5 個存檔位根本不夠用(平時種植、全滿陣型、突變實驗...)。
    * **解決**:升級數據結構。
    * **預設群組**:5 個(相容舊版)。
    * **擴充群組**:36 個(全新戰術空間)。
    * **效益**:**無限可能!** 您可以為每一種突變可能性都存一個專屬陣型。

    * **🧬 進化論協議 (Evolution Protocol)**:**[Logic Polish]**
    * **痛點**:當載入高階陣型但玩家尚未解鎖對應種子時,腳本會試圖購買並報錯,導致視覺混亂(藍框)。
    * **解決**:視覺上顯示 **🔒 深色鎖定格**;邏輯上自動略過該格子的操作。
    * **效益**:**清晰明確!** 一眼就能看出還缺哪顆種子才能完成陣型。

    * **🛡️ 安全與遷移 (Safety & Migration)**:**[System]**
    * **編輯模式阻斷**:編輯時自動暫停種植/鏟除邏輯,防止手動操作被 AI 干擾。
    * **自動遷移**:舊版 `GardenSavedPlots` 會在啟動時自動轉換為新的 `GardenProfiles` 結構。**無需手動備份。**

    ---

    #### **English Changelog:**

    **v8.8.9 - Garden Command Center**

    From automation to strategic dominance.

    * **📝 Blueprint Editor:** **[Major Feature]**
    * **The Problem**: Customizing garden layouts required coding knowledge.
    * **The Solution**: A visual, click-to-edit interface for garden planning.
    * **The Benefit**: **Tactical Freedom.** Design your farm, your way.

    * **📂 Profile Expansion:** **[Infrastructure]**
    * **The Problem**: 5 save slots were not enough for advanced players.
    * **The Solution**: Added an "Extended Group" with **36 new slots**.
    * **The Benefit**: **Organized Chaos.** Keep your mutation experiments separate from your production layouts.

    * **🧬 Evolution Protocol:** **[Logic Polish]**
    * **The Solution**: The bot now recognizes locked seeds and displays them with a **🔒 Lock Icon** instead of trying to plant them.
    * **The Benefit**: **Visual Clarity.** Know exactly what you are missing.

    ---

  • v8.8.8.3 2025-12-22

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

    #### **⚙️ 精密調校 (Fine Tuning)**

    * **🔄 戰術補貨修復 (Tactical Reload Fix)**:**[Interaction Fix]**
    * **痛點 (Problem)**:當玩家手動按 `F10` 介入操作時,打斷了自動腳本的執行流 (Execution Flow),導致「解除戒嚴」的信號遺失,花園功能永久卡在「關閉」狀態。
    * **解決 (Solution)**:將 `F10` 的邏輯納入狀態機管理。現在手動補貨會強制觸發 `resetCooldown(60s)`。
    * **效益 (Benefit)**:**人機無縫接軌!** 您可以隨時接管戰場,腳本會自動在您停手後負責善後。

    * **🛡️ 啟動防護 (Startup Protection)**:**[Safety]**
    * **痛點**:腳本載入速度快於遊戲存檔讀取速度,導致腳本誤判當前無季節,而錯誤地購買了誓約。
    * **解決**:加入暖機檢查機制 (Warm-up Check)。
    * **效益**:**開機即穩!** 不再浪費餅乾買不需要的升級。

    * **⏱️ 防抖動機制 (Debounce Logic)**:**[Optimization]**
    * **機制**:計時器採用 **Reset** 而非 **Stack** 模式。
    * **情境**:第 0 秒發射 -> 第 10 秒又發射。
    * **結果**:花園將在第 70 秒 (10+60) 恢復,而不是第 60 秒。確保資金水位完全回穩。

    ---

    #### **English Changelog:**

    **v8.8.8.3 - Tactical Sync**

    Polishing the link between Man and Machine.

    * **🔄 Tactical Reload Fix:** **[Interaction Fix]**
    * **The Problem**: Manual `F10` usage interrupted the auto-resume logic, leaving the Garden stuck in "OFF" mode.
    * **The Solution**: `F10` now correctly triggers a timer reset.
    * **The Benefit**: **Seamless Handover.** The bot picks up right where you left off.

    * **🛡️ Startup Shield:** **[Safety]**
    * **The Solution**: Added checks to prevent buying Pledges before Game data is fully loaded.
    * **The Benefit**: Prevents wasted cookies on startup.

    ---

  • v8.8.8 2025-12-21

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

    #### **🔒 安全第一 (Safety First)**

    * **👮 Godzamok 戒嚴模式 (Martial Law Protocol)**:**[Safety Logic]**
    * **痛點 (Problem)**:Godzamok 策略需要賣掉大量建築,導致庫存餅乾(Bank)暫時性暴跌。如果此時花園自動邏輯觸發「購買/種植」操作,高昂的費用可能直接讓玩家破產。
    * **解決 (Solution)**:建立連動機制。只要 Godzamok 處於「觸發狀態 (Active)」,花園自動化就會被**物理鎖死 (Hard Locked)**。
    * **效益 (Benefit)**:**資產零風險!** 確保您賺到的每一個餅乾都能安全入袋,而不是被花園吃掉。
    * **復原機制**:核彈結束並買回建築後,系統會倒數 60 秒(讓 CpS 回穩),然後自動將花園切換回原本的狀態。

    * **🛡️ 繼承 v8.8.7 的關鍵修復 (Legacy Critical Fixes)**:**[Bug Fix]**
    * **Cookie Storm 防護**:徹底修復了 Buff 屬性缺失導致的 `NaN` 錯誤,確保不會因為數學錯誤而清空您的建築。
    * **季節開關防抖**:20 秒強制冷卻,專治高延遲與連點器環境下的開關亂跳。

    ---

    #### **English Changelog:**

    **v8.8.8 - Martial Law**

    Financial safety protocols engaged.

    * **👮 Godzamok Martial Law:** **[Safety Logic]**
    * **The Problem**: Selling buildings for combos leaves your bank vulnerable. An ill-timed Garden planting could bankrupt you.
    * **The Solution**: The bot now declares "Martial Law" during combos, **disabling the Garden** instantly.
    * **The Benefit**: **Zero Bankruptcy Risk.**
    * **The Mechanism**: Includes a **60s cooldown** after the combo ends to ensure CpS stabilizes before re-enabling the Garden.

    * **🛡️ Critical Legacy Fixes:** **[Bug Fix]**
    * Includes the **Anti-NaN** patch for Cookie Storm safety.
    * Includes the **20s Season Cooldown** for lag prevention.

    ---

  • v8.8.7 2025-12-21

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

    #### **🚨 災難控制 (Crisis Control)**

    * **🛡️ Godzamok 災難修復 (The "NaN" Fix)**:**[CRITICAL]**
    * **痛點 (Problem)**:當 **Cookie Storm** 來襲,大量的金色餅乾會導致 Buff 列表屬性缺失,計算結果變成 `NaN` (非數值)。這會繞過過濾器,導致腳本誤以為條件達成而**賣光建築**。
    * **解決 (Solution)**:引入嚴格的屬性空值檢查 (Null Check)。任何異常的 Buff 數據都會被視為無效,直接阻斷發射信號。
    * **效益 (Benefit)**:**絕對安全!** 您的建築再也不會死於不明不白的數學錯誤。

    * **⏳ 季節切換抗延遲 (Season Lag Resistance)**:**[Stability]**
    * **痛點**:在使用外部連點器 (AHK) 時,CPU 負載極高。腳本買了季節開關,但因為 Lag,遊戲還沒反應過來,腳本以為沒買到又點了一次(結果變成了取消)。
    * **解決**:將切換後的強制等待時間從 5 秒暴增至 **20 秒**。
    * **效益 (Benefit)**:**穩如泰山!** 給遊戲伺服器一點喘息時間,確保開關狀態正確切換。

    * **📊 UI 決策透明化 (Transparent Logs)**:**[UX]**
    * **解決**:日誌現在會印出 `Godzamok Triggered: x15,000` (範例)。
    * **效益**:讓玩家一眼就能驗證腳本的判斷是否正確。

    ---

    #### **English Changelog:**

    **v8.8.7 - Crisis Averted**

    A mandatory update to prevent accidental building liquidation.

    * **🛡️ Godzamok Critical Fix:** **[Safety]**
    * **The Problem**: **Cookie Storm** caused a `NaN` error in logic, leading to accidental selling of buildings.
    * **The Solution**: Added strict data validation for all Buffs.
    * **The Benefit**: **Empire Saved.** No more accidental suicides during storms.

    * **⏳ Season Lag Fix:** **[Stability]**
    * **The Solution**: Increased season switch cooldown to **20 seconds**.
    * **The Benefit**: Prevents "on-off" looping issues for players using heavy auto-clickers.

    * **📊 UI Transparency:** **[UX]**
    * **The Benefit**: Logs now show the exact trigger multiplier values.

    ---

  • v8.8.6 2025-12-20

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

    #### **📐 重建秩序 (Rebuilding Order)**

    * **📜 季節邏輯重寫 (Season Logic Overhaul)**:**[Refactor]**
    * **痛點 (Problem)**:舊版腳本透過「計算已購買數量」來判斷是否畢業。但天國升級 (Heavenly Upgrades) 常常會弄亂這個數字,導致腳本以為買齊了就跳過季節。
    * **解決 (Solution)**:改用 **ID 白名單**。腳本內建了所有季節餅乾的精確 ID 列表,直接檢查 `Game.UpgradesById[id].bought`。
    * **效益 (Benefit)**:**零誤判!** 無論您有多少永久升級,腳本都能精確判斷還缺哪一塊餅乾。

    * **🎅 聖誕節修正 (Christmas Fix)**:**[Logic Fix]**
    * **痛點**:聖誕老人升到 Lv14 很快,但馴鹿餅乾很慢。舊版腳本常在聖誕老人滿級後就急著換季,導致玩家錯過餅乾。
    * **解決**:將畢業條件鎖死為 `Santa >= 14 AND Reindeers >= 7`。
    * **效益**:**完美收集!** 確保每一年的聖誕節都是大豐收。

    * **🔇 日誌降噪 (Log De-noise)**:**[UX Polish]**
    * **痛點**:自動點擊確認視窗時,日誌會被重複的訊息淹沒。
    * **解決**:引入 `Game.promptOn` 狀態檢查與時間冷卻。
    * **效益**:**耳根清靜!** 重要訊息不再被雜訊掩蓋。

    * **PM Note**:
    * QA 報告中的代碼掃描誤報已確認為靜態分析限制,經人工覆核邏輯無誤,請安心使用。

    ---

    #### **English Changelog:**

    **v8.8.6 - Seasons Reforged**

    A foundation rebuild for perfect automation.

    * **📜 Season Logic Overhaul:** **[Refactor]**
    * **The Problem**: "Counting" upgrades was fragile and prone to errors from Heavenly Upgrades.
    * **The Solution**: Switched to **ID Whitelisting**. The bot now checks specific IDs for every seasonal drop.
    * **The Benefit**: **100% Accuracy!** Never skips a season prematurely again.

    * **🎅 Christmas Fix:** **[Logic Fix]**
    * **The Solution**: Enforced a strict rule: **Santa Lv14 + 7 Reindeer Cookies**.
    * **The Benefit**: **No Drop Left Behind!**

    * **🔇 Log De-noise:** **[UX Polish]**
    * **The Solution**: Added smart filtering and cooldowns to log messages.
    * **The Benefit**: **Clean UI!**

    ---

  • v8.8.5.4 2025-12-20

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

    #### **🧹 掃地機器人 (Cleaning Up the Mess)**

    * **🔇 日誌刷屏修復 (Log Silencer)**:**[UI Polish]**
    * **痛點 (Problem)**:當多個點擊觸發同時發生時,自動購買視窗的確認訊息會在日誌中重複刷屏,掩蓋了真正重要的資訊。
    * **解決 (Solution)**:實作訊息冷卻 (Cooldown) 機制。
    * **效益 (Benefit)**:**乾淨俐落!** 日誌現在只說重點,不再當複讀機。

    * **👻 幽靈視窗過濾 (Ghost Filter)**:**[Bug Fix]**
    * **痛點 (Problem)**:遊戲有時會殘留不可見的視窗元素,導致腳本誤判並嘗試點擊空空氣。
    * **解決 (Solution)**:增加可見性檢查 (Visibility Check)。
    * **效益 (Benefit)**:**邏輯精確!** 確保每一次點擊都是有效的。

    * **⚡ 效能優化 (Performance)**:**[Core]**
    * **更新**:直接調用遊戲內部變數 `Game.promptOn` 來判斷是否有視窗。
    * **效益**:減少不必要的 DOM 查詢,讓瀏覽器跑得更輕鬆。

    ---

    #### **English Changelog:**

    **v8.8.5.4 - Log Silencer**

    Restoring peace to your interface.

    * **🔇 Log Spam Fix:** **[UI Polish]**
    * **The Problem**: "One Mind" warning confirmations were spamming the log repeatedly.
    * **The Solution**: Added a debounce timer to log messages.
    * **The Benefit**: **Clean Logs!** No more wall of text for a single action.

    * **⚡ Performance & Ghost Fix:** **[Core]**
    * **The Problem**: The bot was wasting resources checking for popups that didn't exist or weren't visible.
    * **The Solution**: Used `Game.promptOn` for instant checks.
    * **The Benefit**: **Lower CPU Usage!** Smoother gameplay.

    ---

  • v8.8.5.3 2025-12-20

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

    #### **🔒 保險栓與馴鹿 (Safety Catches & Reindeers)**

    * **🎅 聖誕節畢業判定修正 (Reindeer Check)**:**[Logic Fix]**
    * **痛點 (Problem)**:玩家回報,明明還缺好幾塊馴鹿餅乾,但腳本因為聖誕老人滿級了就直接跳過聖誕節,導致收集失敗。
    * **解決 (Solution)**:加入強制檢查邏輯。目標:**7/7 馴鹿餅乾**。
    * **效益 (Benefit)**:**全收集保證!** 除非拿滿獎勵,否則絕不換季。

    * **💎 戰術核彈安全鎖 (Godzamok Check)**:**[Safety]**
    * **痛點 (Problem)**:有時候換了萬神殿配置忘記換回來,手滑按到核彈按鈕 -> 建築全賣了 -> 發現沒 Buff -> 心態崩潰。
    * **解決 (Solution)**:發射前檢查 Diamond Slot。沒 Godzamok = 不准發射。
    * **效益 (Benefit)**:**絕對防呆!** 拯救您的手指和存檔。

    ---

    #### **English Changelog:**

    **v8.8.5.3 - Reindeer Guardian**

    Ensuring complete collections and preventing nuke disasters.

    * **🎅 Christmas Fix:** **[Logic Fix]**
    * **The Problem**: The bot was leaving Christmas season too early based only on Santa levels.
    * **The Solution**: Now enforces a strict check for **7 Reindeer Cookies**.
    * **The Benefit**: **100% Completion!** No drops left behind.

    * **💎 Nuke Safety Lock:** **[Safety]**
    * **The Problem**: Accidentally nuking buildings without Godzamok equipped is a nightmare.
    * **The Solution**: The Nuke button now checks your Pantheon. No Godzamok in Diamond = **Access Denied**.
    * **The Benefit**: **Zero Risk!** Prevents user error from ruining a run.

    ---

  • v8.8.5.2 2025-12-20

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

    #### **⏩ 繼續您的旅程 (Resume Your Journey)**

    * **🧠 智慧季節跳過 (Smart Season Skip)**:**[Logic Refactor]**
    * **痛點 (Problem)**:玩家回報,每次不小心按到重整,或者瀏覽器崩潰重啟後,腳本都會從「情人節」重新開始跑季節循環,浪費了切換成本和時間。
    * **解決 (Solution)**:實作 **「先檢查後切換 (Check-First)」** 機制。
    * **效益 (Benefit)**:**即刻復工!** 腳本現在知道您哪裡畢業了、哪裡還沒。它會直接帶您回到戰場,而不是新手村。

    * **🔄 狀態同步 (State Sync)**:**[Core Polish]**
    * **技術細節**:啟動時強制執行一次庫存盤點 (`Inventory Audit`),並根據盤點結果初始化狀態機 (`State Machine`)。

    ---

    #### **English Changelog:**

    **v8.8.5.2 - Smart Skip**

    Fixing the logic to respect your progress.

    * **🧠 Smart Season Skip:** **[Logic Refactor]**
    * **The Problem**: Refreshing the page caused the bot to restart the season cycle from step 1 (Valentine's), even if you were already farming Easter eggs.
    * **The Solution**: Implemented a "Check-First" logic. The bot scans your upgrades *before* deciding which season to switch to.
    * **The Benefit**: **Zero Time Wasted!** It picks up exactly where you left off.

    ---

  • v8.8.5.1 (FIX) 2025-12-20

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

    #### **🔧 武器校準 (Calibrating the Weapon)**

    * **💾 設定存檔修復 (Persistence Fix)**:**[Bug Fix]**
    * **痛點 (Problem)**:玩家回報,每次重整網頁後,精心設定的「買回數量」和「AHK 熱鍵」都會跳回預設值,非常麻煩。
    * **解決 (Solution)**:修復了 `Save/Load` 函數中遺漏的變數映射,並加入數值防呆檢查。
    * **效益 (Benefit)**:**配置固化!** 您的戰術設定現在會像憲法一樣被記住。

    * **📏 UI 介面微調 (UI Alignment)**:**[UI Polish]**
    * **痛點 (Problem)**:戰術核彈按鈕 (`☢️`) 比旁邊的按鈕高了一點點,讓強迫症患者感到不適。
    * **解決 (Solution)**:CSS 修正 (`top: 10px`)。
    * **效益 (Benefit)**:**視覺和諧!** 雖然不影響功能,但看著整齊的介面,心情會更好。

    ---

    #### **English Changelog:**

    **v8.8.5.1 - Tactical Fix**

    Quick polish for the Nuke module.

    * **💾 Settings Fix:** **[Bug Fix]**
    * **The Problem**: Nuke settings (Buyback/Hotkeys) were resetting after page reload.
    * **The Solution**: Fixed the persistence logic.
    * **The Benefit**: **Permanent Config!** Your settings now survive a browser refresh.

    * **📏 UI Polish:** **[UI]**
    * **Fixed**: Aligned the **☢️ Button** with the rest of the UI elements. OCD healed.

    ---

  • v8.8.5 2025-12-20

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

    #### **💥 讓世界感受痛苦 (Know Pain)**

    * **☢️ Godzamok 戰術按鈕 (Tactical Nuke)**:**[New Feature]**
    * **痛點 (Problem)**:手動執行 Godzamok 循環(賣幾百個建築再買回來)非常慢,而且容易操作失誤,浪費了寶貴的 x777 時間。
    * **解決 (Solution)**:一鍵自動化循環。
    * **效益 (Benefit)**:**完美時機!** 瞬間賣出 -> 瘋狂點擊 -> 瞬間買回。將人為失誤降為零。

    * **⚡ 原生 API 重構 (Native Refactor)**:**[Performance]**
    * **痛點 (Problem)**:舊版模擬點擊會導致瀏覽器渲染卡頓,甚至讓遊戲暫時凍結。
    * **解決 (Solution)**:直接注入遊戲底層函數。
    * **效益 (Benefit)**:**快如閃電!** 操作在邏輯層完成,不經過 UI 渲染層,速度提升 100 倍。

    * **⚙️ 彈性戰術設定 (Flexible Config)**:**[Config]**
    * **永續流**:設定買回數量為 `400`,保持庫存以便下次獻祭。
    * **梭哈流**:設定買回數量為 `-1`,執行 **Buy Max**,榨乾最後一塊餅乾。

    * **⌨️ 熱鍵支援 (Hotkey)**:**[Input]**
    * 讓您的腳本與巨集軟體 (Macros) 完美同步,進入無人值守的掛機新境界。

    ---

    #### **English Changelog:**

    **v8.8.5 - Tactical Nuke**

    Instant execution for massive Godzamok buffs.

    * **☢️ Tactical Nuke Button:** **[New Feature]**
    * **The Problem**: Manual Godzamok sacrifices are slow and prone to miss-clicks.
    * **The Solution**: A single button that Sells, Waits, and Buys back automatically.
    * **The Benefit**: **Perfect Execution!** No lag, no errors, pure DPS.

    * **⚡ Native API Refactor:** **[Performance]**
    * **The Solution**: Switched from click simulation to direct game function calls.
    * **The Benefit**: **Zero Lag!** Selling thousands of buildings happens instantly (1ms).

    * **⌨️ AHK Integration:** **[Input]**
    * **Feature**: Added global hotkey listener (`Ctrl+Shift+F9`).
    * **Benefit**: Allows external macro tools (like AutoHotkey) to trigger the nuke remotely.

    ---

  • v8.8.4 2025-12-19

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

    #### **🎯 精準就是一切 (Precision is Everything)**

    * **✅ 季節判定重構 (Season Overhaul)**:**[Logic Refactor]**
    * **痛點 (Problem)**:舊版邏輯是「如果商店裡沒東西買了,就換下個季節」。但有時因為網路延遲,商店加載慢了一拍,腳本就誤以為「買光了」而跳過季節,導致缺漏。
    * **解決 (Solution)**:實作「正面表列 (Positive Check)」。
    * **效益 (Benefit)**:**100% 收集率!** 腳本現在只認數字 (inventory count)。沒湊滿 20 顆彩蛋,它絕不離開。

    * **🔄 季節切換器修復 (Toggle Fix)**:**[Bug Fix]**
    * **痛點 (Problem)**:一旦購買過某個季節升級,舊版腳本有時會無法切換回該季節。
    * **解決 (Solution)**:修正判定條件 (改為檢查 `canBuy` 而非 `!bought`)。
    * **效益 (Benefit)**:**無限循環!** 確保季節切換可以無限次執行,不會卡死。

    * **🛡️ 花園安全連動 (Garden Safety Linkage)**:**[Safety]**
    * **機制**:新增三道觸發器 (Triggers)。
    * **動作**:切換陣型/頁面/鎖定 -> **立即關閉自動管理**。
    * **效益 (Benefit)**:**防呆設計!** 防止因為手滑或切換太快,導致腳本誤判田地狀況而剷除植物。

    * **🔒 貪婪鎖定機制 (Greedy Locking)**:**[Constitution]**
    * **更新**:將打寶模式 (`isFarming`) 的判定權限提升至最高級別。
    * **效益**:在打寶期間,任何試圖購買誓約的行為都會被物理攔截。

    ---

    #### **English Changelog:**

    **v8.8.4 - Precision Protocol**

    No more guessing. Only precise execution.

    * **✅ Season Logic Overhaul:** **[Logic Refactor]**
    * **The Problem**: Lag sometimes tricked the bot into skipping seasons before collecting all drops.
    * **The Solution**: Implemented a "Positive Check". The bot now counts your inventory items directly.
    * **The Benefit**: **Zero Misses!** The bot stays in the season until the collection target (e.g., 7/7 or 20/20) is met.

    * **🛡️ Tri-Layer Garden Defense:** **[Safety]**
    * **The Solution**: The Mutation Manager now auto-disables upon **Slot Switch**, **Page Switch**, or **Lock Enable**.
    * **The Benefit**: **Peace of Mind!** Prevents accidental plant removal during UI interactions.

    * **🔄 Season Toggle Fix:** **[Bug Fix]**
    * **Fixed**: A bug where the bot couldn't switch back to a previously bought season. The seasonal cycle is now infinite and robust.

    ---

  • v8.8.3 2025-12-19

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

    #### **⚖️ 風險與安全的藝術 (The Art of Risk & Safety)**

    * **🎰 魔法賭徒系統 (Magic Gambler)**:**[New Feature]**
    * **痛點 (Problem)**:手動執行連招很累,而且很難判斷這次的 RNG 種子好不好。
    * **解決 (Solution)**:整合式賭博按鈕 + 紅綠燈信號系統。
    * **效益 (Benefit)**:**可視化運氣!** 看到紅燈就 F5 重來,看到綠燈就享受餅乾雨。這就是後期玩家需要的效率。

    * **🛡️ 花園防呆機制 (Garden Safety Interlock)**:**[Logic Update]**
    * **痛點 (Problem)**:當玩家切換到一個「空白陣型」準備重新規劃時,腳本有時會因為反應太快,把田裡還沒收割的植物當作「不符合陣型」的雜草全部拔光。
    * **解決 (Solution)**:切換陣型動作觸發時,強制關閉自動管理功能。
    * **效益 (Benefit)**:**絕對防誤刪!** 給您足夠的緩衝時間來確認田地狀態,直到您準備好再次開啟自動化。

    * **🔧 技術優化 (Under the Hood)**:
    * **憲法級防護**:再次強化打寶模式 (Farming Mode) 下的資金鎖定,杜絕任何意外支出。
    * **本地化**:花園面板全面支援中文顯示,介面更親切。

    ---

    #### **English Changelog:**

    **v8.8.3 - Safe Bet**

    Aggressive combos, defensive logic.

    * **🎰 Magic Gambler:** **[New Feature]**
    * **The Problem**: Guessing if a *Hand of Fate* cast is worth it takes time.
    * **The Solution**: An automated Gambler button with **🚦 Traffic Light** feedback.
    * **The Benefit**: **Instant Feedback!** Green means profit, Red means reload. Stop wasting sugar lumps on bad RNG.

    * **🛡️ Garden Safety Interlock:** **[Logic Update]**
    * **The Problem**: Switching to an empty layout slot could cause the bot to instantly weed out your valuable plants.
    * **The Solution**: Switching slots now **Force-Disables** the Mutation Manager.
    * **The Benefit**: **No More Accidents!** Your plants are safe until you explicitly tell the bot to start managing the new layout.

    ---

  • v8.8.2 2025-12-19

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

    #### **🎲 命運掌握在自己手中 (Roll the Dice)**

    * **🎰 魔法賭徒系統 (Magic Gambler)**:**[New Feature]**
    * **痛點 (Problem)**:後期衝刺 CpS 需要精準的操作:施法 -> 點餅乾 -> 判斷 Buff -> 決定是否延長時間。手動操作容易失誤且疲勞。
    * **解決 (Solution)**:整合式按鈕。
    * **效益 (Benefit)**:**戰術自動化!** 您只需要負責按按鈕,剩下的交給腳本。配合 **🚦 紅綠燈信號**,您將清楚知道何時該重置隨機數 (Scumming),何時該享受收割。

    * **🛡️ 憲法級資金鎖 (Constitution Protection)**:**[Safety]**
    * **痛點 (Problem)**:在刷萬聖節/復活節掉落物時,舊版偶爾會因為邊緣邏輯而誤買誓約,趕走了皺紋蟲。
    * **解決 (Solution)**:將鎖定邏輯提升至最高優先級 (Constitution Level)。
    * **效益 (Benefit)**:**絕對安全!** 打寶期間,資金鎖定如同憲法般不可撼動。

    * **🌐 介面與本地化 (UI & Localization)**:**[UX Improvement]**
    * **整合**:賭博按鈕直接整合在糖塊 (Sugar Lump) 圖示下方,操作更順手。
    * **修復**:徹底解決了花園面板在某些語系下顯示英文代碼的問題。

    ---

    #### **English Changelog:**

    **v8.8.2 - Jackpot Protocol**

    Turning luck into strategy.

    * **🎰 Magic Gambler:** **[New Feature]**
    * **The Problem**: Executing perfect FTHOF combos requires intense focus and fast reflexes.
    * **The Solution**: An integrated "Gamble" button that handles Casting, Clicking, and Buff Extension automatically.
    * **The Benefit**: **Effortless Combos!** Plus, the new **🚦 Traffic Light** visual tells you exactly how good your current RNG seed is.

    * **🛡️ Constitution Protection:** **[Safety]**
    * **The Problem**: Rare edge cases allowed the bot to buy items during Season Farming.
    * **The Solution**: Elevated the "Farming Lock" logic to the highest possible priority.
    * **The Benefit**: **Ironclad Defense!** Your Wrinklers are safe until the farming is done.

    * **🌐 UI Polish:** **[UX Improvement]**
    * **Integrated**: The Gamble button is now neatly embedded in the Grimoire interface.
    * **Localized**: Garden Panel now properly supports Chinese characters.

    ---

  • v8.8.1-Fix2 2025-12-18

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

    #### **🗣️ 語言的藝術與絕對防禦 (Language & Shields)**

    * **🌐 全域本地化 (True Localization)**:**[UX Improvement]**
    * **痛點 (Problem)**:以前無論遊戲語言為何,腳本的花園面板 (Grid) 永遠顯示英文 (如 Bakeberry),這對非英語玩家很不直觀。
    * **解決 (Solution)**:實作動態語言讀取。
    * **效益 (Benefit)**:**一目了然!** 看到「麵包莓」總比看到 "Bakeberry" 親切多了。

    * **🛡️ Godzamok 獻祭鎖 (Hard Lock)**:**[Security]**
    * **痛點 (Problem)**:玩家總是擔心設定錯誤導致 Godzamok 把昂貴的建築(如游標)賣光。
    * **解決 (Solution)**:在執行賣出動作前,加入最後一道 **白名單檢查**。
    * **效益 (Benefit)**:**安心掛機!** 腳本現在只認可低階建築 (農場/礦坑/工廠) 作為祭品,其他一律拒絕交易。

    * **🔧 誓約邏輯修復 (Pledge Logic Fix)**:**[Bug Fix]**
    * **修復**:修正了在打寶模式 (Farming Mode) 下,某些極端情況會導致誓約被誤買的問題。現在打寶期間的資金鎖定更加嚴格。

    * **⚡ 技術優化 (Under the Hood)**:
    * **CSP 合規**:重寫了 Tooltip 介面,符合更嚴格的瀏覽器安全規範,減少崩潰機率。

    ---

    #### **English Changelog:**

    **v8.8.1 - Polyglot Guardian**

    Making the bot smarter, safer, and multilingual.

    * **🌐 True Localization:** **[UX Improvement]**
    * **The Problem**: Garden logs and grids were stuck in English, breaking immersion for international players.
    * **The Solution**: The bot now dynamically reads the game's language file.
    * **The Benefit**: **Native UI!** See plant names in your own language.

    * **🛡️ Godzamok Hard Lock:** **[Security]**
    * **The Problem**: The fear of accidentally selling high-tier buildings (like Cursors) during a combo.
    * **The Solution**: A hard-coded whitelist. The bot physically cannot sell anything except Farms, Mines, and Factories.
    * **The Benefit**: **Zero Accidents!** Your Cursors are safe.

    * **🔧 Logic Polish:**
    * **Pledge Fix**: Strengthened the logic to ensure Elder Pledge is NEVER bought during Season Farming mode.
    * **CSP Compliance**: Rewrote tooltips for better browser security and stability.

    ---

  • v8.8.0 2025-12-18

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

    #### **🏹 狩獵季節開始了 (Let the Hunt Begin)**

    * **🎃 季節自動打寶 (Season Farming Protocol)**:**[New Feature]**
    * **痛點 (Problem)**:為了收集 7 種萬聖節餅乾和 20 種復活節彩蛋,玩家必須手動切換季節並手動戳破數百隻皺紋蟲,非常枯燥。
    * **解決 (Solution)**:自動化偵測缺漏。缺什麼,打什麼。
    * **效益 (Benefit)**:**全收集神器!** 您只需掛機,醒來時季節圖鑑已經 100% 解鎖。

    * **🔫 速殺與保護 (Insta-Pop & Protection)**:**[Logic Update]**
    * **一般模式**:養肥再殺 (最大化 CpS)。
    * **打寶模式**:**見蟲就殺** (最大化掉落判定次數)。
    * **例外處理**:**✨ 閃光皺紋蟲 (Shiny Wrinkler)** 永遠享有「絕對防禦」,絕不誤殺。

    * **🛡️ 虛擬資金鎖 (Virtual Lock)**:**[Safety]**
    * **機制**:當您看到誓約按鈕顯示 **「(打寶防護中)」** 且變為 **橘色** 時,表示腳本正在暫停購買誓約以生成皺紋蟲。
    * **注意**:這是正常現象,請勿驚慌!收集完成後會自動恢復購買。

    * **🚀 核心效能重構 (Core Refactor)**:**[Performance]**
    * **優化**:點擊迴圈 (Clicker Loop) 現在完全移除了 DOM 操作,僅讀取 Cache。這意味著 CPU 負擔更低,掛機更省電。

    ---

    #### **English Changelog:**

    **v8.8.0 - Season Hunter**

    Automating the grind for seasonal drops.

    * **🎃 Season Farming Protocol:** **[New Feature]**
    * **The Problem**: Collecting seasonal drops is a tedious click-fest.
    * **The Solution**: The bot auto-detects missing upgrades and enters "Hunter Mode".
    * **The Benefit**: **100% Collection Rate!** Sit back and let the bot complete your upgrade log.

    * **🔫 Insta-Pop & Shiny Safety:** **[Logic Update]**
    * **Farming Mode**: Wrinklers are popped instantly to force drop rolls.
    * **Shiny Defense**: **Shiny Wrinklers** are whitelisted and will NEVER be popped automatically.

    * **🛡️ Virtual Lock:** **[Safety]**
    * **Note**: If the Pledge button turns **ORANGE** with text **"(Farming Protection)"**, do not panic. The bot is intentionally pausing the Pledge to let Wrinklers spawn. It will auto-resume later.

    * **🚀 Core Optimization:** **[Performance]**
    * **Update**: The Clicker Loop is now 100% DOM-free (Cache only), significantly reducing CPU usage.

    ---

  • v8.7.9-Fix 2025-12-18

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

    #### **⚙️ 引擎重鑄與絲滑體驗 (Reforging the Engine)**

    * **🏎️ 三迴圈架構 (Trinity Loop Engine)**:**[Infrastructure]**
    * **痛點 (Problem)**:舊版將所有運算塞在同一個迴圈,當餅乾數量龐大時,網頁容易卡頓 (Lag)。
    * **解決 (Solution)**:實作分層架構。
    1. **Clicker (10ms)**:只做點擊,嚴禁讀取網頁元素。
    2. **Logic (100ms)**:處理策略判斷。
    3. **Heartbeat (1000ms)**:處理 UI 更新。
    * **效益 (Benefit)**:**FPS 救星!** 徹底隔離高頻操作,長時間掛機依然流暢。

    * **💊 DOM 快取自癒 (Cache Self-Healing)**:**[Stability]**
    * **痛點 (Problem)**:每次轉生 (Ascend) 或切換分頁時,因為遊戲物件 ID 變更,腳本常會噴出大量紅字錯誤 (`Cannot read property of null`)。
    * **解決 (Solution)**:加入自動掃描機制,每秒校正遊戲物件引用;並在轉生動畫期間自動啟用保護盾。
    * **效益 (Benefit)**:**轉生無憂!** 您可以放心地不斷轉生刷 Prestige,腳本會自動跟上您的節奏。

    * **💘 情人節 ID 修正 (Valentine's Fix)**:**[Bug Fix]**
    * **痛點 (Problem)**:腳本誤將情人節判定為愚人節,導致不買季節餅乾。
    * **解決 (Solution)**:修正 `Runtime.SeasonState` ID (`fools` -> `valentines`)。
    * **效益 (Benefit)**:**全收集達成!** 季節自動化功能恢復正常。

    * **🚧 延後項目 (Deferred)**:
    * 為了確保新架構的穩定,原定的 **「季節打寶」** 與 **「誓約例外」** 將延後至 **v8.8.0** 推出。我們正在為更大的功能做準備!

    ---

    #### **English Changelog:**

    **v8.7.9 - Velvet Core**

    A massive under-the-hood rewrite for ultimate stability.

    * **🏎️ Trinity Loop Engine:** **[Infrastructure]**
    * **The Problem**: The old single-loop design caused lag during high-load gameplay.
    * **The Solution**: Separated tasks into 10ms (Clicks), 100ms (Logic), and 1000ms (UI) loops.
    * **The Benefit**: **Buttery Smooth!** Massive FPS improvement during long AFK sessions.

    * **💊 DOM Self-Healing:** **[Stability]**
    * **The Problem**: Ascending often broke the bot, causing error spam.
    * **The Solution**: The bot now auto-detects game reloads and refreshes its internal cache.
    * **The Benefit**: **Crash-Free Ascension!** Reincarnate as much as you want; the bot adapts instantly.

    * **💘 Valentine's Fix:** **[Bug Fix]**
    * **Fixed**: Corrected a typo in the season ID. The bot will now correctly identify and buy Valentine's cookies.

  • v8.7.8 2025-12-17

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

    #### **⚙️ 為了跑得更遠 (Tuning the Engine)**

    * **🧹 底層架構優化 (Refactoring)**:**[Performance]**
    * **問題 (Problem)**:隨著功能不斷堆疊,舊版遺留了一些不再使用的變數與計數器,佔用了微小的記憶體。
    * **解決 (Solution)**:進行了全面的代碼衛生檢查,刪除冗餘邏輯。
    * **效益 (Benefit)**:**更穩定的地基!** 雖然肉眼看不見,但這確保了腳本在長時間掛機下的穩定性,並為新功能騰出空間。

    * **🤫 靜默機制改良 (Improved Silence)**:**[Logic Update]**
    * **問題 (Problem)**:舊版 SE 在冷卻時仍會進行部分條件運算。
    * **解決 (Solution)**:優化判斷邏輯,條件不符直接中斷執行 (Early Return)。
    * **效益 (Benefit)**:**節省運算資源!** 讓您的瀏覽器把算力集中在產餅乾上,而不是處理錯誤。

    * **🌱 預告:v8.8.0 即將到來**:
    * 我們正在打磨 **「土壤自動切換 (Auto Soil)」** 功能。這次的架構調整是為了確保新功能上線時能無縫接軌。敬請期待!

    ---

    #### **English Changelog:**

    **v8.7.8 - Code Cleanup**

    Spring cleaning came early. Preparing the architecture for the next big thing.

    * **🧹 Housekeeping:** **[Performance]**
    * **The Problem**: Legacy code from previous versions was cluttering the script.
    * **The Solution**: Removed unused counters and variables.
    * **The Benefit**: **Better Stability!** A cleaner codebase means fewer potential bugs and smoother long-term operation.

    * **🤫 Refined Silence Logic:** **[Logic Update]**
    * **The Problem**: SE logic was still doing math even when it was supposed to be quiet.
    * **The Solution**: Implemented stricter early returns for failed checks.
    * **The Benefit**: **CPU Efficiency!** No more wasted calculations.

    * **🌱 Coming Soon: v8.8.0**
    * We are preparing the groundwork for **"Automated Garden Soil"**. Stay tuned!

    ---

  • v8.7.7 2025-12-17

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

    #### **🧙‍♂️ 魔法不再打結 (Untangling the Magic)**

    * **⚡ 魔法邏輯分流 (Logic Separation)**:**[Critical Fix]**
    * **痛點 (Problem)**:玩家回報,當「閒置建設 (Spontaneous Edifice)」失敗進入冷卻時,腳本有時會「發呆」,導致「命運之手」無法在 x777 期間及時施放。
    * **解決 (Solution)**:將兩條魔法邏輯徹底分離。
    * **效益 (Benefit)**:**連擊就是生命!** 攻擊型魔法 (FtHoF) 現在擁有最高執行權限,任何輔助魔法都不能阻擋它。

    * **🔇 SE 智能靜默 (SE Silent Mode)**:**[UX Improvement]**
    * **痛點 (Problem)**:當您的建築數量不足以施放 SE 時,Log 會瘋狂刷紅字錯誤,看得很煩。
    * **解決 (Solution)**:失敗一次後,腳本會自動忽略 SE 錯誤 60 秒。
    * **效益 (Benefit)**:**眼不見為淨!** 保持日誌乾淨,只顯示重要的資訊。

    ---

    #### **English Changelog:**

    **v8.7.7 - Magic Separator**

    Fixing the pipeline to ensure your combos are never blocked.

    * **⚡ Magic Logic Separation:** **[Critical Fix]**
    * **The Problem**: A failing "Spontaneous Edifice" (SE) spell was blocking the execution queue, preventing "Force the Hand of Fate" from casting during combos.
    * **The Solution**: Completely decoupled the logic paths.
    * **The Benefit**: **Combos First!** Offensive magic (FtHoF) now has absolute authority. Nothing stands in the way of your x777.

    * **🔇 SE Smart Silence:** **[UX Improvement]**
    * **The Problem**: Constant red error logs when SE failed to cast.
    * **The Solution**: The bot now suppresses SE errors for 60 seconds after a failure.
    * **The Benefit**: **Cleaner UI!** No more spam.

    ---

  • v8.7.6 2025-12-17

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

    #### **🎖️ 指揮官的權限 (The Commander's Authority)**

    * **✏️ 自訂命名系統 (Custom Naming)**:**[UX Improvement]**
    * **痛點 (Problem)**:隨著 5 個存檔槽位的開放,玩家很容易忘記哪個槽位存了哪種陣型,必須切換過去看了才知道。
    * **解決 (Solution)**:新增命名功能。
    * **效益 (Benefit)**:**識別度 MAX!** 您的戰術現在有了名字,管理花園就像點菜一樣簡單。

    * **🎮 面板直接切換 (Direct Grid Control)**:**[UX Improvement]**
    * **痛點 (Problem)**:舊版切換陣型需要打開設定選單 -> 找到選項 -> 選擇 -> 關閉選單,操作繁瑣。
    * **解決 (Solution)**:將切換控制項直接整合到主畫面的「顯示記憶」面板下方。
    * **效益 (Benefit)**:**零延遲操作!** 配合即時預覽功能,您可以一邊看著田地狀況,一邊快速下達戰術指令。

    * **⚙️ 底層架構重構 (Refactoring)**:**[Tech Update]**
    * **穩定性 (Stability)**:採用單向數據流設計,大幅提升了 UI 響應的穩定性,並修復了潛在的狀態不同步問題。

    ---

    #### **English Changelog:**

    **v8.7.6 - Garden Commander**

    Giving you full control and personalization over your farming strategies.

    * **✏️ Custom Slot Naming:** **[UX Improvement]**
    * **The Problem**: Remembering layout slots by number (1-5) is confusing.
    * **The Solution**: Added a Rename button for every slot.
    * **The Benefit**: **Instant Recognition!** Label your slots as "JQB Hunt" or "Whiskerbloom" for effortless management.

    * **🎮 Direct Grid Control:** **[UX Improvement]**
    * **The Problem**: Switching layouts required too many clicks inside the settings menu.
    * **The Solution**: Integrated the layout switcher directly into the main Grid Panel.
    * **The Benefit**: **Intuitive Workflow!** Command your garden layout instantly without blocking your view.

    * **⚙️ Technical Update:**
    * **Refactored Architecture**: Improved UI stability and synchronization logic. Included robust XSS protection for user inputs.

    ---

  • v8.7.5 2025-12-17

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

    #### **🌸 打造你的空中花園 (Master Your Garden)**

    * **💾 5 組陣型切換 (5-Slot Layouts)**:**[New Feature]**
    * **痛點 (Problem)**:舊版只有一組記憶功能。當玩家想從「全田育種」轉為「皇后甜菜收割」時,必須重新手動設定,費時又費力。
    * **解決 (Solution)**:新增下拉選單,提供 5 個獨立存檔槽位 (Slot 1-5)。
    * **效益 (Benefit)**:**戰略靈活性 MAX!** 針對不同階段(生長期/收割期/Mutation期)秒切戰術,效率翻倍。

    * **🔒 智能安全鎖 (Smart Safety Lock)**:**[Logic Update]**
    * **痛點 (Problem)**:當切換到一個新陣型時,腳本可能會誤判田裡「不符合新陣型」的植物是雜草,瞬間將其拔除(悲劇)。
    * **解決 (Solution)**:切換陣型時,強制觸發 **「資金鎖定 (Spending Locked)」**。
    * **效益 (Benefit)**:**資產零風險!** 腳本會暫停運作,直到您確認田地狀況並手動解鎖後才會開始執行。

    * **💡 專家技巧 (Pro Tip)**:
    * **詛咒手指鋪場流 (Cursed Finger Strategy)**:
    * 1. 先切換好目標陣型(此時自動鎖定)。
    * 2. 等待 Buff 出現。
    * 3. 瞬間手動解鎖 -> **腳本秒速鋪場!**

    * **🙌 特別致謝 (Credits)**
    * 感謝測試團隊對 **Level 0 (誓約/Pledge) 優先級** 的嚴格把關與測試。

    ---

    #### **English Changelog:**

    **v8.7.5 - Garden Architect**

    Revolutionizing how you manage your Garden with multi-slots and safety mechanisms.

    * **💾 5-Slot Layouts:** **[New Feature]**
    * **The Problem**: The old version only had one memory slot. Switching from "Full Breeding" to "Harvesting" was a manual nightmare.
    * **The Solution**: Added a dropdown menu with 5 independent memory slots.
    * **The Benefit**: **Max Strategic Flexibility!** Switch tactics instantly for different growth stages.

    * **🔒 Smart Safety Lock:** **[Logic Update]**
    * **The Problem**: Switching layouts could trick the bot into thinking your existing plants were weeds, causing an accidental massacre.
    * **The Solution**: Switching layouts now forces **"Spending Locked"** ON.
    * **The Benefit**: **Zero Risk!** The bot pauses operations until you verify the field and manually unlock it.

    * **💡 Pro Tip (Cursed Finger Strategy):**
    * 1. Switch to your desired layout (Auto-Lock triggers).
    * 2. Wait for the Cursed Finger buff.
    * 3. Manually Unlock immediately -> **Boom! Instant planting!**

    * **🙌 Credits:**
    * Special thanks to our testers for verifying the **Level 0 (Pledge) priority logic**.

    ---

  • v8.7.4 2025-12-16

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

    #### **🕊️ 養蟲還是防禦?由您決定 (To Farm or To Defend? Your Choice)**

    在舊版本中,為了保護新手的 CpS,只要您開啟「停止支出」,我們就會強制購買誓約來趕走皺紋蟲。但這讓想養皺紋蟲的高階玩家感到困擾。v8.7.4 承認了這兩種玩法的合理性,並將選擇權交還給您。

    **🔥 重點更新:**

    * **🛡️ 誓約邏輯獨立化 (Independent Pledge Logic)**:**[Strategic Feature]**
    * **舊邏輯**:停止支出 = 強制買誓約 (為了不讓 CpS 掉)。
    * **新邏輯**:誓約開關 = 您的意願。
    * **開關 ON**:買!不管多窮都要買 (保護 CpS)。
    * **開關 OFF**:不買!不管多有錢都不買 (養皺紋蟲)。
    * **效益**:這對於想要累積資金同時利用皺紋蟲倍率的玩家來說,是完美的解決方案。

    * **🖥️ 介面調整 (UI Cleanup)**:**[UI Enhancement]**
    * **資金頁籤**:新增了一個醒目的紫色區塊專門管理誓約。
    * **移除冗餘**:存錢模式裡的「允許購買誓約」選項已被移除,現在全看全域開關,邏輯更單純。

    * **🐛 錯誤修復 (Fixes)**:
    * 修正了右上角嵌入式按鈕在特定操作下的 Log 顯示不同步問題。

    **簡單來說:腳本不再自作聰明,它現在聽您的指揮。**

    ---

    #### **English Changelog:**

    **v8.7.4 - Freedom of Pledge**

    Decoupling the Pledge logic for ultimate strategy control.

    * **🛡️ Independent Pledge Logic:**
    * **The Change**: "Auto-buy Elder Pledge" is no longer forced by "Stop Spending" mode.
    * **The Benefit**: You can now lock your funds (Stop Spending) AND farm Wrinklers (No Pledge) at the same time.
    * **Priority**: The Pledge toggle is now the absolute rule. If it's ON, we buy. If it's OFF, we don't.
    * **🖥️ UI Update:**
    * Added a dedicated purple "Pledge Protection" section in the Finance tab.
    * Removed confusing/redundant options from Saving Mode settings.

    **Absolute control over your Grandmapocalypse strategy.**

    ---

  • v8.7.3 2025-12-16

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

    #### **🏃‍♂️ 策略,就在彈指之間 (Strategy at Your Fingertips)**

    在 v8.7.2 我們將資金控制整合到專屬頁籤,但有些時候,開啟面板切換頁籤還是太慢了。特別是當您需要快速反應(比如黃金餅乾出現,想快速鎖定資金)。v8.7.3 讓最重要的資金控制,直接躍上遊戲主介面。

    **🔥 重點更新:**

    * **🚀 嵌入式控制列 (Embedded Controls)**:**[UX Enhancement]**
    * **位置**:遊戲畫面右上角,建築列表的上方。非常醒目,但不干擾點擊。
    * **功能**:
    * **🔒 「鎖頭」按鈕**:快速啟動/關閉「立即停止支出」。
    * **💰 「錢袋」按鈕**:快速啟動/關閉「存錢模式」。
    * **效益**:這對於追求極致反應速度的玩家來說,是一項巨大的便利。

    * **⚙️ 按鈕自我修復 (Self-Healing)**:**[Stability]**
    * **問題**:由於遊戲會頻繁重繪 DOM,像這種「嵌入式」的自訂按鈕很容易消失。
    * **解決**:我們為它們加入了生命週期監控。即使遊戲刷新,按鈕也能自動重生。

    **簡單來說:無需開面板,直接在遊戲裡控制資金。**

    ---

    #### **English Changelog:**

    **v8.7.3 - Quick Controls**

    Faster access to your financial strategies.

    * **🚀 Embedded Controls:**
    * **New**: Two small buttons are now visible in the top-right corner of the main game screen.
    * **Functions**: A **🔒 Lock** button for "Stop Spending" and a **💰 Money Bag** button for "Saving Mode".
    * **Benefit**: Instant access to your core financial controls without opening the full panel.
    * **⚙️ Self-Healing Buttons:**
    * **Stability**: These embedded buttons will automatically reappear even if the game's UI redraws.

    **Control your cookies, faster than ever.**

    ---

  • v8.7.2 2025-12-15

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

    #### **💳 讓專業的來管錢 (Professional Money Management)**

    隨著 v8.7.1 存錢模式的加入,我們發現「核心」頁籤已經塞滿了各種與錢有關的開關。是時候整理一下了。v8.7.2 帶來了更清晰的分類,以及更聰明的資金邏輯。

    **🔥 重點更新:**

    * **💳 資金頁籤 (The Finance Tab)**:**[UI Refactor]**
    * **改變**:我們把所有跟「花錢」有關的按鈕都搬家了。
    * **效益**:想調整存錢策略?去 Finance。想看點擊設定?回 Core。邏輯分明,操作直覺。

    * **🛡️ 誓約購買獨立化 (Decoupled Pledge)**:**[Logic Update]**
    * **痛點**:以前誓約的購買檢查是跟著「自動購買」一起排隊的。如果您把購買間隔設得很長(例如 10 分鐘),誓約過期後可能會有 10 分鐘的空窗期,導致 CpS 減半。
    * **解決**:將誓約檢查獨立出來。
    * **結果**:無論其他東西買多慢,誓約永遠是**秒買**。

    * **📈 股市邏輯修正 (Stock Logic)**:**[Bug Fix]**
    * **問題**:開啟「存錢模式」是為了存餅乾,但股市機器人卻還在拿餅乾去買股票,這很不合理。
    * **解決**:存錢模式下,股市進入 **「只賣不買 (Liquidation Mode)」**。

    * **💾 體驗優化**:
    * 存錢模式的選單摺疊狀態現在會被記憶,F5 刷新後不會再自動彈開嚇你一跳。

    **簡單來說:錢歸錢管,誓約秒買,股市懂事。**

    ---

    #### **English Changelog:**

    **v8.7.2 - Finance Overhaul**

    Better organization and smarter financial logic.

    * **💳 Finance Tab:**
    * Moved all spending-related settings (Stop Spending, Strategies, Saving Mode) to a new, dedicated tab.
    * **🛡️ Instant Pledge:**
    * Elder Pledge logic is now independent. It buys instantly upon expiration, ignoring your "Auto-buy Interval" settings. No more CpS drops!
    * **📈 Smart Stock Logic:**
    * In **Saving Mode**, the Stock bot now stops buying. It effectively helps you hoard cookies instead of spending them on stocks.
    * **💾 Memory:**
    * Menu collapse states are now saved across reloads.

    **Money management made simple and effective.**

    ---

  • v8.7.1 Fix 2025-12-15

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

    #### **💰 聰明地存錢,而不是盲目地停止 (Save Smart, Not Hard)**

    在 v8.7.1 之前,如果您想存一筆大錢(比如為了最後的巧克力蛋加成),您必須開啟「立即停止支出」。但這有一個副作用:花園也會跟著停擺,導致植物枯死或變異進度中斷。v8.7.1 解決了這個兩難。

    **🔥 重點更新:**

    * **💰 存錢模式 (Saving Mode)**:**[Strategic Feature]**
    * **定義**:這是一個「軟性停止」。它會暫停昂貴的建築升級,但保留維持遊戲運作的必要支出。
    * **場景**:當您需要累積庫存(Bank)來最大化 `Lucky!` 收益,或者準備轉生前存錢時,這個模式非常有用。
    * **設定**:位於核心頁籤的摺疊選單中,您可以微調:
    * `允許購買誓約`:存錢時不想被打擾?勾選它。想養皺紋蟲?取消它。
    * `允許補種花園`:不想中斷變異?勾選它。

    * **🐛 誓約邏輯修正 (Pledge Fix)**:**[Bug Fix]**
    * **問題**:舊版在特定組合下,誓約會無視您的意願被強制購買。
    * **解決**:重寫了判斷鏈。現在腳本會嚴格遵守您的設定優先級。

    * **🖥️ 介面優化 (UI Clean-up)**:
    * 為了不讓核心頁籤變得太長,我們將存錢模式的詳細選項收納在一個摺疊選單中。介面更清爽。

    **簡單來說:一邊存大錢,一邊繼續種田。**

    ---

    #### **English Changelog:**

    **v8.7.1 - Saving Mode**

    A strategic update allowing you to hoard cookies without neglecting your garden.

    * **💰 Saving Mode:**
    * **Function**: Stops purchasing Buildings and Upgrades to build up your bank.
    * **Advantage**: Unlike "Stop Spending", this mode **keeps the Garden running**. You can continue to harvest and mutate plants while saving up.
    * **Customization**: Choose whether to Auto-Buy "Elder Pledge" or "Garden Seeds" while in this mode.
    * **🐛 Pledge Logic Fix:**
    * Fixed an issue where Elder Pledge was bought even when you didn't want it.
    * **🖥️ UI Update:**
    * Added a collapsible menu for Saving Mode settings to keep the interface clean.

    **Hoard cookies, keep farming.**

  • v8.7.0 2025-12-15

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

    #### **🌱 等待,是為了更完美的綻放 (Wait for the Perfect Bloom)**

    在 v8.7.0 之前,腳本是有錢就買,導致同一批植物有的剛種下,有的已經成熟,這對於需要 8 顆植物同時成熟才能觸發的變異(如 JQB)非常不利。現在,我們教會了腳本「耐心」。

    **🔥 重點更新:**

    * **🌱 同步播種 (Sync Planting)**:**[Strategic Feature]**
    * **邏輯**:存錢 -> 等待 Buff 結束 -> **全體同時播種**。
    * **效益 1 (生長一致)**:所有植物同時發芽、同時成熟。這意味著您有最長的重疊時間來觸發突變。
    * **效益 2 (省錢)**:種子價格取決於 CpS。腳本會故意避開 `Frenzy` 或 `Building Special` 等高 CpS 時段,等倍率正常了再買,這能省下數百倍的成本。

    * **🖥️ 介面與體驗 (UI/UX)**:**[Visibility]**
    * **雙向同步**:您可以在核心設定或花園面板任一處開關此功能,狀態即時同步。
    * **狀態條**:腳本不動不是壞了,它會告訴您原因。例如:「💰 資金不足 (54%)」或「⛔ 避開高價」。

    * **🛡️ 系統穩定性**:
    * **防呆**:強化了數據加載邏輯,防止在遊戲剛開啟、數據未就緒時進行計算導致的報錯。
    * **Tooltip**:進一步加強價格顯示的穩定性。

    **簡單來說:它會幫你存錢,幫你省錢,然後幫你種出完美的一田作物。**

    ---

    #### **English Changelog:**

    **v8.7.0 - Sync Planting**

    A strategic update for serious gardeners.

    * **🌱 Sync Planting:**
    * **The Logic**: Accumulate Funds -> Wait for Bad Buffs to end -> **Plant All at Once**.
    * **Benefit**: Ensures all plants have synchronized lifecycles (vital for Juicy Queenbeets) and avoids buying expensive seeds during CpS frenzies.
    * **🖥️ UI/UX Improvements:**
    * **Global Status**: See exactly why the bot is waiting (e.g., "Waiting for funds" or "Avoiding high prices").
    * **Dual Switches**: Toggle the feature from either the Core or Garden tabs.
    * **🛡️ Stability:**
    * Improved handling of game data latency on startup.

    **Perfect timing, synchronized growth.**

  • v8.6.4 2025-12-15

    ### 📋 v8.6.4 Fix 版本更新說明

    #### **🎨 看得見的保護,分得清的變異 (Visible Protection & Clear Mutations)**

    v8.6.4 Fix 致力於讓腳本的「大腦」可視化。我們希望當您看到花園裡有顏色時,能立刻明白發生了什麼事,而不用猜測腳本會不會誤刪您的寶貝植物。

    **🔥 重點更新:**

    * **🛡️ 暖機保護可視化 (Warmup Visualization)**:**[UX Improvement]**
    * **痛點**:習慣最小化面板的玩家,在刷新網頁後不知道「暖機保護」是否正在運行,有時會不敢亂動。
    * **解決**:現在啟動時,面板會強制彈出 10 秒給你看,時間到自動收回去。
    * **效益**:這是一個簡單的動畫,但給了玩家大大的安全感。

    * **🎨 紅紫分離 (Red/Purple Split)**:**[Logic Clarity]**
    * **舊版**:只要不是記憶中的植物,通通顯示紅色(或紫色),容易混淆。
    * **新版**:
    * **🔴 紅色** = **雜草/位置錯誤的普通植物** -> **結局:被鏟除**。
    * **🟣 紫色** = **未解鎖的新變異** -> **結局:被保留**。
    * **Tooltip**:滑鼠移上去,提示文字也會同步顯示對應的顏色標記。

    * **⚙️ 系統優化**:
    * 將花園操作的緩衝時間參數化,讓腳本在處理大量植物時更流暢。

    **簡單來說:紅色是垃圾,紫色是寶藏。**

    ---

    #### **English Changelog:**

    **v8.6.4 Fix - Visuals & Feedback**

    Better visual cues for Garden status and Warmup.

    * **🛡️ Warmup Visibility:**
    * The panel now **Auto-Expands** during startup warmup and **Auto-Minimizes** when done. You'll always know when the shield is active.
    * **🎨 Red/Purple Split:**
    * **🔴 Red**: Weeds or wrong plants (Will be removed).
    * **🟣 Purple**: New Mutations (Will be saved).
    * Now you can distinguish between "Trash" and "Treasure" instantly.
    * **⚙️ System:**
    * Parameterized garden buffer timings for better maintenance.

    **Clearer colors, safer farming.**

    ---

    **報告發布經理:**
    v8.6.4 Fix 文案已生成。
    「紅紫分離」是一個非常直觀的教育機制,能有效降低玩家對於「腳本會不會亂拔草」的焦慮。
    請確認 @version 標籤為 `8.6.4` (或 `8.6.4.1` 若需區隔) 後執行發布。 🍪🎨

  • v8.6.3 Fix & Feature 2025-12-15

    #### **🧬 便捷與強韌 (Convenience & Robustness)**

    v8.6.3 的目標是減少無效操作並消除潛在崩潰。我們發現玩家在查看花園圖鑑時,常常需要決定是否開始「配種 (Mutation)」,以前這需要切換到設定頁籤,現在只需要點一下。

    **🔥 重點更新:**

    * **🧬 突變管理捷徑 (Mutation Shortcut)**:**[UX Improvement]**
    * **問題**:在花園面板看完缺少的植物後,要開啟自動突變還得切換回「進階」或「花園」設定頁,很麻煩。
    * **解決**:直接在花園預覽面板下方增加一個開關按鈕。
    * **效益**:操作路徑縮短,體驗更流暢。

    * **🐛 Tooltip 邊界修復 (Tooltip Fix)**:**[Bug Fix]**
    * **問題**:v8.6.2 的價格提示功能在某些「未定義」的空地上會因為讀不到數據而報錯。
    * **解決**:加入防禦性代碼,當數據不存在時優雅地隱藏 Tooltip,而不是報錯。

    * **⚡ 系統優化 (Optimization)**:
    * 優化了數據讀取邏輯,即使遊戲數據載入延遲,腳本也不會崩潰。

    **簡單來說:少點幾次滑鼠,多一點穩定性。**

    ---

    #### **English Changelog:**

    **v8.6.3 - Mutation & Stability**

    Making garden management faster and the script more stable.

    * **🧬 Mutation Shortcut:**
    * **New Button**: Toggle "Auto Mutation" directly from the Garden Panel. No more tab switching needed.
    * **🐛 Tooltip Fix:**
    * **Stability**: Fixed potential errors when hovering over empty garden plots.
    * **⚡ Optimization:**
    * **Defensive Coding**: Improved data handling to prevent crashes under rare conditions.

    **Easier control, rock-solid performance.**

  • v8.6.2 2025-12-14

    #### **📏 差之毫釐,失之千里 (The Off-by-One Correction)**

    在程式設計中,從 0 開始還是從 1 開始計數是一個經典難題。v8.6.1 在花園 ID 處理上犯了一個小錯誤,導致所有植物的編號都向後偏了一位。雖然這不影響手動操作,但對於「記憶陣型」的精確度是致命的。v8.6.2 嚴肅地修正了這個問題。

    **🔥 重點更新:**

    * **🐛 花園 ID 校正 (Garden ID Fix)**:**[Critical Bug Fix]**
    * **問題**:小麥 ID 變成了 1,導致空地 (ID -1) 被錯誤顯示為 0。這讓玩家很難直觀判斷陣型 ID。
    * **解決**:全面統一為 **0-based** 索引。
    * **結果**:
    * 小麥 = `[0]` (正確)
    * 玉米 = `[1]` (正確)
    * 空地 = 無顯示 (正確)

    * **⚡ 數據層優化 (Data Refactor)**:**[Internal]**
    * 我們重寫了花園模組的數據解析層,確保腳本「看到的」跟遊戲「實際的」數據 100% 同步。

    **⚠️ 已知小問題 (Known Issue)**:
    * **Tooltip 邊界**:在極少數情況下(滑鼠停留在尚未設定記憶的藍色空地上),價格提示可能會短暫顯示異常。這不影響功能,將於 v8.6.3 修復。

    **簡單來說:數字對了,種田才準。**

    ---

    #### **English Changelog:**

    **v8.6.2 - ID-Hotfix**

    Correcting the math behind the garden.

    * **🐛 Garden ID Correction:**
    * **The Issue**: An "Off-by-One" error caused plant IDs to be shifted (e.g., Wheat was 1).
    * **The Fix**: Normalized all logic to use **0-based indexing**.
    * **Result**: Wheat is `[0]`, Empty plots are clearly identified. This is crucial for the accuracy of saved layouts.
    * **⚡ Internal Refactor:**
    * Cleaned up how the script reads garden data to prevent future mismatches.

    **Accurate numbers, accurate farming.**

  • v8.6.1 FIX 2025-12-13

    ### 📋 v8.6.1 Fix 版本更新說明

    #### **⏳ 還您 10 秒鐘 (Giving You Time)**

    我們收到反饋,有些玩家在刷新網頁後,想開啟「花園保護」存錢買種子,但腳本的手速太快了——在按鈕顯示出來之前,錢就被花掉了。這不符合我們「玩家至上」的原則。v8.6.1 Fix 修正了這個過於激進的行為。

    **🔥 重點更新:**

    * **⏳ 購買冷靜期 (Startup Buy Delay)**:**[Hotfix]**
    * **問題**:`Core.init` 初始化後,自動購買計時器歸零,導致第一輪購買立即發生。
    * **解決**:現在初始計時器會預設為 10 秒(或您設定的間隔)。
    * **效益**:腳本啟動後會「深呼吸」一下。您可以從容地喝口水,檢查一下設定,或者開啟資金鎖,而不用擔心餅乾瞬間蒸發。

    * **✅ 繼承 v8.6.1 內容**:
    * 本更新包含 **殭屍分頁黑屏 (Zombie Mode)**、**巨龍日誌優化** 與 **花園介面滑軌** 等所有功能。

    **簡單來說:腳本不再搶跑,您的錢包更安全。**

    ---

    #### **English Changelog:**

    **v8.6.1 Fix - Startup Delay**

    A hotfix to prevent the bot from spending money too quickly after a refresh.

    * **⏳ Startup Buy Delay:**
    * **The Issue**: The bot was buying upgrades instantly upon loading, before you could click "Stop Spending".
    * **The Fix**: Added a mandatory **10-second delay** (or your custom interval) for the first purchase cycle after startup.
    * **Benefit**: You now have time to react and secure your funds after a reload.

    **Safe startups, no accidental spending.**

  • v8.6.1 2025-12-13

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

    #### **🧟 處理殭屍與噪音 (Silencing Zombies & Noise)**

    v8.6.1 是一個讓腳本變得更「優雅」的更新。我們注意到在現代瀏覽器的高安全限制下,腳本無法總是成功關閉舊分頁,這會導致玩家困惑。同時,v8.6.0 的巨龍功能雖然強大,但有點太吵了。我們修復了這些問題。

    **🔥 重點更新:**

    * **🧟 重啟優化 (Zombie Mode)**:**[UX Improvement]**
    * **問題**:自動重啟後,瀏覽器有時會阻止 `window.close()`,導致您同時開著新舊兩個遊戲分頁,甚至不小心玩錯存檔。
    * **解決**:既然關不掉,我們就「殺死」它。舊分頁現在會被一個全黑的覆蓋層遮擋,並停止主要運作。
    * **效益**:視覺上立刻區分出哪個是廢棄分頁,關掉黑色的那個就對了。

    * **📜 日誌降噪 (Log Optimization)**:**[QoL]**
    * **改進**:巨龍光環模組不再每秒報告「我正在待機」。它現在只會在真正切換光環時說話。
    * **新增**:日誌現在會自豪地顯示倍率(如 `[Dragon] 切換至爆發模式 (x777 Combo!)`)。

    * **🗂️ 介面微調 (UI Tweaks)**:
    * **花園**:為植物列表加入了 CSS 滑軌 (`overflow-y`),防止列表過長。
    * **穩定性**:修復了幾個微小的 UI 渲染錯誤。

    **簡單來說:舊分頁自動變黑,日誌變安靜,面板變整齊。**

    ---

    #### **English Changelog:**

    **v8.6.1 - Zombie & UI**

    Making the bot polite and tidy.

    * **🧟 Zombie Tab Handling:**
    * **The Issue**: Browsers often block scripts from closing tabs during auto-restarts, leaving you with duplicate games open.
    * **The Fix**: The old tab will now turn **Black** with a "Please Close Me" message. It visually kills the zombie tab so you focus on the new one.
    * **📜 Quiet Dragon:**
    * Drastically reduced log spam. It only logs when switching auras now, and shows the specific multiplier (e.g., `x777`).
    * **🗂️ UI Polish:**
    * Added a scrollbar to the Garden Preview panel. It no longer takes up the entire vertical screen space for full-collection players.

    **Less confusion, less noise, better UI.**

    ---

  • v8.6.0 2025-12-13

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

    #### **🛡️ 銅牆鐵壁與巨龍之心 (Ironclad Defense & Heart of the Dragon)**

    v8.6.0 解決了兩個極端的問題:最脆弱的時刻(啟動瞬間)與最強大的時刻(光環爆發)。我們希望腳本不僅能幫您點擊,還能像一位資深玩家一樣思考。

    **🔥 重點更新:**

    * **🛡️ 花園暖機保護 (Garden Warmup)**:**[Safety Critical]**
    * **痛點**:舊版本在網速慢時,可能因為「保護名單」還沒載入,就把您辛苦種的植物當雜草拔了。
    * **解決**:新增 10 秒強制冷靜期。
    * **視覺**:啟動時您會看到花園面板上有一個**黃色倒數護盾**。看到它,就代表安心。

    * **🐉 智慧巨龍光環 (Smart Dragon Aura)**:**[Min-Max Strategy]**
    * **功能**:腳本現在會監控您的 Buff 狀態。
    * **邏輯**:
    * 平時:保持 CpS 加成(輻射食慾 + 牛奶吐息/長者營)。
    * 爆發:偵測到點擊連擊時,瞬間切換為「龍的飛行 (Dragonflight)」。
    * **注意**:此功能需要您在遊戲內解鎖「雙光環」才能發揮最大效用。

    * **⚡ 錯誤熔斷機制 (Circuit Breaker)**:**[Stability]**
    * **改進**:以前如果股市模組報錯,腳本會整個卡死。現在我們加上了保險絲。
    * **效益**:單一功能故障不會拖累全域。腳本會優雅地降級運行,並在日誌中提示錯誤。

    * **🔧 效能與修復**:
    * **Buff 面板**:大幅優化了渲染邏輯,減少 CPU 佔用。
    * **修復**:修正了 UI 更新時可能出現的語法錯誤 (Syntax Error),以及核心執行環境 (Context) 的綁定問題。

    **簡單來說:它更安全,而且在您睡覺時懂得自己切換裝備。**

    ---

    #### **English Changelog:**

    **v8.6.0 - Safety & Logic**

    Making the bot smarter and safer than ever.

    * **🛡️ Garden Warmup:**
    * **10-Second Immunity**: Prevents the bot from harvesting anything immediately after startup. This ensures your saved layout is fully loaded before any weeding happens. No more accidental garden wipes!
    * **🐉 Smart Dragon Aura:**
    * **Auto-Switching**: Automatically swaps Dragon Auras based on current buffs (Idle vs. Burst) to maximize cookie production.
    * **⚡ Circuit Breaker:**
    * **Error Isolation**: If a specific module crashes, it gets disabled individually instead of freezing the entire script.
    * **🔧 Fixes:**
    * Fixed UI syntax errors and optimized Buff panel rendering performance.

    **Safe startups, smart strategies, and bulletproof stability.**

    ---

  • v8.5.6.1 fix 2025-12-12

    修復記憶陣型預覽的種子價格不顯示問題

  • v8.5.6 2025-12-12

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

    #### **🌻 花園體驗的終極形態 (The Ultimate Garden Form)**

    經過 v8.5.4 的收納與 v8.5.5 的嵌入嘗試,v8.5.6 終於達到了我們心目中理想的樣子。現在的花園助手不僅是「工具」,更像是您的「副駕駛」。它會告訴你錢夠不夠、哪裡缺種子,而且再也不會因為手滑而消失不見。

    **🔥 重點更新:**

    * **📊 活體儀表板 (Live Dashboard)**:**[Visual Update]**
    * **進化**:網格預覽不再是死板的圖片。
    * **功能**:即時掃描農田。看到 **🔵 藍色** 格子嗎?那是在提醒您:「嘿,這裡該補種子了,而且這個種子叫作...」

    * **💲 智慧價格提示 (Rich Tooltip)**:**[UX Detail]**
    * **痛點**:以前總是要點開種子列表才知道價格,或者不知道為什麼腳本不買(原來是錢不夠)。
    * **解決**:滑鼠移上去,Tooltip 直接告訴你價格。如果是 **❌ 紅色** 的,請趕快去存餅乾。

    * **🔄 面板救援行動 (UI Rescue)**:**[Quality of Life]**
    * **問題**:這是一個經典問題——把面板拖曳到視窗邊緣,然後瀏覽器縮放一下,面板就永遠消失了。
    * **解決**:我们在主設定頁面加了一個「召喚按鈕」。無論面板躲在哪裡,按下去它就會乖乖回到畫面中央。

    * **🛠️ 錯誤修復 (Bug Fixes)**:
    * **崩潰修復**:解決了頻繁點擊「展開/收起」可能導致腳本報錯的問題。
    * **小麥計數**:修正了圖鑑統計少算 1 種(通常是小麥)的數學錯誤。現在 34/34 終於能正確顯示了。

    **簡單來說:更聰明、更直觀,而且隨叫隨到!**

    ---

    #### **English Changelog:**

    **v8.5.6 - The Ultimate Garden Form**

    Polishing the garden experience to perfection.

    * **📊 Live Dashboard:**
    * Real-time grid updates with status colors. Blue means "Plant Here", Purple means "New Mutation".
    * **💲 Smart Tooltip:**
    * Hover over grid cells to see dynamic prices. Red price = Not enough cookies.
    * **🔄 UI Rescue Button:**
    * Lost a panel off-screen? Click "Reset Panel Position" in the main settings to bring it back.
    * **🛠️ Fixes:**
    * Fixed a crash when toggling drawers rapidly.
    * Fixed the plant count showing 33/34 when you actually had all 34.

    **The best gardening tool just got better.**

    ---

  • v8.5.5-reborn 2025-12-12

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

    #### **🌻 讓工具成為遊戲的一部分 (Integration, not Intrusion)**

    在 v8.5.4,我們嘗試了「小盾牌」收納設計,雖然解決了遮擋問題,但仍然像個外掛。v8.5.5 我們更進一步,利用花園介面右側的閒置空間,打造了全新的「嵌入式控制台」。這不僅僅是 UI 的變更,更是對「沉浸式體驗」的承諾。

    **🔥 重點更新:**

    * **🎮 嵌入式控制台 (The Embedded Console)**:**[UI Revolution]**
    * **舊版痛點**:懸浮視窗擋住視線,盾牌圖示有時會飄移。
    * **新版設計**:利用花園右側空白處,置入 5 個功能按鈕。
    * **操作**:點擊 `_` 最小化後,您會發現按鈕完美融合在背景中,彷彿遊戲自帶的功能。

    * **📊 活體儀表板 (Live Dashboard)**:**[Visual Intelligence]**
    * **功能**:網格顏色現在反映即時狀態。
    * **直觀**:看到 **🔵 藍色** 格子?那是提醒您該補種子了。看到 **🟣 紫色**?恭喜,可能長出了新的變異植物!

    * **💲 智慧價格提示 (Smart Tooltip)**:**[UX Detail]**
    * **新增**:滑鼠移到預覽網格上,會顯示該種子的當前價格。
    * **反饋**:價格顯示 **✅ 綠色** 代表買得起,**❌ 紅色** 代表資金不足。

    * **🔧 穩定性提升 (Stability)**:
    * **修復**:解決了遊戲刷新 DOM 時(例如切換季節或升級農場),輔助按鈕會消失且無法恢復的 Bug。現在它們擁有「不死之身」。

    **簡單來說:它不再像個外掛,它就是花園的一部分。**

    ---

    #### **English Changelog:**

    **v8.5.5 - Garden Experience Revolution**

    Making the tool feel native to the game.

    * **🎮 Embedded Console:**
    * Moved controls to the **right side** of the garden plot. No more floating windows blocking your crops.
    * **📊 Live Dashboard:**
    * Grid colors now sync in real-time. **Blue** means replant needed, **Purple** means mutation detected.
    * **💲 Smart Tooltip:**
    * Hover over the grid to see seed prices. **Green** = Affordable, **Red** = Too expensive.
    * **🔧 Lifecycle Guardian:**
    * Fixed the issue where buttons would disappear after game updates. They now auto-regenerate.

    **Seamless, Native, and Intelligent.**

    ---

  • v8.5.4-hotfix 2025-12-11

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

    #### **📐 空間管理的藝術 (The Art of Space)**

    v8.5.3 帶來了全新的 UI,而 v8.5.4 則是為了讓這個 UI 與遊戲本體更加和諧共存。我們不希望腳本喧賓奪主,遮擋了您辛苦種植的植物。

    **🔥 重點更新:**

    * **🛡️ 花園工具收納 (Garden Docking)**:**[UX Improvement]**
    * **問題**:花園保護面板雖然重要,但一直懸浮在畫面上容易擋住視線,特別是在手動收割時。
    * **解決**:新增「最小化」功能。
    * **效果**:縮小後變成一個「🛡️」圖示。這不僅節省空間,還是一個視覺提示——只要看到盾牌,就代表您的花園是安全的。

    * **🕹️ 操作按鈕分離 (Split Controls)**:**[UX Tweak]**
    * **優化**:將原本混在一起的功能拆分為「💾 記憶 (Save)」與「🗺️ 顯示 (Show)」兩顆獨立按鈕。操作邏輯更清晰,減少誤觸。

    * **⚓ 視覺定錨 (Grid Anchoring)**:**[Visual Fix]**
    * **問題**:當您滑出左側的「解鎖圖鑑」時,中間的網格會被擠到右邊,視覺上會有跳動感。
    * **解決**:透過 CSS 強制定位。現在展開抽屜時,網格會在視覺上保持原地不動。

    * **📱 縮放適配 (Zoom Fix)**:**[Bug Fix]**
    * **修復**:針對高解析度或視力輔助需求(150% 縮放)的玩家,修復了頁籤換行的問題。

    **簡單來說:視野更開闊,操作更順手。**

    ---

    #### **English Changelog:**

    **v8.5.4 - Garden Docking & Polish**

    Refining the interface to be less intrusive and more responsive.

    * **🛡️ Garden Docking:**
    * Added a minimize button (`_`) to the protection panel. It shrinks to a small **Shield Icon**, clearing your view of the garden.
    * **🕹️ Better Controls:**
    * Split the Garden Memory buttons into clear "Save" and "Show" actions.
    * **⚓ Visual Anchoring:**
    * Opening the side drawer no longer pushes the garden grid around. It stays centered.
    * **📱 Responsive Fix:**
    * Fixed tab layout breaking on high zoom levels (150%+).

    **Clean, Stable, and Polished.**

  • 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.

显示所有脚本版本