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

View File

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