Collapse ChatGPT & User Code Blocks

Collapse code blocks in ChatGPT responses and your own <pre> messages by default, with toggles and copy buttons for each type.

Author
Louan Fontenele
Daily installs
0
Total installs
1
Ratings
0 0 0
Version
1.0
Created
2025-06-27
Updated
2025-06-27
Size
7.83 KB
License
MIT
Applies to

🚀 Collapse ChatGPT & User Code Blocks

Automatically collapse code blocks in ChatGPT and user messages!
Show/hide code with a click, and copy code instantly.
Works on chat.openai.com and chatgpt.com — perfect for developers!

✨ Features

  • 🔽 Collapse all code blocks by default
  • 👁️ Toggle to show/hide code easily
  • 📋 Copy user code blocks with one click
  • 🟢 Simple, clean, works automatically

🛠️ How to use

  1. Install Tampermonkey extension.
  2. Add this userscript.
  3. Reload your ChatGPT page and enjoy!

Keywords: chatgpt, code block, collapse, toggle, hide, show, copy, userscript, tampermonkey, developer, chat.openai.com, chatgpt.com , greasyfork