Collapse/expand all code blocks with dual toolbar buttons, auto-collapse mode, and lazy loading support.
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
localStorage
GM_getValue
GM_setValue
{isActive, collapseMode}
{ autoMode: 'off' | 'collapse' }
Script name changed from "Google AI Studio | Toggle Code Blocks" to "Google AI Studio | Collapse/Expand All Code Blocks Toggle"
Optimized the toolbar MutationObserver to avoid per-node subtree scanning by using a single toolbar lookup per mutation batch, reducing DOM overhead during SPA updates.