Gemini Code Download Button

Adds a download button to Gemini code blocks. Automatically identifies the language and generates the corresponding file extension.

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
kmcbest
Daily installs
1
Total installs
5
Ratings
0 0 0
Version
1.0
Created
2026-03-25
Updated
2026-03-25
Size
5.56 KB
License
MIT
Applies to

Adds a "Download" button to the generated code blocks on the Gemini web interface. It supports automatic extension mapping for over 30 languages (including Python, JS, Rust, etc.). Files are named using the detected language and a current timestamp (YYYYMMDD-HHMMSS) to prevent overwriting.

---


在 Gemini 网页端的代码块中加入“下载”按钮。支持自动识别超过 30 种编程语言(如 Python, JS, Rust 等)并匹配对应的文件后缀。下载文件名由识别到的语言名称与当前时间戳(年月日-时分秒)组成,避免文件名冲突。