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.