Toggle all code blocks open/closed in Google AI Studio with lazy loading support.
Introduces the ability to manage code block visibility in Google AI Studio. Adds a toolbar button to instantly collapse or expand all code snippets for a cleaner workspace.
localStorage to remember your toggle state across page reloads and chat switches.ms-code-block elements being added to the DOM and automatically applies your chosen mode (Collapse/Expand) as they appear.MutationObserver to ensure the button persists in the toolbar during SPA navigation between chats.expand_less, expand_more) natively available in the app resources.