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;