This commit is contained in:
parent
fc6218c84d
commit
9cf2b97784
|
@ -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'],
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue