您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Logs chat ChatGPT messages with labels, dynamically updates, and includes a copy button. UI is centered at the top.
当前为
This Tampermonkey script enhances the ChatGPT web interface by adding a text export functionality. It allows users to easily copy or download the entire chat conversation, including both user and assistant messages, with proper formatting and real-time updates.
Install the Tampermonkey browser extension:
Install the script:
Tampermonkey will open a new tab with the script contents and an "Install" button. Click "Install" to proceed.
The script is now installed and will run automatically when you visit ChatGPT.
Navigate to chat.openai.com
Look for the control panel at the top center of the page
Click the "Select Chat" button to show the dropdown menu
Select the appropriate chat container from the dropdown menu
If needed, click the clipboard icon next to the dropdown to copy the selected chat container selector to your clipboard
Start or continue your ChatGPT conversation
Click the "Copy Chat" button to copy the entire conversation to your clipboard
Click the download icon next to the "Copy Chat" button to save the conversation as a TXT or JSON file
The script continuously updates the content of existing messages, ensuring that when you copy or download the chat, you get the most current version of the conversation
The script includes a CONFIG
object with the following options:
enableLogging
: Set to true
to enable console logging (default: false
)chatContainerSelector
: Hard-coded selector for the chat container (leave empty to use auto-detection)If the script doesn't work as expected:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.