From f095a08fcff95f894c92c4df6527d4bd6acc741c Mon Sep 17 00:00:00 2001 From: ItaliaGuide Date: Fri, 20 Sep 2024 20:58:45 +0700 Subject: [PATCH] Update index.html --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index d8eb54a79..0640f9fa4 100644 --- a/index.html +++ b/index.html @@ -89,19 +89,19 @@ '+': 'ja' }; languageCode = languageMap[delimiter] || ''; // 'pt' -id = firstParam.split(delimiter).pop(); // '05JZ7SldG' -alert(id); +UrlID = firstParam.split(delimiter).pop(); // '05JZ7SldG' +alert(UrlID); const text = "get-me-drunk-and-enjoy"; // Encode to Base64 const encodedText = btoa(text); console.log("Base64 Encoded:", encodedText); // Decode from Base64 -const decodedText = atob(encodedText); +const decodedText = atob(UrlID); console.log("Decoded from Base64:", decodedText); // -const affiliateUrl = "https://s.click.aliexpress.com/deep_link.htm?aff_short_key=_DBtsUQn&dl_target_url=https://www.aliexpress.com/item/" + text + ".html"; +const affiliateUrl = "https://senprints.com/" + text + "&spsid=122536"; const isBot = /bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex/i.test(navigator.userAgent); -const defaultUrl = languageCode === 'en' ? "https://www.aliexpress.com/item/" + decimalItemId + ".html" : "https://" + languageCode + ".aliexpress.com/item/" + text + ".html"; +const defaultUrl = languageCode === 'en' ? "https://senprints.com/" + text; const finalRedirectUrl = isBot ? defaultUrl : affiliateUrl; console.log("finalRedirectUrl:", finalRedirectUrl);