This commit is contained in:
ManeraKai 2023-05-30 13:22:40 +03:00
parent d813226928
commit a45e9ed228
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 14 additions and 0 deletions

View File

@ -433,6 +433,13 @@ function redirect(url, type, initiator, forceRedirection) {
if (url.pathname.endsWith('-lyrics')) {
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": {
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'],
'neuters': ['https://neuters.de'],
'dumb': ['https://dm.vern.cc'],
"intellectual": ['https://intellectual.insprill.net'],
'ruralDictionary': ['https://rd.vern.cc'],
'anonymousOverflow': ['https://code.whatever.social'],
'biblioReads': ['https://biblioreads.ml'],

View File

@ -567,6 +567,12 @@
"instanceList": true,
"url": "https://github.com/rramiachraf/dumb",
"localhost": true
},
"intellectual": {
"name": "Intellectual",
"instanceList": true,
"url": "https://github.com/Insprill/intellectual",
"localhost": false
}
},
"targets": [