ManeraKai 2024-08-09 22:24:03 +03:00
parent 76820c56e7
commit 64b765d775
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 12 additions and 2 deletions

View File

@ -273,6 +273,9 @@ function rewrite(url, frontend, randomInstance) {
else return `${randomInstance}${url.pathname}${url.search}&teddit_proxy=${url.hostname}`
}
return `${randomInstance}${url.pathname}${url.search}`
case "eddrit":
if (/^(?:(?:external-)?preview|i)\.redd\.it/.test(url.hostname)) return randomInstance
return `${randomInstance}${url.pathname}${url.search}`
case "neuters": {
const p = url.pathname
if (p.startsWith("/article/") || p.startsWith("/pf/") || p.startsWith("/arc/") || p.startsWith("/resizer/")) {
@ -746,6 +749,7 @@ const defaultInstances = {
redlib: ["https://safereddit.com"],
libreddit: ["https://libreddit.spike.codes"],
teddit: ["https://teddit.net"],
eddrit: ["https://eddrit.com"],
scribe: ["https://scribe.rip"],
libMedium: ["https://md.vern.cc"],
quetre: ["https://quetre.iket.me"],

View File

@ -214,13 +214,19 @@
"name": "Redlib",
"instanceList": true,
"url": "https://github.com/redlib-org/redlib",
"localhost": true
"localhost": false
},
"teddit": {
"name": "Teddit",
"instanceList": true,
"url": "https://codeberg.org/teddit/teddit",
"localhost": true
"localhost": false
},
"eddrit": {
"name": "Eddrit",
"instanceList": true,
"url": "https://github.com/corenting/eddrit",
"localhost": false
}
},
"targets": [