Drawaria Chaos

ХАОС

// ==UserScript==
// @name         Drawaria Chaos
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  ХАОС
// @author       Гекко | Valorant
// @match        https://drawaria.online/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    function randomColor() {
        return 'hsl(' + Math.floor(Math.random()*360) + ', 100%, 50%)';
    }

    function changeTextAndColors() {
        const allElements = document.querySelectorAll('body *');

        allElements.forEach(el => {
            
            if(el.children.length === 0 && el.textContent.trim() !== '') {
                el.textContent = "ТОТЯ. ♥️";
            }
  
            el.style.color = randomColor();
        });
    }

    setInterval(changeTextAndColors, 1000); 
})();