diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 09d3bb5..1284cdf 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -14,7 +14,10 @@ export function Home() { "/go/" + encodeURIComponent( //@ts-ignore - enc(inputValue, "295E1389FED4F2187D992178A53F9").substring(10) + enc( + inputValue, + window.location.origin.slice(8) + navigator.userAgent + ).substring(10) ); }; diff --git a/src/pages/ProxyFrame.tsx b/src/pages/ProxyFrame.tsx index 1416cdc..a5ae7a8 100644 --- a/src/pages/ProxyFrame.tsx +++ b/src/pages/ProxyFrame.tsx @@ -28,7 +28,7 @@ export function ProxyFrame(props: { url: string }) { //@ts-ignore let decodedUrl = dec( "U2FsdGVkX1" + decodeURIComponent(props.url), - "295E1389FED4F2187D992178A53F9" + window.location.origin.slice(8) + navigator.userAgent ); //attempt to convert to a valid url decodedUrl = searchUtil(decodedUrl, searchEngine);