您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enhances Google Gemini with a configurable toolbar for snippets and canvas content download.
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".
📌 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".
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.
Tampermonkey (Recommended; available for Chrome, Firefox, Edge, Safari, Opera)
Violentmonkey (Available for Chrome, Firefox, Edge, Opera)
Greasemonkey (Firefox only)
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".
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.
https://gemini.google.com/
. The toolbar should now appear at the top-center of the page. 🎉This script now features a user-friendly settings panel, eliminating the need to edit the code for customization.
Click the ⚙️ Settings button on the far right of the toolbar.
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.