From 8bd2c0bcd4cef2e963e91374d103f352343641de Mon Sep 17 00:00:00 2001 From: Lemon <165233560+BludIsAnLemon@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:33:43 +0800 Subject: [PATCH] Update index.js --- index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index dc2013c..071323f 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,11 @@ const url = new URL(window.location.href); -if(url.searchParams.get('ref') == 'yri') { - document.querySelector('title').textContent = 'you came from https://miyo.lol didn\'t you?'; - document.querySelector("link[rel='shortcut icon']").href = "boykisser.png"; +switch(url.searchParams.get('ref')) { + case 'yri': + document.querySelector('title').textContent = 'you came from https://miyo.lol didn\'t you?'; + document.querySelector("link[rel='shortcut icon']").href = "boykisser.png"; + break; + case 'mistium': + document.querySelector('title').textContent = 'you came from https://extensions.mistium.com didn\'t you?' + break } \ No newline at end of file