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}`
|
||||
}
|
||||
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"],
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue