LMArena | Collapsible Code Blocks

Adds collapsible code blocks with clickable headers, footer controls, and a global toolbar toggle

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

  • v4.2 2025-12-31

    v4.1
    - Cleanup: removed overridden CSS declaration (border-radius: 0 0 0 0)
    - Cleanup: removed unused 'warn' log style
    - Cleanup: removed redundant typeof guard for activeFixedState
    - Cleanup: consolidated duplicate mouseleave handlers on collapse button

    v4.2
    - Changed: replaced localStorage with GM_setValue/GM_getValue for settings persistence
    - Settings now stored via userscript manager (more reliable, syncs across browsers if supported)

  • v4.0 2025-12-30

    v4.0
    - Fixed: fixed footer now repositions when textarea grows during user input
    - Added ResizeObserver on input area to detect height changes
    - Footer no longer conflicts with/covers the textarea when it expands

  • v3.9 2025-12-30

    v3.8
    - Fixed: conflict with other userscripts (Multi-Provider Chat Export, etc.)
    - Added 1000ms initialization delay to avoid React Hydration Error #418

    v3.9
    - Replaced hardcoded delay with dynamic Stabilization Observer
    - Detects React hydration completion by watching for the chat input bar
    - Uses requestIdleCallback for optimal performance/compatibility

  • v3.7 2025-12-29

    Script name changed from "LMArena | Code Block Collapse" to "LMArena | Collapsible Code Blocks"

  • v3.6 2025-12-29