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 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
Start or continue your ChatGPT conversation
Click the "Copy Chat" button to copy the entire conversation to your clipboard
The script continuously updates the content of existing messages, ensuring that when you click "Copy 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.