Removed LingvaTranslate
This commit is contained in:
parent
2e1de247ee
commit
98210bf264
|
@ -179,19 +179,6 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
.replace("text", "q")
|
.replace("text", "q")
|
||||||
return `${randomInstance}/${search}`
|
return `${randomInstance}/${search}`
|
||||||
}
|
}
|
||||||
case "lingva": {
|
|
||||||
let params_arr = url.search.split("&")
|
|
||||||
params_arr[0] = params_arr[0].substring(1)
|
|
||||||
let params = {}
|
|
||||||
for (let i = 0; i < params_arr.length; i++) {
|
|
||||||
let pair = params_arr[i].split("=")
|
|
||||||
params[pair[0]] = pair[1]
|
|
||||||
}
|
|
||||||
if (params.sl && params.tl && params.text) {
|
|
||||||
return `${randomInstance}/${params.sl}/${params.tl}/${params.text}`
|
|
||||||
}
|
|
||||||
return randomInstance
|
|
||||||
}
|
|
||||||
case "osm": {
|
case "osm": {
|
||||||
const dataLatLngRegex = /!3d(-?[0-9]{1,}.[0-9]{1,})!4d(-?[0-9]{1,}.[0-9]{1,})/
|
const dataLatLngRegex = /!3d(-?[0-9]{1,}.[0-9]{1,})!4d(-?[0-9]{1,}.[0-9]{1,})/
|
||||||
const placeRegex = /\/place\/(.*)\//
|
const placeRegex = /\/place\/(.*)\//
|
||||||
|
@ -659,7 +646,6 @@ const defaultInstances = {
|
||||||
'quetre': ['https://quetre.iket.me'],
|
'quetre': ['https://quetre.iket.me'],
|
||||||
'libremdb': ['https://libremdb.iket.me'],
|
'libremdb': ['https://libremdb.iket.me'],
|
||||||
'simplyTranslate': ['https://simplytranslate.org'],
|
'simplyTranslate': ['https://simplytranslate.org'],
|
||||||
'lingva': ['https://lingva.ml'],
|
|
||||||
'searxng': ['https://search.bus-hit.me'],
|
'searxng': ['https://search.bus-hit.me'],
|
||||||
'4get': ['https://4get.ca'],
|
'4get': ['https://4get.ca'],
|
||||||
'rimgo': ['https://rimgo.vern.cc'],
|
'rimgo': ['https://rimgo.vern.cc'],
|
||||||
|
|
|
@ -518,12 +518,6 @@
|
||||||
"url": "https://git.sr.ht/~metalune/simplytranslate_web",
|
"url": "https://git.sr.ht/~metalune/simplytranslate_web",
|
||||||
"localhost": true
|
"localhost": true
|
||||||
},
|
},
|
||||||
"lingva": {
|
|
||||||
"name": "Lingva Translate",
|
|
||||||
"instanceList": true,
|
|
||||||
"url": "https://github.com/TheDavidDelta/lingva-translate",
|
|
||||||
"localhost": true
|
|
||||||
},
|
|
||||||
"libreTranslate": {
|
"libreTranslate": {
|
||||||
"name": "LibreTranslate",
|
"name": "LibreTranslate",
|
||||||
"instanceList": true,
|
"instanceList": true,
|
||||||
|
|
Loading…
Reference in New Issue