Skip to content

CHEN2003-CHIP/chatgpt-history-saver

Repository files navigation

ChatGPT History Saver

Large promotional tile

Export ChatGPT conversations to high-fidelity HTML snapshots and print-friendly PDFs.

ChatGPT History Saver is an Edge/Chromium extension built for people who want to save ChatGPT conversations in formats that still feel pleasant to read later. Instead of dumping raw text, it focuses on readable exports that are easy to archive, share, and revisit.

Why people use it

  • Save ChatGPT conversations as high-fidelity static HTML pages
  • Create print-friendly PDF exports from the current conversation
  • Keep code blocks, text layout, and images more readable than plain copy-paste
  • Archive important chats for research, documentation, or personal knowledge bases

Install

Option 1: Install from the Edge Add-ons store

  1. Open Microsoft Edge.
  2. Go to the Edge Add-ons store.
  3. Search for ChatGPT History Saver.
  4. Open the extension page and click Get.
  5. After installation, pin the extension to the Edge toolbar for quick access.

Option 2: Download the ZIP and load it manually in Edge

  1. Download the project ZIP from GitHub.
  2. Extract the ZIP to a local folder.
  3. Open edge://extensions/ in Microsoft Edge.
  4. Turn on Developer mode in the top-right corner.
  5. Click Load unpacked.
  6. Select the extracted project folder.
  7. After installation, pin the extension to the Edge toolbar.

How to use

  1. Open a ChatGPT conversation page on chatgpt.com or chat.openai.com.
  2. Click the ChatGPT History Saver icon in the Edge toolbar.
  3. Choose one of the available export options:
    • Export HTML: creates a high-fidelity static HTML snapshot for offline reading.
    • Export PDF: opens a print-friendly preview page and lets you save the conversation as PDF.
  4. For HTML export, review the preview and click Download HTML.
  5. For PDF export, use the browser print dialog and choose Save as PDF.

How it looks

show exportPDF exportHTML

Features

  • One-click export from the browser action popup
  • High-fidelity HTML export designed for offline reading
  • PDF export through a dedicated print-friendly preview flow
  • Best-effort image embedding for readable exports
  • ChatGPT-only scope for chatgpt.com and chat.openai.com

Screenshots

Popup

Popup preview

HTML Export

HTML export preview

PDF Export

PDF export preview

How it works

  • content/content.js collects the current conversation or DOM snapshot from the active ChatGPT page.
  • background/background.js coordinates export requests and opens the export flow.
  • export/export.html renders the export preview page.
  • HTML export focuses on a high-fidelity static snapshot workflow.
  • PDF export opens a print-friendly preview page for browser-native PDF saving.

Project structure

background/   background service worker
content/      page collector and HTML snapshot logic
export/       preview pages and export UI
popup/        extension popup UI
shared/       shared serializers and helpers
icons/        extension icons
marketing/    promotional images for store/repo assets
docs/         store listing, privacy, release, and support docs

Release and store materials

The repo already includes starter publishing materials:

Current limitations

  • ChatGPT frontend changes may require parser updates
  • Some protected or expiring images may not embed successfully
  • Export fidelity depends on the visible page structure at export time

Contributing

Contributions, bug reports, and improvement ideas are welcome.

  • Read CONTRIBUTING.md
  • Use the issue templates in .github/ISSUE_TEMPLATE/
  • Keep changes focused and easy to review

Security

If you discover a security issue, please read SECURITY.md before opening a public report.

Changelog

See CHANGELOG.md.

About

一个Edge浏览器可用的ChatGPT 历史记录导出插件,可以支持PDF和HTML页面导出

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors