forked from yaph/chatgpt-export
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# ChatGPT Export Browser Bookmarklet | ||
|
||
This browser bookmarklet enables you to export conversations with ChatGPT as markdown files. It uses the package `html-to-md` for converting HTML to markdown. The minified version of the package is loaded dynamically via a script tag, so the compiled JavaScript code is not too long be saved as a browser bookmark. | ||
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](https://geeksta.net/tools/chatgpt-to-markdown/) 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters