From bbabe1dd4c331a6ede934bf9571574db093bfdea Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 23 Apr 2022 16:16:20 +0300 Subject: [PATCH] Changed to SearXNG as default #215 --- src/assets/javascripts/helpers/search.js | 2 +- src/assets/javascripts/helpers/twitter.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/assets/javascripts/helpers/search.js b/src/assets/javascripts/helpers/search.js index c6f1500..ab8c0f2 100644 --- a/src/assets/javascripts/helpers/search.js +++ b/src/assets/javascripts/helpers/search.js @@ -552,7 +552,7 @@ async function init() { protocol = r.searchProtocol ?? 'normal'; - frontend = r.searchFrontend ?? 'searx'; + frontend = r.searchFrontend ?? 'searxng'; theme = r.theme ?? 'DEFAULT'; applyThemeToSites = r.applyThemeToSites ?? false; diff --git a/src/assets/javascripts/helpers/twitter.js b/src/assets/javascripts/helpers/twitter.js index ddcfe19..da33f09 100644 --- a/src/assets/javascripts/helpers/twitter.js +++ b/src/assets/javascripts/helpers/twitter.js @@ -211,7 +211,6 @@ function redirect(url, initiator) { // https://pbs.twimg.com/profile_images/648888480974508032/66_cUYfj_400x400.jpg if (url.host.split(".")[0] === "pbs" || url.host.split(".")[0] === "video") return `${randomInstance}/pic/${encodeURIComponent(url.href)}`; - else if (url.pathname.split("/").includes("tweets")) return `${randomInstance}${url.pathname.replace("/tweets", "")}${url.search}`; else if (url.host == 't.co')