From 0b569d2b86e2218ed9131f3b31d53ba39e3a81f5 Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Fri, 14 Feb 2025 23:26:36 -0800 Subject: [PATCH] hack to handle slashes --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 3680733..0a3f8e1 100644 --- 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;