Google Gemini Mod (Toolbar & Download)

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

目前為 2025-08-19 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.