Gemini Code Download Button

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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!)

ผู้เขียน
kmcbest
จำนวนติดตั้งประจำวัน
1
จำนวนติดตั้งทั้งหมด
5
คะแนน
0 0 0
เวอร์ชัน
1.0
สร้างเมื่อ
25-03-2026
อัปเดตเมื่อ
25-03-2026
Size
5.56 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

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 等)并匹配对应的文件后缀。下载文件名由识别到的语言名称与当前时间戳(年月日-时分秒)组成,避免文件名冲突。