MooMoo.io - No Store Names

A simple MooMoo.io script, will work for typical store stuff rolled out by MooMoo.io.

// ==UserScript==
// @name         MooMoo.io - No Store Names
// @namespace    https://greasyfork.org/en/users/1064285-vcrazy-gaming
// @grant        none
// @description  A simple MooMoo.io script, will work for typical store stuff rolled out by MooMoo.io.
// @author       vcrazy
// @version      0.0.2
// @match        *://*.moomoo.io/*
// @run-at       document-start
// @license      MIT
// ==/UserScript==

const observer = new MutationObserver(mutations => {
    mutations.forEach(mutation => {
        mutation.addedNodes.forEach(node => {
            if (!(node instanceof HTMLElement)) return;
            if (node.matches(".storeItem") || node.querySelector(".storeItem")) {
                const items = node.matches(".storeItem") ? [node] : node.querySelectorAll(".storeItem");
                items.forEach(item => {
                    const span = item.querySelector("span");
                    if (span && span.innerText.trim()) {
                        span.innerText = "";
                    }
                });
            }
        });
    });
});
observer.observe(document, {
    childList: true,
    subtree: true
});