Added Intellectual https://github.com/libredirect/browser_extension/issues/699
This commit is contained in:
parent
d813226928
commit
a45e9ed228
|
@ -433,6 +433,13 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
if (url.pathname.endsWith('-lyrics')) {
|
if (url.pathname.endsWith('-lyrics')) {
|
||||||
return `${randomInstance}${url.pathname}`
|
return `${randomInstance}${url.pathname}`
|
||||||
}
|
}
|
||||||
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
|
}
|
||||||
|
case "intellectual": {
|
||||||
|
if (url.pathname.endsWith('-lyrics')) {
|
||||||
|
return `${randomInstance}/lyrics?path=${encodeURIComponent(url.pathname)}`
|
||||||
|
}
|
||||||
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
case "ruralDictionary": {
|
case "ruralDictionary": {
|
||||||
if (!url.pathname.includes('/define.php') && !url.pathname.includes('/random.php') && url.pathname != '/') return randomInstance
|
if (!url.pathname.includes('/define.php') && !url.pathname.includes('/random.php') && url.pathname != '/') return randomInstance
|
||||||
|
@ -664,6 +671,7 @@ const defaultInstances = {
|
||||||
'breezeWiki': ['https://breezewiki.com'],
|
'breezeWiki': ['https://breezewiki.com'],
|
||||||
'neuters': ['https://neuters.de'],
|
'neuters': ['https://neuters.de'],
|
||||||
'dumb': ['https://dm.vern.cc'],
|
'dumb': ['https://dm.vern.cc'],
|
||||||
|
"intellectual": ['https://intellectual.insprill.net'],
|
||||||
'ruralDictionary': ['https://rd.vern.cc'],
|
'ruralDictionary': ['https://rd.vern.cc'],
|
||||||
'anonymousOverflow': ['https://code.whatever.social'],
|
'anonymousOverflow': ['https://code.whatever.social'],
|
||||||
'biblioReads': ['https://biblioreads.ml'],
|
'biblioReads': ['https://biblioreads.ml'],
|
||||||
|
|
|
@ -567,6 +567,12 @@
|
||||||
"instanceList": true,
|
"instanceList": true,
|
||||||
"url": "https://github.com/rramiachraf/dumb",
|
"url": "https://github.com/rramiachraf/dumb",
|
||||||
"localhost": true
|
"localhost": true
|
||||||
|
},
|
||||||
|
"intellectual": {
|
||||||
|
"name": "Intellectual",
|
||||||
|
"instanceList": true,
|
||||||
|
"url": "https://github.com/Insprill/intellectual",
|
||||||
|
"localhost": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
|
|
Loading…
Reference in New Issue