Google Gemini Mod (Toolbar & Download)

Enhances Google Gemini with a configurable toolbar for snippets and canvas content download.

当前为 2025-08-19 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
adromir
评分
0 0 0
版本
0.0.8
创建于
2025-05-16
更新于
2025-08-19
大小
25.4 KB
许可证
MIT
适用于

Google Gemini Mod (Toolbar & Download) - UserScript 🚀

License: MIT Greasy Fork OpenUserJS

This UserScript enhances the Google Gemini web interface (gemini.google.com) by adding a customizable toolbar near the top of the page. This toolbar provides quick access to your custom text snippets, a paste button, and a feature to download the content of an active Gemini "Canvas".

✨ Features

  • 📌 Fixed, Centered Toolbar: Adds a persistent toolbar at the top-center of the Google Gemini interface.

  • ⚙️ On-Page Configuration: No more code editing! A new settings panel allows you to add, edit, and remove buttons and dropdowns directly in the Gemini interface. Your configuration is saved locally in your browser.

  • ⚡ Quick Snippets: Define buttons for frequently used phrases or commands. Click a button to instantly append its text to the Gemini input field.

  • 📚 Dropdown Menus: Organize snippets into multiple dropdown menus for better categorization (e.g., Actions, Translations, Custom Prompts).

  • 📋 Paste from Clipboard: A dedicated button in the toolbar to paste content from your system clipboard directly into the Gemini input field.

  • 💾 Download Canvas Content: A button in the toolbar that allows you to download the content of the currently active/visible Gemini "Canvas".

    • It cleverly uses the Canvas's own "Copy to Clipboard" functionality.
    • The filename is automatically derived from the Canvas title.
    • It intelligently attempts to preserve existing file extensions from the Canvas title (e.g., myScript.js will be saved as myScript.js). If no extension is found, .txt is used as a default.
  • 🖱️ Smart Insertion (for Snippets/Paste): Automatically appends text to the input field, placing the cursor correctly.

  • 🌓 Dark Mode Aware: The toolbar is styled with a dark theme by default, fitting well with Gemini's dark mode.

🛠️ Installation Guide

  1. Install a Userscript Manager: Ensure you have a userscript manager browser extension installed. Popular choices include:
  1. Install the Script:
  • Navigate to the script's installation URL (e.g., from Greasy Fork, OpenUserJS, or the raw GitHub link if provided).

  • Your userscript manager should automatically detect the script and prompt you to install it.

  • Review the script's permissions and details, then click "Install".

  1. Verify Installation:
  • Click the Tampermonkey (or your chosen manager's) icon in your browser toolbar.

  • Go to the "Dashboard" or "Manage Scripts" section.

  • You should see "Google Gemini Mod (Toolbar & Download)" listed and enabled.

  1. Visit Gemini:

⚙️ Configuration & Customization

This script now features a user-friendly settings panel, eliminating the need to edit the code for customization.

  1. Click the ⚙️ Settings button on the far right of the toolbar.

  2. The settings panel will appear, allowing you to manage your buttons and dropdowns.

Managing Buttons:

  • Add: Click Add Button to create a new empty button entry.

  • Edit: Change the text in the "Button Label" and "Snippet Text" fields for any button.

  • Remove: Click the Remove button next to any button you want to delete.

Managing Dropdowns:

  • Add: Click Add Dropdown to create a new dropdown menu.

  • Edit Placeholder: Change the text in the "Dropdown Placeholder" field.

  • Manage Options: Within each dropdown, click Add Option to add new choices. You can edit their labels and text, or remove them with the X button.

  • Remove: Click Remove Dropdown to delete the entire menu.

  1. Once you're done, click Save & Close. The toolbar will instantly update with your new configuration. Your settings are saved in your browser and will persist across sessions.