Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions templates/bilibili-video-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"schemaVersion": "0.1.0",
"name": "Bilibili Video (B站视频)",
"behavior": "create",
"noteNameFormat": "{{date|date:\"YYYY-MM-DD\"}} {{title|replace:\"_哔哩哔哩_bilibili\":\"\"|safe_name}}",
"path": "Clippings/Videos",
"noteContentFormat": "## {{title|replace:\"_哔哩哔哩_bilibili\":\"\"}}\n\n<iframe src=\"https://player.bilibili.com/player.html?bvid={{url|replace:\"https://www.bilibili.com/video/\":\"\"|split:\"/\"|first|split:\"?\"|first}}&high_quality=1&quality=80&autoplay=0\" width=\"100%\" height=\"500\" frameborder=\"0\" allowfullscreen></iframe>\n\n> Channel: {{meta:name:author}} | Saved: {{date|date:\"YYYY-MM-DD\"}} | [Open on Bilibili]({{url}})\n\n---\n\n## Notes\n\n{{selection}}\n\n{{highlights}}",
"properties": [
{ "name": "title", "value": "{{title|replace:\"_哔哩哔哩_bilibili\":\"\"}}", "type": "text" },
{ "name": "source", "value": "{{url}}", "type": "text" },
{ "name": "channel", "value": "{{meta:name:author}}", "type": "text" },
{ "name": "saved", "value": "{{date}}", "type": "date" },
{ "name": "type", "value": "video", "type": "text" },
{ "name": "tags", "value": "video, bilibili", "type": "multitext" }
],
"triggers": [
"*.bilibili.com"
]
}
30 changes: 30 additions & 0 deletions templates/chinese-news-article-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"schemaVersion": "0.1.0",
"name": "Chinese News & Tech Articles (中文资讯)",
"behavior": "create",
"noteNameFormat": "{{date|date:\"YYYY-MM-DD\"}} {{title|safe_name}}",
"path": "Clippings",
"noteContentFormat": "## {{title}}\n\n> Author: {{author}} | Source: [{{site}}]({{url}}) | {{published|date:\"YYYY-MM-DD\"}}\n\n{{content}}\n\n---\n\n## Highlights\n\n{{selection}}\n\n{{highlights}}",
"properties": [
{ "name": "title", "value": "{{title}}", "type": "text" },
{ "name": "source", "value": "{{url}}", "type": "text" },
{ "name": "author", "value": "{{author}}", "type": "text" },
{ "name": "published", "value": "{{published|date:\"YYYY-MM-DD\"}}", "type": "date" },
{ "name": "saved", "value": "{{date}}", "type": "date" },
{ "name": "type", "value": "article", "type": "text" },
{ "name": "tags", "value": "clipping", "type": "multitext" }
],
"triggers": [
"*.wsj.com",
"cn.wsj.com",
"caixin.com",
"*.sspai.com",
"36kr.com",
"huxiu.com",
"ifanr.com",
"*.lifeweek.com.cn",
"*.v2ex.com",
"okjike.com",
"*.jike.com"
]
}
19 changes: 19 additions & 0 deletions templates/wechat-article-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"schemaVersion": "0.1.0",
"name": "WeChat Article (微信公众号)",
"behavior": "create",
"noteNameFormat": "{{date|date:\"YYYY-MM-DD\"}} {{title|safe_name}}",
"path": "Clippings",
"noteContentFormat": "## {{title}}\n\n> Author: {{meta:property:og:article:author}} | Source: [WeChat]({{url}})\n\n{{selectorHtml:#js_content|markdown}}\n\n---\n\n## Highlights\n\n{{selection}}\n\n{{highlights}}",
"properties": [
{ "name": "title", "value": "{{title}}", "type": "text" },
{ "name": "source", "value": "{{url}}", "type": "text" },
{ "name": "author", "value": "{{meta:property:og:article:author}}", "type": "text" },
{ "name": "saved", "value": "{{date}}", "type": "date" },
{ "name": "type", "value": "article", "type": "text" },
{ "name": "tags", "value": "clipping, wechat", "type": "multitext" }
],
"triggers": [
"mp.weixin.qq.com"
]
}
20 changes: 20 additions & 0 deletions templates/xiaohongshu-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"schemaVersion": "0.1.0",
"name": "Xiaohongshu / RedNote (小红书)",
"behavior": "create",
"noteNameFormat": "{{date|date:\"YYYY-MM-DD\"}} {{title|safe_name}}",
"path": "Clippings",
"noteContentFormat": "## {{title}}\n\n> Author: {{author}} | Source: [Xiaohongshu]({{url}})\n\n### Images\n\n![]({{selector:.swiper-slide:not(.swiper-slide-duplicate) img?src|unique|join:\")\n\n![](\"}})\n\n### Content\n\n{{selectorHtml:#detail-desc|markdown}}\n\n---\n\n> [View original]({{url}})\n\n---\n\n## Highlights\n\n{{selection}}\n\n{{highlights}}",
"properties": [
{ "name": "title", "value": "{{title}}", "type": "text" },
{ "name": "source", "value": "{{url}}", "type": "text" },
{ "name": "author", "value": "{{author}}", "type": "text" },
{ "name": "saved", "value": "{{date}}", "type": "date" },
{ "name": "type", "value": "note", "type": "text" },
{ "name": "tags", "value": "clipping, xiaohongshu", "type": "multitext" }
],
"triggers": [
"www.xiaohongshu.com",
"xhslink.com"
]
}
20 changes: 20 additions & 0 deletions templates/zhihu-clipper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"schemaVersion": "0.1.0",
"name": "Zhihu (知乎)",
"behavior": "create",
"noteNameFormat": "{{date|date:\"YYYY-MM-DD\"}} {{title|safe_name}}",
"path": "Clippings",
"noteContentFormat": "## {{title}}\n\n> Author: {{author}} | Source: [Zhihu]({{url}})\n\n{{selectorHtml:.RichText|markdown}}\n\n---\n\n## Highlights\n\n{{selection}}\n\n{{highlights}}",
"properties": [
{ "name": "title", "value": "{{title}}", "type": "text" },
{ "name": "source", "value": "{{url}}", "type": "text" },
{ "name": "author", "value": "{{author}}", "type": "text" },
{ "name": "saved", "value": "{{date}}", "type": "date" },
{ "name": "type", "value": "article", "type": "text" },
{ "name": "tags", "value": "clipping, zhihu", "type": "multitext" }
],
"triggers": [
"www.zhihu.com/question",
"zhuanlan.zhihu.com"
]
}