Code Fold for AI Chats by kael
Auto-fold code blocks on Qwen and DeepSeek.Fold long code blocks in AI chat interfaces. Firefox extension for AI chatbots (Qwen, DeepSeek).
Extension Metadata
Screenshots
About this extension
Adds a Fold / Unfold button to every code block in AI chat
interfaces, so long snippets stop pushing the conversation off the
screen. Code blocks are expanded by default — one click collapses
them.
Adding a new site is a one-object change to
Adding a site below.
interfaces, so long snippets stop pushing the conversation off the
screen. Code blocks are expanded by default — one click collapses
them.
- chat.qwen.ai (also
qwen.ai,tongyi.aliyun.com) - chat.deepseek.com
Adding a new site is a one-object change to
src/sites.ts. SeeAdding a site below.
- A pill-shaped ▾ Fold button appears in each code block's header,
next to Copy / Download. - Clicking it hides the code body and replaces it with a dimmed
▸ Click to unfold line. - Clicking that line — or the button again — expands the block.
- On Qwen, expanding dispatches a
resizeevent so the Monaco editor
redraws its virtual viewport correctly.
Rated 0 by 0 reviewers
Permissions and data
Required permissions:
- Access your data for chat.qwen.ai
- Access your data for qwen.ai
- Access your data for tongyi.aliyun.com
- Access your data for chat.deepseek.com
Data collection:
- The developer says this extension doesn't require data collection.
More information
- Add-on Links
- Version
- 1.0.0
- Size
- 10.57 KB
- Last updated
- 7 days ago (Sep 26, 2026)
- Related Categories
- License
- MIT License
- Version History
- Add to collection