Gemini Command Menu

Adds a native-styled command menu triggered by "/" in the Gemini input box. Unifies tools and file upload sources, providing instant access by just typing, with seamless navigation and interaction.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
jackiechan285
Ημερήσιες εγκαταστάσεις
1
Σύνολο εγκαταστάσεων
9
Βαθμολογίες
0 0 0
Έκδοση
5.2
Δημιουργήθηκε την
27/12/2025
Ενημερώθηκε την
27/12/2025
Μέγεθος
30 KB
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε

Gemini Command Menu

Gemini Command Menu brings a productivity-boosting "Slash Command" interface (similar to ChatGPT, Notion, Slack, or Discord) to the Google Gemini web interface.

Type / in the chat input box to instantly access Tools (Deep Research, Canvas, Image Generation) and File Upload options (Drive, Upload, NotebookLM) without lifting your hands from the keyboard.

🚀 Key Features

  • Native UI Integration: The menu is engineered to look and feel exactly like a native part of Gemini. It dynamically adopts the site's current Angular styles, dark/light mode, and font settings.
  • Dynamic Discovery Engine: Instead of using hardcoded lists that break when Google updates the site, this script intelligently scrapes the "Tools" and "Add Files" menus in real-time. If Google adds a new feature (e.g., a new Veo video model), the Command Menu will detect it.
  • Smart Caching: To ensure zero latency, the script caches menu items after the first scan. It only re-scans if you explicitly request it, ensuring instant performance.
  • Seamless Action Execution: When you select an item, the script performs a "stealth click" on the actual UI element in the background, ensuring 100% compatibility with Gemini's internal logic.
  • Keyboard Navigation: Full support for Arrow Up, Arrow Down, Enter, and Tab. The menu handles scrolling automatically.
  • Safe & Robust: Built with Trusted Types compliance (preventing security errors) and uses efficient DOM observation to avoid performance drains.

🛠️ How to Use

  1. Install the script via Violentmonkey or Tampermonkey.
  2. Open gemini.google.com.
  3. First Run Initialization:
  4. Note: Because the script reads the menu items from the page, they need to be loaded once.
  5. Click the "+" (Add Files) button to open that menu.
  6. Click the "Tools" button (or the Gemini Advanced gem icon) to open that menu.
  7. The script has now cached these items.

  8. Type `/` in the prompt area.

  9. Navigate with arrows and press Enter to trigger an action.

⚙️ Context Menu Options

If Google updates the interface or adds new tools, you can force the script to re-learn the menu items:

  1. Open your Userscript Manager extension menu.
  2. Select "Reset Menu Cache (Re-scan)".
  3. Refresh the page and open the menus again as described in the "First Run" instructions.

🔧 Technical Info

  • Engine: Uses @violentmonkey/dom for efficient VM.observe.
  • Rendering: Clones specific Angular Content IDs (_ngcontent-...) to replicate native shadowing and layout properties perfectly.
  • Execution: Temporarily hides the native .cdk-overlay-container while programmatically clicking buttons to provide a seamless "command line" experience.

This userscript was written with Gemini 3 Pro.

It was carefully made to look and behave exactly like a native feature on Gemini - you can check it by yourself and you won't believe I just made it with Gemini.