xuxiaominger202428 downloadsPaste web highlights into beautiful info cards — 一键粘贴网页高亮为精美信息卡片
Slay the Highlight Game | 绝绝子的摘抄神器
咱就是说,每次从网页复制高亮文本到 Obsidian,格式乱成一锅粥,属于是芭比Q了无语子!
Web Card 一整个爱住——复制网页高亮 → Ctrl/Cmd+Shift+V → 精美卡片自动插入,遥遥领先!
| 操作 | 效果 | 属于是 |
|---|---|---|
| 浏览器复制高亮 → Obsidian 粘贴 | 自动识别来源网址 | 破防级别的智能 |
| 选中文本 → 命令面板 | 直接生成信息卡片 | 绝绝子丝滑 |
| 三种卡片格式随意切换 | Callout / 代码块 / 嵌入式 | 选择困难症的福音 |
main.js、manifest.json、styles.css → 扔进 .obsidian/plugins/web-card/Ctrl+C 高亮文本 → Obsidian 里 Ctrl/Cmd+Shift+V → 弹出编辑框 → 点击 ✅ 插入卡片Cmd+P → 搜索 "Selection to Web Card" → 填写来源网址 → 确认Ctrl/Cmd + Shift + V 粘贴为卡片 | Ctrl/Cmd + Enter 快速确认在 Obsidian 设置 → Web Card 里可以:
> [!quote] 来源网站名
> 你复制的高亮文本内容在这里
> 整段都会显示在卡片上方
>
> — *来源:[网页标题](https://example.com)* · 2025-07-22
fr fr, copying web highlights into Obsidian was giving main character trying to format stuff manually energy — that's a massive L.
Web Card out here catching W's left and right. Copy a highlight from your browser → hit Ctrl/Cmd+Shift+V in Obsidian → bam, a slay card appears with the full text AND the source URL auto-detected. No cap, it's giving GOAT behavior.
| Move | Result | Based? |
|---|---|---|
| Copy highlight from browser → Paste in Obsidian | Auto-detects source URL | Absolutely based |
| Select text in editor → Run command | Generates card on the spot | Bussin' fr fr |
| Switch between 3 card formats | Callout / Code Block / Embed | Choice is yours, king |
main.js, manifest.json, styles.css from GitHub Releases → drop into .obsidian/plugins/web-card/Ctrl+C highlight on web page → Ctrl/Cmd+Shift+V in Obsidian → edit dialog pops up → Click ✅ Insert CardCmd+P → search "Selection to Web Card" → paste source URL → confirmCtrl/Cmd + Shift + V paste as card | Ctrl/Cmd + Enter quick confirmIn Obsidian Settings → Web Card you can:
| Field | Value |
|---|---|
| Plugin ID | web-card |
| Min Obsidian Version | 0.15.0 |
| Desktop Only | ❌ No (mobile compatible) |
| Browser Support | ✅ Chrome/Edge/Firefox/Safari |
| Built With | TypeScript + esbuild |
The plugin auto-extracts the source URL from clipboard HTML data (Chrome/Edge: SourceURL in HTML, Firefox: text/uri-list, Safari: plain text regex fallback).
git clone https://github.com/xuxiaominger/obsidian-web-card.git
cd obsidian-web-card
npm install
npm run build # builds main.js
npm run dev # watch mode
obsidian-web-card/
├── manifest.json # Plugin metadata
├── main.js # Compiled plugin (built output)
├── main.ts # TypeScript source
├── styles.css # Card styling
├── versions.json # Version compatibility
MIT — do whatever, just give credit. No cap.
Made with 💜 and way too much internet slang by Hermes 精神稳定出品 · 家人们冲就完了