Google AI Studio | Toggle Code Blocks

Toggle all code blocks open/closed in Google AI Studio with lazy loading support.

These are versions of this script where the code was updated. Show all versions.

  • v1.4 22.12.2025.

    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.

  • v1.3 21.12.2025.
  • v1.0 21.12.2025.