From 5df018e31ed151c7085b9102c75756cead90b815 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Mon, 1 Apr 2024 06:40:30 +0000 Subject: [PATCH] ultra color moe!!! --- html/poketube.ejs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/html/poketube.ejs b/html/poketube.ejs index 422f7ecd..2e5d8a03 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1916,6 +1916,16 @@ if (/[?&]autoplay=/.test(location.search)) { } else { anchor.href = "/account-create" } + + function toggleColorSwap() { + const elements = document.querySelectorAll('body, header, nav, main, footer, div, p, h1, h2, h3, h4, h5, h6, span, a, img'); + elements.forEach(element => { + const randomHue = Math.floor(Math.random() * 360); // Random hue between 0 and 360 + const randomColor = `hsl(${randomHue}deg, 100%, 50%)`; // Convert hue to HSL color + element.style.color = randomColor; + }); +} +toggleColorSwap()