diff --git a/templates/bilibili-video-clipper.json b/templates/bilibili-video-clipper.json new file mode 100644 index 0000000..a05d294 --- /dev/null +++ b/templates/bilibili-video-clipper.json @@ -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\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" + ] +} diff --git a/templates/chinese-news-article-clipper.json b/templates/chinese-news-article-clipper.json new file mode 100644 index 0000000..1bcfc33 --- /dev/null +++ b/templates/chinese-news-article-clipper.json @@ -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" + ] +} diff --git a/templates/wechat-article-clipper.json b/templates/wechat-article-clipper.json new file mode 100644 index 0000000..79d702a --- /dev/null +++ b/templates/wechat-article-clipper.json @@ -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" + ] +} diff --git a/templates/xiaohongshu-clipper.json b/templates/xiaohongshu-clipper.json new file mode 100644 index 0000000..1a687a8 --- /dev/null +++ b/templates/xiaohongshu-clipper.json @@ -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" + ] +} diff --git a/templates/zhihu-clipper.json b/templates/zhihu-clipper.json new file mode 100644 index 0000000..00c3633 --- /dev/null +++ b/templates/zhihu-clipper.json @@ -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" + ] +}