This is a simple tool to extract conversations from the ChatGPT chat log as markdown.
git clone https://github.com/iboss-ptk/chatgpt-convo-extractor.git
cd chatgpt-convo-extractor
npm install && npm run dev
- open
chrome://extensions
and clickLoad unpacked
on the top left - select the
build/chrome-mv3-dev
folder in this repo (unless you specified a different--target
in step 2)
In npm run dev
, specify a different --target
(e.g. --target=firefox-mv2
). See list of available targets here.
On ChatGPT, open the conversation you want to extract. Then you have 2 options:
- copy to clipboard:
ctrl + '
- save to file:
ctrl + shift + '
You can change the hotkeys in content.ts
if you want.
// content.ts
// **************************************************
// Key combination configuration, feel free to change
// **************************************************
const KEY_COMBINATION = (event: KeyboardEvent) => ({
// Copy: ctrl + '
copy: event.ctrlKey && event.key === "'",
// Download: ctrl + shift + '
download: event.ctrlKey && event.shiftKey && event.key === "'"
})
Markdown extraction logic is copied from this reddit post by @Creative_Original918