A Tampermonkey userscript that exports ChatGPT deep research content to clean markdown format with numbered citations.
- Converts ChatGPT deep research results to properly formatted markdown
- Replaces long URLs and page titles for sources with numbered citations (1), (2), etc. Accounts for multiple citations from the same base source.
- Appends a Citations section at the end; when Include Links is on it outputs title + link, and when off it outputs title only.
- Strips URL Text Fragments (
#:~:text=...) from source URLs; prefers the source title from the deep research “Sources” UI when available (falls back to decoded text if needed). - Provides both download and copy-to-clipboard functionality
- Optional frontmatter generation for note-taking apps (customize in the script if you'd like).
- Automatically adds export buttons when deep research content is detected
- Install Tampermonkey browser extension
- Download the
chatgpt-research-export.user.jsfile and open it in your browser to install, or install via Greasyfork. - Visit ChatGPT and run a deep research query
When viewing deep research results on ChatGPT, two buttons will appear in the top-right corner:
- Export Research (MD) - Downloads the content as a markdown file
- Copy Research (MD) - Copies the content to your clipboard
Access the Tampermonkey menu to enable/disable frontmatter generation, which adds metadata headers useful for note-taking applications.
The script identifies deep research containers and converts HTML elements to their markdown equivalents. Long citation page titles or URLs are automatically converted to numbered references with clickable links, making research output much cleaner and more readable.
- Tampermonkey or compatible userscript manager
- Works on chatgpt.com and chat.openai.com
MIT License, see attached file.