From 5b7f330a9c167e93d17e3f6bf82b9940c855703f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 3 May 2025 12:31:01 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=86=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- in/script/main.js | 52 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/in/script/main.js b/in/script/main.js index 289aeb7..42d9694 100644 --- a/in/script/main.js +++ b/in/script/main.js @@ -6,32 +6,6 @@ for (let button of buttons) { }); } -const qa = document.getElementById("qa"); -qa.style.cursor = atob("cG9pbnRlcg=="); -const qa0 = atob("Lg=="); - -const qa1 = [ - atob("Y3Y="), -].join(qa0); -const qa2 = document.createElement(atob("c3Bhbg==")); -qa2.className = atob("ZmEgZmEtYXQ="); -const qa3 = [ - atob("bWFyYw=="), - atob("YmVuaW5jYQ=="), - atob("bGluaw=="), -].join(qa0); -const qa4 = atob("IA==") - -for (let kg of [qa1, qa4, qa2, qa4, qa3]) { - qa.append(kg); -} -qa.addEventListener("click", () => { - window.location.href = [ - atob("bWFpbHRv"), - [qa1, qa3].join(atob("QA==")), - ].join(atob("Og==")); -}); - let theme; function theme_get() { @@ -61,3 +35,29 @@ document.getElementById("theme").addEventListener("click", () => { }); theme_get(); + +const qa = document.getElementById("qa"); +qa.style.cursor = atob("cG9pbnRlcg=="); +const qa0 = atob("Lg=="); + +const qa1 = [ + atob("Y3Y="), +].join(qa0); +const qa2 = document.createElement(atob("c3Bhbg==")); +qa2.className = atob("ZmEgZmEtYXQ="); +const qa3 = [ + atob("bWFyYw=="), + atob("YmVuaW5jYQ=="), + atob("bGluaw=="), +].join(qa0); +const qa4 = atob("IA==") + +for (let kg of [qa1, qa4, qa2, qa4, qa3]) { + qa.append(kg); +} +qa.addEventListener("click", () => { + window.location.href = [ + atob("bWFpbHRv"), + [qa1, qa3].join(atob("QA==")), + ].join(atob("Og==")); +}); From 126643a91c3feba35d02f849330a97ac3ea8a4f8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 3 May 2025 12:41:36 +0200 Subject: [PATCH 2/3] 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")); }); From 4c58ecf2c9394b49f500a553b7988024bf7cecb1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 3 May 2025 12:43:25 +0200 Subject: [PATCH 3/3] runs-on --- .forgejo/workflows/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml index 0d10297..3c1f777 100644 --- a/.forgejo/workflows/main.yaml +++ b/.forgejo/workflows/main.yaml @@ -1,6 +1,7 @@ on: [push] jobs: job: + runs-on: ubuntu-latest container: image: ${{vars.DOCKER}}debian:bookworm steps: