search

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0b569d2b86e2218ed9131f3b31d53ba39e3a81f5
parent 6efab00e75877dbf8361d51798b7dfbfa3cad09f
Author: Theo Browne <me@t3.gg>
Date:   Fri, 14 Feb 2025 23:26:36 -0800

hack to handle slashes

Diffstat:
Msrc/main.ts | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main.ts b/src/main.ts @@ -66,7 +66,8 @@ function getBangredirectUrl() { // https://www.google.com/search?q={{{s}}} const searchUrl = selectedBang?.u.replace( "{{{s}}}", - encodeURIComponent(cleanQuery) + // Replace %2F with / to fix formats like "!ghr+t3dotgg/unduck" + encodeURIComponent(cleanQuery).replace(/%2F/g, "/") ); if (!searchUrl) return null;