CodeDown

Adds download buttons to code blocks on ChatGPT, Z.Ai, Gemini, LMArena, Kimi, Le Chat, Meta AI, Copilot, Grok, and LongCat, downloading the file in the correct, ready-to-use format

Install this script?
Author's suggested script

You may also like My Prompt.

Install this script
Author
OHAS
Daily installs
2
Total installs
43
Ratings
2 0 0
Version
1.3
Created
2025-09-26
Updated
2025-10-28
Size
35.2 KB
Compatibility
Compatible with Firefox Compatible with Chrome Compatible with Opera Compatible with Edge
License
CC-BY-NC-ND-4.0
Applies to

CodeDown: Easily Download Code Blocks from AI Chats

CodeDown is a small assistant for your web browser that simplifies the way you save code generated by various artificial intelligence platforms. Instead of the hassle of copying the code, opening a text editor, pasting the content, and manually saving the file, CodeDown adds a handy “Download” button directly to code blocks, allowing you to download the formatted, ready-to-use file with a single click.




What Does It Do?

The script's main function is to add a download button to code blocks on supported AI chat websites. It is designed to make the process of saving code snippets faster, more efficient, and more organized.
The script is smart enough to:
  • Detect the programming language (such as Python, JavaScript, HTML, etc.).
  • Assign the correct file extension (e.g., .py for Python, .js for JavaScript).
  • Automatically name the file, including the platform name, language, and date, so you can find your files easily.




How Does It Work?

Very simply, the script runs silently in the background as you browse compatible AI sites.
  1. Automatic Detection: It identifies when a code snippet is displayed on the screen.
  2. Button Addition: As soon as a code block is detected, a new "Download" button appears, usually next to the "Copy" button.
  3. One-Click Download: When you click this new button, the script captures the entire code content, formats it correctly, and starts the file download in your browser, saving it directly to your downloads folder.




How to Use?

Using CodeDown is very easy!
There is nothing to configure. Just navigate to one of the supported AI sites, generate some code, and you will see the download button appear automatically.




Supported AI Platforms

We have added support for the main AI chat platforms on the market:

ChatGPT | Gemini | Copilot | Meta AI | Grok | Z.Ai | LM Arena | Kimi | Le Chat | LongCat




Important Notice for Microsoft Edge Users

⚠️Compatibility Issue with Copilot on Edge⚠️


Due to specific policies in the Microsoft Edge browser that restrict modifications to Microsoft's own tools, the CodeDown download button may not work correctly or appear at all on the Copilot platform when using Edge. To ensure the best compatibility and enjoy all of CodeDown's features on Copilot, we recommend using the Firefox browser.




As new improvements are tested and refined, your feedback helps guide the roadmap. If you wish to support maintenance and new features, please consider supporting:



Thank you!