Gemini Conversation Delete Shortcut

Deletes the current Gemini conversation with a keyboard shortcut or button, and provides a Tampermonkey menu command to show script status, including header detection count and insertion logs.

Od 07.05.2025.. Pogledajte najnovija verzija.

Autor
TakashiSasaki
Ocjene
0 0 0
Verzija
1.5.8
Stvoreno
19.04.2025.
Ažurirano
07.05.2025.
Size
5,96 KB
Licenza
MIT
Primjenjuje se

✨ Gemini Conversation Delete Shortcut ✨

📝 Description

This Tampermonkey script provides a convenient Ctrl + Shift + Backspace shortcut (or manual button) to delete the currently displayed conversation on Google Gemini (https://gemini.google.com/app/*). It automates the following sequence:

  1. Opens the conversation actions menu (the three‑dots button).
  2. Clicks the Delete option in the menu.
  3. Confirms deletion by clicking the confirmation dialog button.
  4. Optionally emulates a final UI step to return to the conversation list.

Additionally, the script registers a Tampermonkey menu command Show delete shortcut status to display an alert dialog showing:

  • The script version.
  • The current page URL.
  • The number of conversation headers detected.

This makes it easy to verify that the script is loaded and the UI elements are recognized correctly.

⚙️ Features

  • Keyboard shortcut (Ctrl + Shift + Backspace): Deletes the open conversation in one go.
  • Manual button: An in‑page 🗑️ button is injected next to each conversation’s More menu, highlighted in yellow for visibility.
  • Responsive check: Automatically skips deletion when the window width is above 960 px to avoid layout mismatches.
  • Robust polling: Waits for menu, delete, and confirm buttons to appear, retrying up to 3 seconds.
  • Tampermonkey menu status: Right‑click the extension icon ▶️ Show delete shortcut status to see an alert with version, URL, and detected headers.
  • Console logs: Detailed logs during button insertion and status checks for debugging.

🚀 Installation & Usage

  1. Install Tampermonkey in your browser (Chrome, Edge, Firefox, Opera, etc.).
  2. Install this script from GreasyFork by clicking Install.
  • Chromium‑based browsers: Ensure Developer mode (Tampermonkey v5.3.2+) is enabled in your extension settings (chrome://extensions or edge://extensions).
    1. Open a Gemini conversation at https://gemini.google.com/app/*.
    2. Adjust your window width to 960 px or below so that Gemini’s mobile‑friendly menu appears.
    3. Press Ctrl + Shift + Backspace or click the yellow 🗑️ button to delete the conversation.
    4. Check status via Tampermonkey menu ▶️ Show delete shortcut status.

👨‍💻 Developer

Takashi Sasaki

🌐 Homepage

https://x.com/TakashiSasaki

📄 License

MIT