From 126643a91c3feba35d02f849330a97ac3ea8a4f8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 3 May 2025 12:41:36 +0200 Subject: [PATCH] shrink --- in/script/main.js | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/in/script/main.js b/in/script/main.js index 42d9694..47b9e39 100644 --- a/in/script/main.js +++ b/in/script/main.js @@ -1,3 +1,5 @@ +// buttons + const buttons = ["item", "link", "swap"]; for (let button of buttons) { @@ -6,6 +8,8 @@ for (let button of buttons) { }); } +// theme + let theme; function theme_get() { @@ -36,21 +40,26 @@ document.getElementById("theme").addEventListener("click", () => { theme_get(); +// + +const a = (t) => atob(`${t}=`); +const ab = (t) => atob(`${t}==`); const qa = document.getElementById("qa"); -qa.style.cursor = atob("cG9pbnRlcg=="); -const qa0 = atob("Lg=="); + +qa.style.cursor = ab("cG9pbnRlcg"); +const qa0 = ab("Lg"); const qa1 = [ - atob("Y3Y="), + a("Y3Y"), ].join(qa0); -const qa2 = document.createElement(atob("c3Bhbg==")); -qa2.className = atob("ZmEgZmEtYXQ="); +const qa2 = document.createElement(ab("c3Bhbg")); +qa2.className = a("ZmEgZmEtYXQ"); const qa3 = [ - atob("bWFyYw=="), - atob("YmVuaW5jYQ=="), - atob("bGluaw=="), + ab("bWFyYw"), + ab("YmVuaW5jYQ"), + ab("bGluaw"), ].join(qa0); -const qa4 = atob("IA==") +const qa4 = ab("IA") for (let kg of [qa1, qa4, qa2, qa4, qa3]) { qa.append(kg); @@ -58,6 +67,6 @@ for (let kg of [qa1, qa4, qa2, qa4, qa3]) { qa.addEventListener("click", () => { window.location.href = [ atob("bWFpbHRv"), - [qa1, qa3].join(atob("QA==")), - ].join(atob("Og==")); + [qa1, qa3].join(ab("QA")), + ].join(ab("Og")); });