Claude Code Block Collapser v27

Collapse code blocks with copy, download, expand/collapse. Clean single-button layout.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
carrot4522
Daily installs
0
Total installs
8
Ratings
0 0 0
Version
27
Created
2025-11-08
Updated
2026-01-05
Size
10.4 KB
License
N/A
Applies to

📦 Claude Code Block Collapser v25

Collapse code blocks into clean, manageable sections with dual controls, one-click downloads, and typing detection.


✨ Features

Feature Description
📦 Auto-Collapse Code blocks collapse when Claude finishes typing
⚖️ Dual Controls Copy, download, expand buttons on both sides
📋 One-Click Copy Copy code with visual confirmation
💾 Quick Download Save as .txt with auto-generated filename
🖱️ Double-Click Toggle Fast expand/collapse on header or content
⌨️ Typing Animation Gradient shows when Claude is still generating

🚦 Status Indicators

State Header Style Meaning
⌨️ Typing Animated gradient Claude still generating
Done Static gray Code complete, controls active
📦 Collapsed Compact Space saved, click to expand

🎯 Usage

Action How
Expand/Collapse Double-click header or content
Copy Code Click "Copy" button (either side)
Download Click "Download" button
Wait for Completion Watch for animation to stop

💡 Pro Tips

Tip Benefit
🖱️ Double-click mastery Fastest way to toggle
⏱️ Watch the gradient Wait for static header before download
💾 Download immediately Save important code right away
⚖️ Use either side Controls on left AND right

📊 Supported Languages

All major languages including: JavaScript, Python, Java, C++, Ruby, Go, Rust, PHP, TypeScript, HTML, CSS, JSON, YAML, SQL, Shell, and more.


Keep Claude conversations clean with intelligent code collapsing. 💻✨