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

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
piknockyou
日安装量
2
总安装量
14
评分
0 0 0
版本
2.2
创建于
2025-12-22
更新于
2025-12-28
大小
9.1 KB
许可证
AGPL-3.0
适用于

See screenshot below

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