Greasy Fork

来自缓存

Greasy Fork is available in English.

Cookie Clicker Ultimate Automation

Automated clicker, auto-buy, auto-harvest, garden manager (5 slots), stock market, season manager, Santa evolver, Smart Sugar Lump harvester, Dragon Aura management, and the new Gambler feature.

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

  • 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

显示所有脚本版本