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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

المؤلف
kmcbest
التثبيت اليومي
1
إجمالي التثبيت
5
التقييمات
0 0 0
الإصدار
1.0
تم إنشاؤه
25-03-2026
تم تحديثه
25-03-2026
الحجم
5.56 KB
الترخيص
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 等)并匹配对应的文件后缀。下载文件名由识别到的语言名称与当前时间戳(年月日-时分秒)组成,避免文件名冲突。