Toggle all code blocks open/closed in Google AI Studio with lazy loading support.
这些是此脚本变更过代码的版本。 显示所有版本。
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.