ChatGPT AutoCleaner v5

Bugfix & speed-up for ChatGPT: cleans the conversation chat window by trimming old messages from the Browser DOM. Keeps only the latest N turns visible, preventing lag and excessive DOM size on long sessions. Includes manual “Clean now” button and auto-clean toggle.

這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。

  • v1.5 2025-08-18
    • Reverted back React memory fixes.
  • v1.4 2025-08-16
    • Added safe replacement for arrays (safeReplaceArray) to avoid errors on frozen/immutable arrays.
    • Silently skipped frozen arrays instead of throwing.
    • Suppressed console spam on normal clean cycle (silent mode by default).
    • Cleaner logic tightened: DOM trim + React arrays handled more defensively.
    • Minor UI/style polish.
    • Added structured console logging (startup message, manual clean trigger, array/dom trim counts).
    • Frozen arrays are explicitly reported as "skipped", not treated as errors.
    • Optional debug hooks (commented-out logging lines) inserted for inspecting before/after counts.
  • v1.1 2025-08-16
  • v1.0 2025-07-26