CCCPaste

Sala Do Futuro - I'm not human, I am ###...

// ==UserScript==
// @name         Sala do Futuro - Zoar Saudação Completa
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Troca toda a saudação ("Olá, Nome") por uma versão zoada
// @match        https://saladofuturo.educacao.sp.gov.br/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const randomStrings = [
        "the death",
        "your soul",
        "darkness",
        "the voice that screams in the silence",
        "the silence",
        "the plague"
    ];

    function changeWelcome() {
        const userSpan = document.querySelector(".MuiTypography-root.MuiTypography-h5");
        if (userSpan) {
            const randomText = randomStrings[Math.floor(Math.random() * randomStrings.length)];
            const parent = userSpan.parentNode;

            if (parent && !parent.textContent.includes("No, I'm not human")) {
                parent.textContent = `No, I'm not human, I am ${randomText}`;
            }
        }
    }

    // roda 1x ao carregar
    window.addEventListener('load', () => {
        setTimeout(changeWelcome, 1500); 
    });

})();