This commit is contained in:
parent
76820c56e7
commit
64b765d775
|
@ -273,6 +273,9 @@ function rewrite(url, frontend, randomInstance) {
|
||||||
else return `${randomInstance}${url.pathname}${url.search}&teddit_proxy=${url.hostname}`
|
else return `${randomInstance}${url.pathname}${url.search}&teddit_proxy=${url.hostname}`
|
||||||
}
|
}
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
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": {
|
case "neuters": {
|
||||||
const p = url.pathname
|
const p = url.pathname
|
||||||
if (p.startsWith("/article/") || p.startsWith("/pf/") || p.startsWith("/arc/") || p.startsWith("/resizer/")) {
|
if (p.startsWith("/article/") || p.startsWith("/pf/") || p.startsWith("/arc/") || p.startsWith("/resizer/")) {
|
||||||
|
@ -746,6 +749,7 @@ const defaultInstances = {
|
||||||
redlib: ["https://safereddit.com"],
|
redlib: ["https://safereddit.com"],
|
||||||
libreddit: ["https://libreddit.spike.codes"],
|
libreddit: ["https://libreddit.spike.codes"],
|
||||||
teddit: ["https://teddit.net"],
|
teddit: ["https://teddit.net"],
|
||||||
|
eddrit: ["https://eddrit.com"],
|
||||||
scribe: ["https://scribe.rip"],
|
scribe: ["https://scribe.rip"],
|
||||||
libMedium: ["https://md.vern.cc"],
|
libMedium: ["https://md.vern.cc"],
|
||||||
quetre: ["https://quetre.iket.me"],
|
quetre: ["https://quetre.iket.me"],
|
||||||
|
|
|
@ -214,13 +214,19 @@
|
||||||
"name": "Redlib",
|
"name": "Redlib",
|
||||||
"instanceList": true,
|
"instanceList": true,
|
||||||
"url": "https://github.com/redlib-org/redlib",
|
"url": "https://github.com/redlib-org/redlib",
|
||||||
"localhost": true
|
"localhost": false
|
||||||
},
|
},
|
||||||
"teddit": {
|
"teddit": {
|
||||||
"name": "Teddit",
|
"name": "Teddit",
|
||||||
"instanceList": true,
|
"instanceList": true,
|
||||||
"url": "https://codeberg.org/teddit/teddit",
|
"url": "https://codeberg.org/teddit/teddit",
|
||||||
"localhost": true
|
"localhost": false
|
||||||
|
},
|
||||||
|
"eddrit": {
|
||||||
|
"name": "Eddrit",
|
||||||
|
"instanceList": true,
|
||||||
|
"url": "https://github.com/corenting/eddrit",
|
||||||
|
"localhost": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
|
|
Loading…
Reference in New Issue