A powerful browser extension for archiving and managing conversations from multiple AI platforms.
- 🤖 Multi-Platform Support: Works with ChatGPT, Claude, Gemini, Bing Chat, and more
- 💾 One-Click Save: Save complete conversations with a single click
- 📊 Smart Extraction: Automatically identifies user messages and AI responses, filters out UI elements
- 🗂️ Conversation Management: View, export, and delete saved conversations from the extension popup
- 📤 Data Export: Export conversations as JSON files for backup and analysis
- 🎨 Beautiful Interface: Modern gradient design with smooth animations
- 🔒 Privacy First: All data stored locally in your browser, never uploaded to any server
- ChatGPT (chat.openai.com)
- Claude (claude.ai)
- Google Gemini (gemini.google.com)
- Bing Chat (www.bing.com)
- Other AI platforms (generic selectors)
- Download or clone this repository to your local machine
- Open your browser and navigate to the extensions page:
- Chrome:
chrome://extensions/ - Edge:
edge://extensions/
- Chrome:
- Enable "Developer mode" in the top right corner
- Click "Load unpacked"
- Select the
ai-chat-saverfolder - Extension installed successfully!
- Visit any supported AI chat platform
- Have a conversation with the AI
- Click the "💾 Save Chat" button in the top right corner of the page
- You'll see a success notification when the conversation is saved
- Click the extension icon in your browser toolbar
- View all saved conversations in the popup
- You can:
- View conversation titles, message counts, and save timestamps
- Export conversations as JSON files
- Delete conversations you no longer need
- Click the "Export" button next to any conversation
- The conversation will download as a JSON file
- Filename format:
chat-{id}-{title}.json
- All conversation data is stored locally in your browser (Chrome Storage API)
- Maximum of 100 conversations stored (older conversations automatically removed)
- No data is uploaded to any server - completely local and private
- Manifest V3: Uses the latest Chrome extension standard
- Content Scripts: Injected into AI platform pages to extract conversation content
- Chrome Storage API: Local storage for conversation data
- DOM Parsing: Intelligently identifies message structures across different platforms
ai-chat-saver/
├── manifest.json # Extension configuration
├── content.js # Content script (message extraction logic)
├── content.css # Save button and notification styles
├── popup.html # Extension popup interface
├── popup.js # Popup logic (conversation management)
├── LICENSE # MIT License
└── README.md # Project documentation
ChatExtractor (content.js)
- Detects the current AI platform
- Extracts conversation messages from the page
- Filters out UI elements and duplicate messages
- Saves conversations to local storage
PopupManager (popup.js)
- Loads and displays saved conversations
- Handles export and delete operations
- Manages the extension popup UI
Add a new platform configuration in the siteConfigs object in content.js:
'example.com': {
messageSelector: '.message', // Message container selector
userSelector: '.user-message', // User message selector
assistantSelector: '.ai-message', // AI response selector
contentSelector: '.message-text' // Message content selector
}Issues and Pull Requests are welcome!
MIT License