Skip to content

Commit

Permalink
Added 4get #777
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Sep 7, 2023
1 parent d2cc8a1 commit 84c363d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ function redirect(url, type, initiator, forceRedirection) {
case "whoogle": {
return `${randomInstance}/search${url.search}`
}
case "4get": {
const s = url.searchParams.get("q")
if (s !== null) {
return `${randomInstance}/web?s=${encodeURIComponent(s)}`
}
return randomInstance
}
case "librex": {
return `${randomInstance}/search.php${url.search}`
}
Expand Down Expand Up @@ -693,6 +700,7 @@ const defaultInstances = {
'simplyTranslate': ['https://simplytranslate.org'],
'lingva': ['https://lingva.ml'],
'searxng': ['https://search.bus-hit.me'],
'4get': ['https://4get.ca'],
'rimgo': ['https://rimgo.vern.cc'],
'hyperpipe': ['https://hyperpipe.surge.sh'],
'facil': [' https://facilmap.org '],
Expand Down
5 changes: 5 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@
"name": "LibreX",
"instanceList": true,
"url": "https://github.com/hnhx/librex"
},
"4get": {
"name": "4get",
"instanceList": true,
"url": "https://git.lolcat.ca/lolcat/4get"
}
},
"targets": [
Expand Down

0 comments on commit 84c363d

Please sign in to comment.