Copy As Markdown

Drag-select partial content; Ctrl+C copies Markdown with list markers/headings; also shows a copy button.按 Ctrl+C 会将其以 Markdown 形式复制(包含列表标记/标题);同时还会显示一个复制按钮。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
baicai99
日安装量
0
总安装量
0
评分
0 0 0
版本
0.3.0
创建于
2025-12-22
更新于
2025-12-22
大小
13.7 KB
许可证
MIT
适用于
所有网站

Copy As Markdown 是一个油猴脚本:在网页中拖选任意一段内容后,你可以直接按 Ctrl+C 复制为 Markdown 纯文本。它会自动把网页里的 有序列表/无序列表转换为 1. / - 的 Markdown 列表格式,并识别 H1~H6 标题转换为 # ~ ######。同时,拖选后会在附近显示一个“复制Markdown”按钮,点击即可一键复制(适合不想用快捷键的场景)。脚本全程不依赖富文本粘贴,输出更适合粘贴到 Markdown 编辑器、代码仓库、笔记工具等。

Copy As Markdown is a userscript for Tampermonkey: after you drag-select any portion of a webpage, you can press Ctrl+C to copy it as plain Markdown text. It automatically converts ordered/unordered lists into Markdown list markers (1. / -) and turns H1–H6 headings into #######. It also shows a nearby “Copy Markdown” button after selection, so you can copy with one click if you prefer not to use shortcuts. The script avoids rich-text output, making it ideal for pasting into Markdown editors, code repositories, and note-taking tools.