ChatGPT-Image-2图片生成优化提示词提取器

手动提取 ChatGPT 图片生成优化提示词,支持缩略图预览、多选批量下载

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.

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

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!)

Author
ilab m
Daily installs
0
Total installs
43
Ratings
1 0 0
Version
5.2.1
Created
2026-04-30
Updated
2026-05-25
Size
46 KB
License
MIT
Applies to

这是什么?

当你要求 ChatGPT 使用 DALL-E 3 / GPT-image-2 生成图片时,它会在内部将你的原始提示词改写成一个更详细、更优化的版本,再发送给图像模型。这个优化后的提示词(revised prompt) 通常对用户是隐藏的 —— 这个油猴脚本就是用来将它提取并显示出来的。

在 ChatGPT 对话页中,页面右下角会出现一个悬浮按钮(画笔图标)。点击后会手动提取优化提示词并展开管理面板;也可以在面板中点击「提取」重新刷新。

功能特性

核心功能

  • ✅ 提取 ChatGPT 图片生成对话中的优化提示词
  • ✅ 手动提取,不在后台自动轮询 API
  • ✅ 多策略提取(代码块、tool 消息、DALL-E metadata)
  • ✅ 自动清除 <|has_watermark|> 等内部控制标记

v5.0 — 视觉化管理与批量下载

  • 🖼️ 缩略图悬浮预览 — 鼠标悬停在提示词缩略图上时,左侧会平滑浮出无裁切的高清大图预览
  • 📥 ZIP 批量打包下载 — 支持“下载全部”、“下载选中”以及“单轮下载”,所有批量下载会自动打包为 .zip 文件,告别浏览器弹窗风暴
  • 🔲 对话轮次分组 — 多轮生成的图片会通过分割线清晰分组,每组带有独立的“下载本轮”按钮
  • 🛡️ Token 自动刷新 — 手动提取时处理长时间挂机导致的 API 401 错误
  • 🚦 手动限流机制 — 避免后台重复轮询;如果触发 ChatGPT 的 429 频率限制,会提示稍后手动重试

界面体验

  • ✅ 悬浮按钮 + 角标计数,不遮挡页面内容
  • ✅ 每条提示词独立折叠卡片,多图场景下界面整洁
  • ✅ 一键复制到剪贴板
  • ✅ 支持暗色模式
  • ✅ 感知 SPA 导航,切换对话时自动重置