Copilot Conversation Exporter

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

作者
NoahTheGinger
日安装量
0
总安装量
19
评分
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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址