dots


commit
21ef2d4
parent
9e3a914
author
xxwhirlpool
date
2026-04-09 11:53:20 -0400 EDT
obsidian clipper templates
4 files changed,  +187, -0
A misc/obsidian/clipper/templates/imdb-clipper.json
+58, -0
 1@@ -0,0 +1,58 @@
 2+{
 3+	"schemaVersion": "0.1.0",
 4+	"name": "IMDB",
 5+	"behavior": "create",
 6+	"noteContentFormat": "{{schema:description}}",
 7+	"properties": [
 8+		{
 9+			"name": "genre",
10+			"value": "{{schema:genre|join}}",
11+			"type": "multitext"
12+		},
13+		{
14+			"name": "director",
15+			"value": "{{selector:[data-testid=\\\"title-pc-principal-credit\\\"]:first-child a|unique|join}}",
16+			"type": "multitext"
17+		},
18+		{
19+			"name": "scoreImdb",
20+			"value": "{{schema:aggregateRating.ratingValue}}",
21+			"type": "number"
22+		},
23+		{
24+			"name": "cover",
25+			"value": "{{schema:image}}",
26+			"type": "text"
27+		},
28+		{
29+			"name": "cast",
30+			"value": "{{selector:[data-testid=\\\"title-pc-principal-credit\\\"]:nth-child(3) div a|unique|join}}",
31+			"type": "multitext"
32+		},
33+		{
34+			"name": "plot",
35+			"value": "{{schema:description}}",
36+			"type": "text"
37+		},
38+		{
39+			"name": "year",
40+			"value": "{{schema:datePublished|split:\\\"-\\\"|slice:0,1}}",
41+			"type": "number"
42+		},
43+		{
44+			"name": "created",
45+			"value": "{{date}}",
46+			"type": "date"
47+		},
48+		{
49+			"name": "tags",
50+			"value": "clippings-movies",
51+			"type": "multitext"
52+		}
53+	],
54+	"triggers": [
55+		"/^https:\\/\\/www\\.imdb\\.com\\/title\\/tt\\d+(?!\\/reference\\/)(\\/[^\\s]*)?$/"
56+	],
57+	"noteNameFormat": "{{schema:name}} ({{schema:datePublished|split:\"-\"|slice:0,1}})",
58+	"path": "clippings/movies"
59+}
A misc/obsidian/clipper/templates/letterboxd-clipper.json
+53, -0
 1@@ -0,0 +1,53 @@
 2+{
 3+	"schemaVersion": "0.1.0",
 4+	"name": "Letterboxd",
 5+	"behavior": "create",
 6+	"noteContentFormat": "{{description}}",
 7+	"properties": [
 8+		{
 9+			"name": "genre",
10+			"value": "{{schema:genre|join}}",
11+			"type": "multitext"
12+		},
13+		{
14+			"name": "director",
15+			"value": "{{schema:director[*].name|join}}",
16+			"type": "multitext"
17+		},
18+		{
19+			"name": "cast",
20+			"value": "{{schema:actors[*].name|slice:0,5|join}}",
21+			"type": "multitext"
22+		},
23+		{
24+			"name": "cover",
25+			"value": "{{schema:image}}",
26+			"type": "text"
27+		},
28+		{
29+			"name": "plot",
30+			"value": "{{description}}",
31+			"type": "text"
32+		},
33+		{
34+			"name": "created",
35+			"value": "{{date}}",
36+			"type": "date"
37+		},
38+		{
39+			"name": "year",
40+			"value": "{{schema:releasedEvent[*].startDate|date:\\\"YYYY\\\"}}",
41+			"type": "number"
42+		},
43+		{
44+			"name": "tags",
45+			"value": "clippings-movies",
46+			"type": "multitext"
47+		}
48+	],
49+	"triggers": [
50+		"https://letterboxd.com/film/"
51+	],
52+	"noteNameFormat": "{{schema:@Movie:name}} ({{schema:releasedEvent[*].startDate|date:\"YYYY\"}})",
53+	"path": "clippings/movies"
54+}
A misc/obsidian/clipper/templates/recipes-clipper.json
+43, -0
 1@@ -0,0 +1,43 @@
 2+{
 3+	"schemaVersion": "0.1.0",
 4+	"name": "Recipes",
 5+	"behavior": "create",
 6+	"noteContentFormat": "{{description}}\n\n## Ingredients\n\n{{schema:recipeIngredient|list:task}}\n\n## Instructions\n\n{{schema:recipeInstructions[*].text|list:task}}\n\n## Nutrition\n\n{{schema:@Recipe:nutrition|uncamel|capitalize|table|replace:(\"@type\":\"Nutrient\",\"Nutrition information\":\"Quantity\")}}",
 7+	"properties": [
 8+		{
 9+			"name": "title",
10+			"value": "{{title}}",
11+			"type": "text"
12+		},
13+		{
14+			"name": "image",
15+			"value": "{{image}}",
16+			"type": "text"
17+		},
18+		{
19+			"name": "cuisine",
20+			"value": "{{schema:recipeCuisine}}",
21+			"type": "multitext"
22+		},
23+		{
24+			"name": "url",
25+			"value": "{{url}}",
26+			"type": "multitext"
27+		},
28+		{
29+			"name": "created",
30+			"value": "{{date}}",
31+			"type": "date"
32+		},
33+		{
34+			"name": "tags",
35+			"value": "clippings-recipes",
36+			"type": "multitext"
37+		}
38+	],
39+	"triggers": [
40+		"schema:@Recipe"
41+	],
42+	"noteNameFormat": "{{title}}",
43+	"path": "clippings/recipes"
44+}
A misc/obsidian/clipper/templates/wikipedia-clipper.json
+33, -0
 1@@ -0,0 +1,33 @@
 2+{
 3+	"schemaVersion": "0.1.0",
 4+	"name": "Wikipedia",
 5+	"behavior": "create",
 6+	"noteContentFormat": "{{selectorHtml:#mw-content-text|remove_html:(\".navbox,.printfooter,.side-box,.infobox-image,.mw-editsection\")|markdown}}",
 7+	"properties": [
 8+		{
 9+			"name": "url",
10+			"value": "{{url}}",
11+			"type": "multitext"
12+		},
13+		{
14+			"name": "title",
15+			"value": "{{title}}",
16+			"type": "text"
17+		},
18+		{
19+			"name": "tags",
20+			"value": "clippings-wikipedia",
21+			"type": "multitext"
22+		},
23+		{
24+			"name": "created",
25+			"value": "{{date|date:\\\"YYYY-MM-DD\\\"}}",
26+			"type": "date"
27+		}
28+	],
29+	"triggers": [
30+		"https://en.wikipedia.org"
31+	],
32+	"noteNameFormat": "{{title}}",
33+	"path": "clippings/wikipedia"
34+}