LMArena | Collapsible Code Blocks

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

queste sono le versioni di questo script in cui il codice è stato aggiornato Visualizza tutte le versioni.

  • v4.2 31/12/2025

    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 30/12/2025

    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 30/12/2025

    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 29/12/2025

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

  • v3.6 29/12/2025