ManeraKai 2024-01-31 19:10:52 +03:00
parent fc6218c84d
commit 9cf2b97784
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 8 additions and 0 deletions

View File

@ -328,6 +328,7 @@ function redirect(url, type, initiator, forceRedirection, incognito) {
}
return `${randomInstance}${url.pathname}${url.search}`
}
case "redlib":
case "libreddit": {
const subdomain = url.hostname.match(/^(?:(?:external-)?preview|i)(?=\.redd\.it)/)
if (!subdomain) return `${randomInstance}${url.pathname}${url.search}`
@ -709,6 +710,7 @@ const defaultInstances = {
'poketube': ['https://poketube.fun'],
'proxiTok': ['https://proxitok.pabloferreiro.es'],
'nitter': ['https://nitter.net'],
'redlib': ['https://safereddit.com'],
'libreddit': ['https://libreddit.spike.codes'],
'teddit': ['https://teddit.net'],
'scribe': ['https://scribe.rip'],

View File

@ -213,6 +213,12 @@
"url": "https://github.com/spikecodes/libreddit",
"localhost": true
},
"redlib": {
"name": "Redlib",
"instanceList": true,
"url": "https://github.com/redlib-org/redlib",
"localhost": true
},
"teddit": {
"name": "Teddit",
"instanceList": true,