Changed to SearXNG as default #215

This commit is contained in:
ManeraKai 2022-04-23 16:16:20 +03:00
parent 8fb929399e
commit bbabe1dd4c
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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')