Universal Markdown Exporter

Converts most web page elements into clean Markdown with visual element selection and live editor preview support. This Trusted-Types safe script supports extraction and conversion from ChatGPT deep research overlays with sub-element selection inside the maximized panel, including citation/sources/thinking-activity extraction, and Google Gemini deep research reports and canvases, featuring 6 citation styles, YAML frontmatter integration, and exporting to clipboard/file/GitHub/Obsidian.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
lowestprime
일일 설치 수
2
총 설치 수
10
평점
2 0 0
버전
4.1.0
생성일
2026-03-06
갱신일
2026-03-08
크기
92.5KB
호환성
Firefox와 호환됩니다. Chrome와 호환됩니다. Opera와 호환됩니다. Safari와 호환됩니다. Edge와 호환됩니다. Brave와 호환됩니다.
라이선스
MIT
적용 사이트
모든 사이트

Universal Markdown Exporter

Converts highlighted html elements from most web pages into clean Markdown, expressly integrating conversion and export support for ChatGPT Deep Research reports and similar elements across various web pages, including citation extraction with source URLs from sandboxed iframes and srcdoc-embedded report handling, featuring 6 citation styles, YAML frontmatter support, a visual element picker, live preview editor, and clipboard/file/GitHub/Obsidian export capability.

Background and Motivation

ChatGPT's Deep Research reports (as of ~March, 2026) are rendered inside sandboxed <iframe> elements on web-sandbox.oaiusercontent.com. Standard web clippers and HTML-to-Markdown tools cannot access these iframes, causing userscript malfunctions and empty or malformed outputs. Saved/exported ChatGPT pages embed the report as HTML-entity-encoded srcdoc attributes with multiple layers of encoding. Citation URLs are stored in React's internal fiber state, invisible in the static HTML. This script rectifys all three challenges, building upon the exceptional work of shiquda and ChinaGodMan's MarkDown Cloud Cut Notes.

Foundation

This tool is a direct fork of shiquda and ChinaGodMan's MarkDown Cloud Cut Notes (v2025.03.19), with additional inspiration drawn from Chris Kephart's exemplary ChatGPT Deep Research Markdown Exporter. The source code has been substantially refactored, introducing the following revisions:

  1. ChatGPT Deep Research iframe bridge — Uses postMessage to communicate with the sandboxed iframe, extracting the full report content including headings, paragraphs, tables, code blocks, and citations
  2. React fiber citation extraction — Traverses __reactFiber internal properties on <sup data-citation-index> elements to recover source URLs from props.item.reference.safe_urls
  3. srcdoc report parsing — Decodes nested HTML entity encoding in saved ChatGPT pages to extract deep research content from <iframe srcdoc="..."> attributes
  4. Custom HTML-to-Markdown converter — Purpose-built recursive DOM walker for the deep research report structure
  5. 6 citation styles — Parenthesized ([1](url)), inline [1](url), endnotes [1], footnotes [^1], named ([domain](url)), or none — with automatic deduplication
  6. YAML frontmatter — Optional metadata block with title, date, and source URL
  7. Enhanced Turndown rules — LaTeX/MathJax, KaTeX, <mark> highlights, <details> blocks, task list checkboxes, iframe skip
  8. Redesigned UI — Dark-theme preview modal with toolbar, live Markdown editor, synced scrolling
  9. Stripped to English only — Removed all non-English translations and metadata

Usage

  1. From target website — Press Ctrl+M (or use the Tampermonkey menu → "Convert to Markdown") to enter element selection mode. Use arrow keys or scroll wheel and cursor to navigate across elements, then click to convert the highlighted element of interest.
  2. ChatGPT Deep Research — Press R during selection mode, or use the Tampermonkey menu → "Export Deep Research" to auto-detect and extract the full report with citations.
  3. Saved ChatGPT HTML files — Open the saved .html file in your browser. The script detects srcdoc iframes and extracts the embedded report.

Export options

  • Copy to clipboard
  • Download as .md file
  • Send to GitHub Issues
  • Send to Obsidian via Advanced URI

Keyboard shortcuts

Key Action
Ctrl+M Start element selection
Arrow keys Navigate elements (parent/child/sibling)
Scroll wheel Expand/shrink selection
R Auto-export Deep Research content
Esc Cancel selection or close modal
Click Convert selected element to Markdown

Requirements

  • Tampermonkey or compatible userscript manager
  • Works on Chrome, Firefox, Edge, Opera, Safari, Brave