aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/assets/javascripts/services.js6
-rw-r--r--src/config.json8
2 files changed, 10 insertions, 4 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 34233453..8f10a3a9 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -230,10 +230,8 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
return `${randomInstance}/preview/external-pre${url.pathname}${url.search}`
case "i":
return `${randomInstance}/img${url.pathname}`
- default:
- return `${randomInstance}/comments${url.pathname}`
}
- return randomInstance
+ return `${randomInstance}/comments${url.pathname}`
}
case "teddit":
if (/^(?:(?:external-)?preview|i)\.redd\.it/.test(url.hostname)) {
@@ -241,6 +239,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
else return `${randomInstance}${url.pathname}${url.search}&teddit_proxy=${url.hostname}`
}
return `${randomInstance}${url.pathname}${url.search}`
+ case "troddit":
case "eddrit":
if (/^(?:(?:external-)?preview|i)\.redd\.it/.test(url.hostname)) return randomInstance
return `${randomInstance}${url.pathname}${url.search}`
@@ -853,6 +852,7 @@ const defaultInstances = {
proxiTok: ["https://proxitok.pabloferreiro.es"],
redlib: ["https://safereddit.com"],
eddrit: ["https://eddrit.com"],
+ troddit: ["https://www.troddit.com"],
scribe: ["https://scribe.rip"],
libMedium: ["https://md.vern.cc"],
quetre: ["https://quetre.iket.me"],
diff --git a/src/config.json b/src/config.json
index 55074df4..e49a044a 100644
--- a/src/config.json
+++ b/src/config.json
@@ -284,6 +284,12 @@
"instanceList": true,
"url": "https://github.com/corenting/eddrit",
"localhost": false
+ },
+ "troddit": {
+ "name": "Troddit",
+ "instanceList": false,
+ "url": "https://github.com/burhan-syed/troddit",
+ "localhost": false
}
},
"targets": [
@@ -1265,7 +1271,7 @@
},
"ultimateTab": {
"name": "Ultimate Tab",
- "instanceList": true,
+ "instanceList": false,
"url": "https://github.com/BenoitBellegarde/UltimateTab"
}
},