Changed to SearXNG as default #215
This commit is contained in:
parent
8fb929399e
commit
bbabe1dd4c
|
@ -552,7 +552,7 @@ async function init() {
|
||||||
|
|
||||||
protocol = r.searchProtocol ?? 'normal';
|
protocol = r.searchProtocol ?? 'normal';
|
||||||
|
|
||||||
frontend = r.searchFrontend ?? 'searx';
|
frontend = r.searchFrontend ?? 'searxng';
|
||||||
|
|
||||||
theme = r.theme ?? 'DEFAULT';
|
theme = r.theme ?? 'DEFAULT';
|
||||||
applyThemeToSites = r.applyThemeToSites ?? false;
|
applyThemeToSites = r.applyThemeToSites ?? false;
|
||||||
|
|
|
@ -211,7 +211,6 @@ function redirect(url, initiator) {
|
||||||
// https://pbs.twimg.com/profile_images/648888480974508032/66_cUYfj_400x400.jpg
|
// https://pbs.twimg.com/profile_images/648888480974508032/66_cUYfj_400x400.jpg
|
||||||
if (url.host.split(".")[0] === "pbs" || url.host.split(".")[0] === "video")
|
if (url.host.split(".")[0] === "pbs" || url.host.split(".")[0] === "video")
|
||||||
return `${randomInstance}/pic/${encodeURIComponent(url.href)}`;
|
return `${randomInstance}/pic/${encodeURIComponent(url.href)}`;
|
||||||
|
|
||||||
else if (url.pathname.split("/").includes("tweets"))
|
else if (url.pathname.split("/").includes("tweets"))
|
||||||
return `${randomInstance}${url.pathname.replace("/tweets", "")}${url.search}`;
|
return `${randomInstance}${url.pathname.replace("/tweets", "")}${url.search}`;
|
||||||
else if (url.host == 't.co')
|
else if (url.host == 't.co')
|
||||||
|
|
Loading…
Reference in New Issue