dgleba / chatgpt-export

A browser bookmarklet for exporting conversations with ChatGPT as markdown files.

Home Page:https://geeksta.net/tools/chatgpt-to-markdown/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Export Browser Bookmarklet

The ChatGPT Export bookmarklet is a convenient tool that allows you to effortlessly export conversations with ChatGPT as markdown files. With this bookmarklet, you can capture and save your ChatGPT conversations in a readable format for easy reference and sharing.

Installation

To get started, simply visit the ChatGPT to Markdown web page and drag the bookmarklet link to your browser's bookmark toolbar. You can also review the source code of the link to ensure its integrity and functionality.

Alternatively, if you prefer a more hands-on approach, you can clone this repository, install the necessary dependencies, and compile the code on your own machine.

How it works

Once the bookmarklet link is clicked on a ChatGPT conversation page, it dynamically adds a script tag and loads the html-to-md JavaScript package. The document.body is then cloned and modified in the cloned version to remove any unnecessary information, ensuring a clean and concise output. Finally, the resulting HTML code is converted to markdown format and downloaded as a text file. The file is automatically named based on the conversation's title in the ChatGPT interface.

Please note that the html-to-md package is loaded dynamically to avoid exceeding bookmarklet size limitations when including it in the compiled code.

With the ChatGPT Export browser bookmarklet, archiving and sharing your ChatGPT conversations as markdown files becomes a seamless process, enhancing your productivity and collaboration.

About

A browser bookmarklet for exporting conversations with ChatGPT as markdown files.

https://geeksta.net/tools/chatgpt-to-markdown/

License:MIT License


Languages

Language:JavaScript 100.0%