about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBobIsMyManager <bimmgitsignature.nly8m@simplelogin.co>2022-08-02 23:10:45 +0100
committerBobIsMyManager <bimmgitsignature.nly8m@simplelogin.co>2022-08-02 23:10:45 +0100
commit77b1f094b05a7efc6e5a7a743125ce63ada3da0b (patch)
tree81561dc590df196b373c3b9dab72a7c6f63b92ba
parentMerge pull request 'Latency threshold and offline instances' (https://codeber... (diff)
downloadlibredirect-77b1f094b05a7efc6e5a7a743125ce63ada3da0b.zip
Push part of config draft
I had more exiting stuff like ejs, but I accidentially deleted the files D:
-rw-r--r--src/config/config.json98
1 files changed, 98 insertions, 0 deletions
diff --git a/src/config/config.json b/src/config/config.json
new file mode 100644
index 00000000..d918a0ad
--- /dev/null
+++ b/src/config/config.json
@@ -0,0 +1,98 @@
+{
+	"networks": {
+		"normal": {
+			"url": "org",
+			"name": "Clearnet"
+		},
+		"tor": {
+			"url": "onion",
+			"name": "Tor"
+		},
+		"i2p": {
+			"url": "i2p",
+			"name": "I2P"
+		},
+		"loki": {
+			"url": "loki",
+			"name": "Lokinet"
+		}
+	},
+	"services": {
+		"youtube": {
+			"frontends": {
+				"invidious": {
+					"preferences": {
+						"method": "cookies",
+						"cookies": ["PREFS"]
+					}
+				},
+				"piped": {
+					"preferences": {
+						"method": "localstorage",
+						"localstorage": [
+							"bufferGoal",
+							"comments",
+							"disableLBRY",
+							"enabledCodecs",
+							"hl",
+							"homepage",
+							"instance",
+							"listen",
+							"minimizeDescription",
+							"playerAutoPlay",
+							"proxyLBRY",
+							"quality",
+							"region",
+							"selectedSkip",
+							"sponsorblock",
+							"theme",
+							"volume",
+							"watchHistory"
+						]
+					}
+				},
+				"pipedMaterial": {
+					"preferences": {
+						"method": "localstorage",
+						"localstorage": ["PREFERENCES"]
+					}
+				},
+				"cloudtube": {
+					"preferences": {
+						"method": "token",
+						"token": "token",
+						"fetchEndpoint": "/api/settings",
+						"setEndpoint": "/settings"
+					}
+				}
+			},
+			"singleInstanceFrontends": {
+				"freetube": {},
+				"yatte": {}
+			},
+			"targets": [
+				"/^https?:\\/{2}(www.|music.|m.|)youtube.com(\\/.*|$)/",
+				"/^https?:\\/{2}img.youtube.com\\/vi\\/.*\\/..*/",
+				"/^https?:\\/{2}(i|s).ytimg.com\\/vi\\/.*\\/..*/",
+				"/^https?:\\/{2}(www.|music.|)youtube.com\\/watch?v=..*/",
+				"/^https?:\\/{2}youtu.be\\/..*/",
+				"/^https?:\\/{2}(www.|)(youtube|youtube-nocookie).com\\/embed\\/..*/"
+			],
+			"name": "Youtube",
+			"defaults": {
+				"disableYoutube": false,
+				"enableYoutubeCustomSettings": false,
+				"onlyEmbeddedVideo": "both",
+				"youtubeFrontend": "invidious",
+				"youtubeEmbedFrontend": "invidious"
+			},
+			"youtubeMusic": {
+				"frontends": {
+					"beatbump": {},
+					"hyperpipe": {}
+				},
+			"targets": ["^https?:\\/{2}music\.youtube\.com(\\/.*|$)"]
+			}
+		}
+	}
+}