RGB Everything

Make everything on a webpage RGB animated!

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         RGB Everything
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Make everything on a webpage RGB animated!
// @author       TiemBrent
// @match        *://*/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    let hue = 0;
    function updateColors() {
        hue = (hue + 5) % 360; // Faster animation
        const color = `hsl(${hue}, 100%, 50%)`;
        const invertedColor = `hsl(${(hue + 180) % 360}, 100%, 50%)`; // Inverted RGB for text
        document.querySelectorAll('*').forEach(el => {
            el.style.backgroundColor = color;
            el.style.color = invertedColor;
            el.style.textShadow = `0 0 5px ${invertedColor}, 0 0 10px ${invertedColor}`;
            el.style.boxShadow = `0 0 10px ${color}`;
        });
    }
    setInterval(updateColors, 30); // Faster color changes
})();