Google AI Studio | Quick Actions Toolbar (Delete + Copy Markdown)

Adds Delete and Copy as Markdown buttons directly to the message hover toolbar

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension 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.

(I already have a user style manager, let me install it!)

Автор
piknockyou
Щоденних встановлень
0
Всього встановлень
34
Рейтинги
0 0 0
Версія
2.2
Створено
22.12.2025
Оновлено
28.12.2025
Size
9,1 кБ
Ліцензія
AGPL-3.0
Відноситься до

See screenshot at the bottom

If you'd like to support me: https://ko-fi.com/piknockyou :-)

Google AI Studio | Quick Actions Toolbar (Delete + Copy Markdown)

Adds one-click Delete and Copy as Markdown buttons directly into each message’s hover toolbar in Google AI Studio—no need to manually open the ⋮ menu.

Features

  • Inline Quick Actions: Adds two native-style icon buttons to the message hover toolbar:
    • 🗑️ Delete
    • 📝 Copy as Markdown
  • Native Actions: Both buttons trigger the existing AI Studio menu actions (menu opened programmatically).
  • Fast Copy: Uses AI Studio’s built-in Copy as markdown action for consistent output.
  • Visual Feedback: Copy button briefly shows a success checkmark.
  • SPA-Friendly: Automatically works as new turns appear (AI Studio is a dynamic SPA).
  • More Efficient DOM Scanning: Scans only newly-added DOM subtrees (instead of rescanning the whole page every time) to reduce overhead.

Usage

  1. Hover any chat message to reveal the message action toolbar.
  2. Click:
    • Delete to remove that turn.
    • Copy as Markdown to copy the turn to your clipboard.

Notes

  • Copy as Markdown is performed by automating the existing UI menu item, so formatting should match what AI Studio provides.
  • Delete is also performed by automating the existing UI menu item, keeping it compatible with the site’s logic.

Configuration

Timing values are configurable at the top of the script:

  • SCAN_DEBOUNCE_MS – how often the script scans for new toolbars during UI updates
  • COPY_FEEDBACK_MS – how long the success icon stays visible