Revert "Support for autocomplete suggestions"

This reverts commit dae24c06b4.
This commit is contained in:
Joshua Higgins
2025-07-22 18:15:42 -04:00
parent e2a2c5d258
commit 69d52a115e

View File

@@ -92,20 +92,7 @@ function getBangredirectUrl() {
}
function doRedirect() {
const url = new URL(window.location.href);
const searchUrl = getBangredirectUrl();
if (url.pathname === "/autocompleter") {
url.hostname = defaultBang!.d;
url.port = "";
if (LS_DEFAULT_BANG === "g") {
url.pathname = "/complete/search";
url.searchParams.set("client", "chrome");
}
window.location.replace(url.toString());
return;
}
if (!searchUrl) return;
window.location.replace(searchUrl);
}