aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/assets/javascripts/services.js8
-rw-r--r--src/config.json5
2 files changed, 13 insertions, 0 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index e096ef99..b30e496a 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -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}`
}
@@ -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 '],
diff --git a/src/config.json b/src/config.json
index a20b98b7..6f864112 100644
--- a/src/config.json
+++ b/src/config.json
@@ -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": [