A Chrome extension that exports Gemini chat history from Google AI Studio to Markdown format.
- Adds an "Export" button to code dialogs in Google AI Studio
- Parses conversation content into structured Markdown format
- Automatically downloads the generated Markdown file
- Distinguishes between user and model dialogue content
- Automatically splits model responses into "think" and "answer" sections
- Clone this repository or download the ZIP file
- Open Chrome browser and go to
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked" and select the root directory of this project
- Open Google AI Studio (https://aistudio.google.com/)
- In any code dialog, click the "Export" button
- The system will automatically download a Markdown file named
gemini-chat-history.md
- Uses MutationObserver to monitor DOM changes and dynamically inject the export button
- Parses conversation content in code dialogs using regular expressions
- Formats the parsed results into Markdown structure:
- Level 1 heading for the overall conversation
- Level 2 headings to distinguish between user and model
- Level 3 headings to split model responses into "think" and "answer" sections
MIT License