Skip to content

Download your chats with one click – a Chrome browser extension exporting AI chats as clean, standalone HTML files

License

Notifications You must be signed in to change notification settings

paradox-solver/UniversalChatExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Chat Exporter (U-chex) 🔄📥

Download your chats with one click – completely local, extremely simple, and absolutely secure ✨

U-chex is a Chrome browser extension that exports AI chat conversations as clean, standalone HTML files with a single click. Built with privacy-first principles and a platform-agnostic parsing strategy.

🎯 Why U-chex?

Unlike typical chat exporters that are bloated, platform-specific, and often compromise your privacy, U-chex offers:

  • 🌐 Universal compatibility – Works seamlessly across multiple AI chat platforms including ChatGPT, Claude, Gemini, Copilot, DeepSeek, Grok, Perplexity, Poe, and more
  • 👨‍💻 Developer-friendly – Specialized syntax highlighting and optimized code block rendering
  • 🚫 Zero bloat – UI consists of exactly one button
  • 🛡️ Privacy by design – No remote connections, no background workers, no storage, no AI processing
  • 📋 Faithful preservation – Keeps chats exactly as they appear, with no additions or losses

✨ Features

  • ⚡ One-click export to a single .html file (no console or server required)
  • 🎨 Unified HTML template with syntax highlighting for code blocks (via Highlight.js)
  • 🧹 Automatic cleanup – removes non-content UI elements for cleaner exports
  • 📅 Smart filenames – timestamped with safe characters
  • 💻 Completely local – runs entirely in your browser with no additional installations
  • 🔐 Minimal permissions – only activates when you click the extension
  • 🌍 Broad platform support – optimized for most mainstream AI chat platforms

🌐 Supported Platforms

Platform Content Integrity Syntax Highlighting Specialized Code Blocks Irrelevant Content Cleanup Duplicate Content Prevention Support Level
ChatGPT ⭐⭐⭐⭐⭐
Claude ⭐⭐⭐⭐⭐
DeepSeek ⭐⭐⭐⭐⭐
Gemini ⭐⭐⭐⭐
Copilot ⭐⭐⭐
Grok ⭐⭐⭐⭐
Perplexity ⭐⭐⭐
Poe ⭐⭐⭐
Le Chat ⭐⭐⭐

📝 Note:

  • Platforms like Poe and Perplexity have complex nested layouts that may cause duplicated prompts in exported output.
  • To maintain code simplicity and platform-agnostic design, we don't implement per-site exceptions. Results may be imperfect on these platforms.

🚀 Installation (Load Unpacked)

  1. Open Chrome and navigate to chrome://extensions
  2. Enable Developer mode (toggle in top-right corner) 🛠️
  3. Click "Load unpacked" and select this project folder 📂
  4. (Optional) Pin the extension icon to your toolbar for quick access 📌

🖱️ Usage

  1. Open a supported chat page (e.g., ChatGPT, Claude, DeepSeek) 🌐
  2. Click the U-chex extension icon in your toolbar 🪄
  3. Click the "Export Chat" button (the only button in the panel) 📥
  4. Download – A standalone .html file will download automatically ✅

🛠️ How It Works

Component Function
content.js Scans the page for message containers using generic selectors, extracts visible content, cleans UI-only elements, normalizes code blocks, and renders everything into a shared template 🔍
template.html Provides typography and code highlighting (via Highlight.js CDN) so exported files remain readable offline 🎨
background.js Injects content.js on toolbar click (using MV3 scripting + activeTab permissions) ⚡

📁 Project Structure

├── manifest.json      # 🏷️ MV3 manifest with minimal permissions
├── background.js      # 🎮 Extension icon click handler
├── content.js         # 🧠 Core extractor and HTML builder
├── template.html      # 🎨 Unified export template (styles + highlight.js)
└── extract_chat_html.js  # 📘 Original console helper (reference only)

⚠️ Limitations & Notes

  • 🎨 Styling constraints – Cross-origin stylesheets cannot be read directly; only accessible styles are preserved (template provides pleasant defaults)
  • 🔄 Content duplication – Some platforms embed user prompts inside AI answers, which may cause repeated content in exports
  • 🖼️ External assets – Images and fonts remain as external URLs (data URL embedding not yet implemented)
  • 🔧 Generic approach – Uses platform-agnostic selectors; some site-specific optimizations may be absent

🧠 Design Philosophy

U-chex is intentionally minimalistic and privacy-respecting:

  • 🔒 Privacy-first – No data ever leaves your machine. No remote connections, period.
  • 💾 Local-first – Helps you bring online chats to local storage. Only what's in your local storage truly belongs to you.
  • 🎯 Extreme minimalism – One button solves the entire problem.
  • 🎁 For free AI users – Designed specifically for users who rely on free chat interfaces.
  • 📋 Zero content injection – Final output contains only your information, nothing added.
  • 🔍 Full transparency – No sensitive permissions, no hidden access.

🗺️ Roadmap

  • ⚙️ Optional settings – Filename patterns, "faithful vs. clean" export modes
  • 🖱️ Enhanced UX – Context menu and page-floating action button
  • 📜 History export – Auto-scroll to load older messages before export
  • 📦 Self-contained files – Optional embedding of images/fonts
  • 🌐 Extended platform support – More AI chat platforms

🔒 Privacy Commitment

  • 🏠 Runs entirely locally – No network requests beyond CDN assets referenced by the template
  • ⬆️ Never uploads your conversations to any server
  • ⏸️ No background processes – Only activates when you explicitly click the extension
  • 💾 No data storage – Doesn't save anything locally beyond the files you choose to download

💻 Development

This is a plain MV3 extension with no build step required:

  1. Edit files as needed ✏️
  2. Reload via chrome://extensions → "Reload" 🔄
  3. Test on supported platforms 🧪
  4. Keep selectors generic where possible to avoid per-site maintenance overhead

📄 License

MIT License – free to use, modify, and distribute. 📜


U-chex: Because your conversations belong to you, not to the cloud. 🌤️➡️💻
Take back control of your digital conversations – one click at a time.

About

Download your chats with one click – a Chrome browser extension exporting AI chats as clean, standalone HTML files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published