From 46852f1a7e47abc1a008bba0bed272c6ec02d579 Mon Sep 17 00:00:00 2001 From: imnyang Date: Tue, 10 Sep 2024 22:38:25 +0900 Subject: [PATCH] superfix --- src/App.tsx | 4 ++-- src/pages/Root.tsx | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 24a340b..108c6af 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -21,9 +21,9 @@ function App() { console.log('Furry sequence detected!'); const random = Math.random(); if (random < 0.1) { - document.location.href = 'https://wh64.net?from=imnyang_root_page'; + document.location.href = `https://wh64.net?from=imnyang_root_${(Math.random() + 1).toString(36).substring(7)}page`; } else { - document.location.href = 'https://ny64.kr?from=imnyang_root_page'; + document.location.href = `https://ny64.kr?from=imnyang_root_${(Math.random() + 1).toString(36).substring(7)}page`; } } }; diff --git a/src/pages/Root.tsx b/src/pages/Root.tsx index 9974aca..35aad76 100644 --- a/src/pages/Root.tsx +++ b/src/pages/Root.tsx @@ -15,12 +15,22 @@ function Root() { setImageSrc('https://f.imnyang.xyz/profile/imnyang.webp'); setGotoHref('/?kawaii'); } + if (queryParams.has('no_hair') && queryParams.has("no_ear")) { + setImageSrc('https://f.imnyang.xyz/profile/no_ear_no_long_hair.png'); + } else if (queryParams.has('no_ear')) { + setImageSrc('https://f.imnyang.xyz/profile/no_ear.png'); + } else if (queryParams.has('no_hair')) { + setImageSrc('https://f.imnyang.xyz/profile/no_hair.avif'); + } + }, [location.search]); return (
+

/?no_hair

+ {/* /?no_ear */}

imnyang @@ -30,7 +40,7 @@ function Root() {

🖥️ Software Engineer
- 🎨 UI / UX Designer in Sqlare + 🎨 Team. Sqlare

📚 Middle School Student in South Korea