Skip to content

Commit

Permalink
Added Eddrit #938
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Aug 9, 2024
1 parent 76820c5 commit 64b765d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/")) {
Expand Down Expand Up @@ -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"],
Expand Down
10 changes: 8 additions & 2 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 64b765d

Please sign in to comment.