Like 0
obsidian-web-clipper-reddit.json Raw
1{
2 "schemaVersion": "0.1.0",
3 "name": "Reddit Post",
4 "behavior": "create",
5 "noteContentFormat": "> Posted in **{{selector:shreddit-post?subreddit-prefixed-name}}** by *{{selector:shreddit-post?author}}* at {{selector:shreddit-post?created-timestamp|date:\"YYYY-MM-DDTHH:mm:ssZ\"}} (⬆️ {{selector:shreddit-post?score}})\n\n\n# {{selector:shreddit-post?post-title|trim}}\n\n{{selectorHtml:shreddit-post > div[class=\"text-neutral-content\"]|markdown}}\n\n{{selector:zoomable-img > img?src|image}}\n\n{{content}}",
6 "properties": [
7 {
8 "name": "source",
9 "value": "{{url}}",
10 "type": "text"
11 },
12 {
13 "name": "title",
14 "value": "{{selector:shreddit-post?post-title|trim}}",
15 "type": "text"
16 },
17 {
18 "name": "subreddit",
19 "value": "{{selector:shreddit-post?subreddit-prefixed-name}}",
20 "type": "text"
21 },
22 {
23 "name": "tags",
24 "value": "clippings, reddit",
25 "type": "multitext"
26 },
27 {
28 "name": "date published",
29 "value": "{{selector:shreddit-post?created-timestamp|date:\\\"YYYY-MM-DDTHH:mm:ssZ\\\"}}",
30 "type": "date"
31 },
32 {
33 "name": "date saved",
34 "value": "{{time|date:\\\"YYYY-MM-DDTHH:mm:ssZ\\\"}}",
35 "type": "date"
36 },
37 {
38 "name": "type",
39 "value": "clipping",
40 "type": "text"
41 }
42 ],
43 "triggers": [
44 "/^https:\\/\\/www.reddit.com\\/r\\/\\w+\\/comments/"
45 ],
46 "noteNameFormat": "{{selector:shreddit-post?post-title|trim|safe_name}}",
47 "path": "Collections/Clippings"
48}