feat: add smart element selection mode with shortcut support
- Added background script for handling global shortcuts (Alt+Shift+X) - Implemented element highlighting and click-to-extract in content script - Updated manifest to include background worker and commands - Updated documentation with new feature usage - Added GEMINI.md project context
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
## 功能特性
|
||||
|
||||
- 🎯 **区域框选提取** - 拖拽鼠标框选想要提取的区域
|
||||
- 🔍 **元素智能识别** - 快捷键激活,自动识别并高亮网页元素,点击即可提取
|
||||
- 📄 **整页提取** - 一键提取整个页面内容
|
||||
- 📝 **多种输出格式** - 支持 Markdown、JSON、XML
|
||||
- 📋 **自动复制** - 提取后自动复制到剪贴板
|
||||
@@ -35,9 +36,15 @@
|
||||
4. 如果是框选模式,拖拽鼠标选择区域
|
||||
5. 提取完成后内容自动复制到剪贴板
|
||||
|
||||
**智能元素提取模式:**
|
||||
1. 按下快捷键(默认 `Alt+Shift+X` / Mac: `Option+Shift+X`)
|
||||
2. 移动鼠标,扩展会自动高亮当前的 HTML 元素
|
||||
3. 点击高亮的元素即可提取该区域内容
|
||||
|
||||
## 快捷操作
|
||||
|
||||
- **ESC** - 取消框选模式
|
||||
- **Alt+Shift+X** (Mac: **Option+Shift+X**) - 开启/关闭元素智能识别模式
|
||||
- **ESC** - 取消选择模式
|
||||
|
||||
## 输出示例
|
||||
|
||||
|
||||
Reference in New Issue
Block a user