Copy as Markdown 专注于精准的局部内容复制,提供四大核心功能:
- 功能描述: 按住 Alt 键点击任意元素即可精确复制内容
- 快捷键:
Alt + Shift + E
- 使用场景: 精准复制表格、代码块、段落等结构化元素
- 特色: 智能元素识别,避免复制无关内容
- 功能描述: 划选任意文本内容快速转换为 Markdown 格式
- 快捷键:
Alt + Shift + C
- 使用场景: 快速复制文章段落、标题等文本内容
- 特色: 保持原有格式,智能转换链接和样式
- 功能描述: 右键菜单快速访问,丰富的快捷键支持
- 支持操作: 复制选中内容、复制页面元素
- 自定义: 可在 Chrome 扩展设置中自定义快捷键
- 便捷性: 多种操作方式,适应不同使用习惯
- 功能描述: 通过 Popup 面板管理和复制当前标签页信息
- 支持格式:
- Markdown 链接格式:
[页面标题](URL)
- 纯标题文本
- 纯 URL 链接
- 批量复制所有标签页
- Markdown 链接格式:
- 经典绿色: 传统的绿色选择高亮
- 优雅绿色: 现代化翠绿色,更柔和
- 专业蓝色: 与工具栏主题一致
- 温和橙色: 高可见性,不刺眼
- 现代紫色: 富有创新感
- 中性灰色: 最低调优雅
- 经典白色: 纯白背景,深灰文字
- 经典深色: 深灰背景,白色文字
- 🇨🇳 简体中文
- 🇺🇸 English
- 🔄 自动检测系统语言
- 访问 Chrome Web Store 「待发布到商店」
- 点击"添加至 Chrome"
- 确认安装权限
- 从 GitHub 下载最新版本的
.zip
文件 - 解压到本地文件夹
- 打开 Chrome 扩展管理页面 (
chrome://extensions/
) - 开启"开发者模式"
- 点击"加载已解压的扩展程序",选择解压后的文件夹
- 安装扩展后,访问任意网页
- 选取元素: 按住
Alt
键并点击页面元素,智能选择目标区域 - 选择文本: 划选文本后使用快捷键
Alt + Shift + C
- 右键菜单: 右键点击页面内容,选择相应的复制选项
- 标签页管理: 点击扩展图标,使用 Popup 面板管理标签页
- 智能元素识别: 自动识别最合适的复制范围
- 批量操作: 在 Popup 面板中批量复制所有标签页信息
- 格式定制: 在设置中选择不同的主题和配色方案
- 快捷键定制: 在 Chrome 扩展设置中自定义快捷键
- 框架: WXT - 现代 Web 扩展开发框架
- 前端: React 19 + TypeScript
- Markdown 转换: Turndown + turndown-plugin-gfm
- 构建工具: Vite
- 测试: Vitest
- UI 组件: 自定义 React 组件
扩展需要以下权限来正常工作:
- contextMenus: 添加右键菜单选项
- tabs: 读取标签页信息(标题、URL)
- storage: 保存用户偏好设置(主题、语言等)
- scripting: 在网页中注入内容脚本
- Chrome: 88+
- Edge: 88+
- 其他 Chromium 内核浏览器: 理论支持
# 安装依赖
pnpm install
# 开发模式(Chrome)
pnpm dev
# 开发模式(Firefox)
pnpm dev:firefox
# 构建生产版本
pnpm build
# 打包扩展
pnpm zip
# 运行测试
pnpm test
# 运行测试(UI 模式)
pnpm test:ui
# 生成覆盖率报告
pnpm test:coverage
- Fork 本仓库
- 创建功能分支 (
git checkout -b feature/amazing-feature
) - 提交更改 (
git commit -m 'feat: add amazing feature'
) - 推送分支 (
git push origin feature/amazing-feature
) - 创建 Pull Request
本项目基于 MIT 许可证开源 - 查看 LICENSE 文件了解详情。
Copy as Markdown focuses on precise local content copying with four core features:
- Description: Hold Alt key and click any element to precisely copy content
- Shortcut:
Alt + Shift + E
- Use Cases: Precisely copy tables, code blocks, paragraphs and other structured elements
- Features: Smart element recognition, avoid copying irrelevant content
- Description: Select any text content and quickly convert to Markdown format
- Shortcut:
Alt + Shift + C
- Use Cases: Quickly copy article paragraphs, headings and other text content
- Features: Preserve original formatting, smart conversion of links and styles
- Description: Quick access via right-click menu with rich shortcut support
- Supported Actions: Copy selected content, copy page elements
- Customization: Customize shortcuts in Chrome extension settings
- Convenience: Multiple operation methods, adapt to different usage habits
- Description: Manage and copy current tab information through Popup panel
- Supported Formats:
- Markdown link format:
[Page Title](URL)
- Plain title text
- Plain URL links
- Batch copy all tabs
- Markdown link format:
- Classic Green: Traditional green selection highlight
- Elegant Green: Modern emerald green, softer tone
- Professional Blue: Consistent with toolbar theme
- Warm Orange: High visibility, easy on eyes
- Modern Purple: Innovative and creative
- Neutral Gray: Most subtle and elegant
- Classic Light: Pure white background, dark gray text
- Classic Dark: Dark gray background, white text
- 🇨🇳 简体中文 (Simplified Chinese)
- 🇺🇸 English
- 🔄 Auto-detect system language
- Visit Chrome Web Store
- Click "Add to Chrome"
- Confirm installation permissions
- Visit Official Website
- Download latest version
- Follow installation guide
- Download the latest
.zip
file from GitHub - Extract to local folder
- Open Chrome extensions page (
chrome://extensions/
) - Enable "Developer mode"
- Click "Load unpacked" and select the extracted folder
- After installation, visit any webpage
- Pick Element: Hold
Alt
key and click page elements, smart selection of target area - Select Text: Select text and use shortcut
Alt + Shift + C
- Context Menu: Right-click page content and choose copy options
- Tab Management: Click extension icon to use Popup panel for tab management
- Smart Element Recognition: Automatically identify the most suitable copy range
- Batch Operations: Batch copy all tab information in Popup panel
- Format Customization: Choose different themes and color schemes in settings
- Shortcut Customization: Customize shortcuts in Chrome extension settings
- Framework: WXT - Modern web extension development framework
- Frontend: React 19 + TypeScript
- < 830E strong>Markdown Conversion: Turndown + turndown-plugin-gfm
- Build Tool: Vite
- Testing: Vitest
- UI Components: Custom React components
The extension requires the following permissions to function properly:
- contextMenus: Add right-click menu options
- tabs: Read tab information (title, URL)
- storage: Save user preferences (theme, language, etc.)
- scripting: Inject content scripts into webpages
- Chrome: 88+
- Edge: 88+
- Other Chromium-based browsers: Theoretical support
# Install dependencies
pnpm install
# Development mode (Chrome)
pnpm dev
# Development mode (Firefox)
pnpm dev:firefox
# Build production version
pnpm build
# Package extension
pnpm zip
# Run tests
pnpm test
# Run tests (UI mode)
pnpm test:ui
# Generate coverage report
pnpm test:coverage
- Fork this repository
- Create feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'feat: add amazing feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Create Pull Request
This project is open source under the MIT License - see the LICENSE file for details.
- WXT - Excellent web extension development framework
- Turndown - HTML to Markdown conversion library
- React - User interface building library