A Firefox browser extension that exports chat sessions from Gemini (gemini.google.com) to Markdown format.
- Export individual Gemini chat sessions to Markdown files
- Copy chat content directly to clipboard
- Preserves formatting including code blocks, bold, italic, headers, and lists
- Clear visual distinction between user prompts and Gemini responses
- Timestamps and metadata in exported files
- Open Firefox and navigate to
about:debugging - Click "This Firefox" in the left sidebar
- Click "Load Temporary Add-on..."
- Navigate to this extension folder and select
manifest.json - The extension will be installed temporarily (until Firefox restarts)
To install permanently, the extension needs to be signed by Mozilla:
- Create a
.zipfile of the extension:zip -r gemini-exporter.zip manifest.json src/ icons/
- Submit to Firefox Add-ons for signing
- Install the signed
.xpifile
- Navigate to gemini.google.com
- Open or continue a chat conversation
- Click the Gemini Chat Exporter icon in your browser toolbar
- Choose an action:
- Export to Markdown: Downloads a
.mdfile with the chat content - Copy to Clipboard: Copies the Markdown text to your clipboard
- Export to Markdown: Downloads a
The exported Markdown follows this structure:
# Chat Title
*Exported from Gemini on January 15, 2025, 2:30 PM*
---
## User
Your question or prompt here
---
## Gemini
The AI response with preserved formatting, including:
- **Bold text**
- *Italic text*
- `code snippets`
- Code blocks with syntax highlighting
---gemini-chat-exporter/
├── manifest.json # Extension manifest
├── icons/
│ ├── icon-48.png # Toolbar icon
│ └── icon-96.png # High-res icon
├── src/
│ ├── content.js # Content script for DOM extraction
│ ├── popup.html # Extension popup UI
│ ├── popup.css # Popup styles
│ └── popup.js # Popup logic
└── README.md
- Make your code changes
- Go to
about:debuggingin Firefox - Click "Reload" next to the extension
- Refresh any open Gemini tabs
"No chat messages found" error
- Ensure you're on a Gemini page with an active conversation
- Try refreshing the page and waiting for it to fully load
- The DOM structure of Gemini may have changed; please report an issue
Extension icon not appearing
- Check that the extension is properly loaded in
about:debugging - Try restarting Firefox
Export button not working
- Make sure you're on
gemini.google.com - Check the browser console for error messages
MIT License