Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
Log in
Preview of AI Code Block Fixer

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

0 (0 reviews)0 (0 reviews)
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
Before the add-on, a large block of code in the chat window looks like this...After the add-on, the large piece of code looks like this.And you have the option to edit code locally or take notes, with the ability to save the result as a file.
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.
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
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.
Learn more
More information
Add-on Links
  • Copy add-on ID
Version
1.5
Size
52.05 KB
Last updated
4 days ago (Nov 23, 2026)
Related Categories
  • Web Development
  • Search Tools
  • Appearance
License
MIT License
Version History
  • See all versions
Tags
  • chat
  • google
  • search
  • user scripts
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.