AI Code Block Fixer by SomeExtraSmallTools
Collects extracted code, Automatically merges broken code blocks in Google AI responses, restores syntax highlighting, fixes the copy button, and adds customizable auto-collapse provides syntax highlighting, and manages the auto-collapsing of blocks
Extension Metadata
Screenshots
About this extension
AI Code Block Fixer improves the readability and usability of code snippets generated in Google AI responses.
Sometimes, long or complex code blocks in AI search results break apart—the bottom half of the code spills out into plain text paragraphs below the main container, losing its formatting, syntax colors, and breaking the "Copy" button. This extension fixes that automatically.
Key Features:
• Auto-Merge Broken Code: Detects code lines that spilled out of the main block and seamlessly merges them back into a single unified container.
• Smart Syntax Highlighting: Dynamically restores syntax colors (comments, strings, keywords, numbers) for merged code fragments to match the page theme.
• Fixed Copy Button: Updates the native "Copy" button so it copies the entire reconstructed code block in one click.
• Collapsible Long Blocks: Automatically collapses tall code snippets to keep search pages clean and easy to scroll, with a convenient Expand/Collapse toggle bar.
• Customizable Settings: Click the extension icon to toggle auto-collapse on/off, set your preferred maximum block height (100px–1200px), and enable or disable the bottom fade-out gradient.
Privacy & Performance:
• Works 100% locally in your browser.
• Lightweight and fast, running only on Google domains.
• Collects zero user data or analytics.
Sometimes, long or complex code blocks in AI search results break apart—the bottom half of the code spills out into plain text paragraphs below the main container, losing its formatting, syntax colors, and breaking the "Copy" button. This extension fixes that automatically.
Key Features:
• Auto-Merge Broken Code: Detects code lines that spilled out of the main block and seamlessly merges them back into a single unified container.
• Smart Syntax Highlighting: Dynamically restores syntax colors (comments, strings, keywords, numbers) for merged code fragments to match the page theme.
• Fixed Copy Button: Updates the native "Copy" button so it copies the entire reconstructed code block in one click.
• Collapsible Long Blocks: Automatically collapses tall code snippets to keep search pages clean and easy to scroll, with a convenient Expand/Collapse toggle bar.
• Customizable Settings: Click the extension icon to toggle auto-collapse on/off, set your preferred maximum block height (100px–1200px), and enable or disable the bottom fade-out gradient.
Privacy & Performance:
• Works 100% locally in your browser.
• Lightweight and fast, running only on Google domains.
• Collects zero user data or analytics.
Rated 0 by 0 reviewers
Permissions and data
Required permissions:
- Access your data for sites in the google.com domain
- Access your data for sites in the google.in domain
- Access your data for sites in the google.us domain
- Access your data for sites in the google.kz domain
- Access your data for sites in the google.ru domain
- Access your data for sites in the google.de domain
- Access your data for sites in the google.ca domain
- Access your data for sites in the google.fr domain
- Access your data for sites in the google.co.uk domain
- Access your data for sites in the google.com.br domain
- Access your data for sites in the google.it domain
- Access your data for sites in the google.es domain
Data collection:
- The developer says this extension doesn't require data collection.
More information
- Add-on Links
- Version
- 1.5
- Size
- 52.05 KB
- Last updated
- 4 days ago (Nov 23, 2026)
- Related Categories
- License
- MIT License
- Version History
- Add to collection