Copilot Conversation Exporter

Export Microsoft Copilot conversations to Markdown or JSON (optionally includes AI Thoughts when present)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
NoahTheGinger
日安装量
1
总安装量
34
评分
1 0 0
版本
2.0.0
创建于
2025-04-12
更新于
2025-09-27
大小
17.7 KB
许可证
MIT
适用于

Copilot Conversation Exporter

A simple Tampermonkey userscript that adds an Export button to copilot.microsoft.com. This button lets you quickly export your Copilot conversation as a nicely formatted Markdown file or raw JSON data.

Copilot web chat exporter demo

Features

  • Multiple Export Formats: Export conversations as Markdown (.md) or JSON (.json) files.
  • API-Based Data Retrieval: Fetches conversation data directly from Copilot's API for complete accuracy.
  • AI Thoughts Included: Captures and includes AI reasoning content when present.
  • Clean Formatting: Properly formats messages with support for images, citations, and rich content.
  • Easy Access: The export button is fixed in the bottom-right corner of the screen.
  • Timestamped Files: Exported files include timestamps to prevent naming conflicts.

Installation

  1. Install Tampermonkey (or another userscript manager) in your browser.
  2. Create a new userscript and copy-paste the code from the repository into it.
  3. Save the script.
  4. Navigate to copilot.microsoft.com and you should see the Export button in the bottom-right corner.

Usage

  • Start a Conversation: Begin chatting with Copilot as you normally would.
  • Click the Button: Hit the Export button at the bottom-right.
  • Choose Format: Select either Markdown or JSON format from the dialog that appears.
  • Download: The script will fetch the conversation data and automatically download a file named {conversation_title}_{timestamp}.md or {conversation_title}_{timestamp}.json.

Customization

The script uses Copilot's official API endpoints to retrieve conversation data. If you need additional formatting for the Markdown output, you can modify the conversationToMarkdown() and partsToMarkdown() functions. The JSON export provides the raw conversation data for custom processing.

License

This project is released under the MIT License.