xd2shuffle

no

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         xd2shuffle
// @namespace    http://tampermonkey.net/
// @version      7.7.7.7
// @description  no
// @author       fusi | @loficat on tg | codedfusi on github
// @match        *://*.shuffle.com/*
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function () {
    const x = new Set();
    const y = new Set();

    function z(n) {
        if (n.nodeType === 3 && n.nodeValue && n.nodeValue.includes("ARS")) {
            n.nodeValue = n.nodeValue.replace(/ARS/g, "$");
            x.add(n);
        }
    }

    function q(el) {
        if (el.nodeType === 1 && el.hasAttribute("src")) {
            const v = el.getAttribute("src");
            if (v.includes("/icons/fiat/ARS.svg")) {
                el.setAttribute("src", v.replace("/icons/fiat/ARS.svg", "/icons/fiat/USD.svg"));
                y.add(el);
            }
        }
    }

    function w(root) {
        if (!root) root = document.body;
        const tw = document.createTreeWalker(root, NodeFilter.SHOW_TEXT, null, false);
        let n;
        while ((n = tw.nextNode())) {
            z(n);
        }
        const imgs = root.querySelectorAll('[src*="/icons/fiat/ARS.svg"]');
        for (let i = 0; i < imgs.length; i++) q(imgs[i]);
    }

    function r() {
        for (const n of x) {
            if (n.nodeValue && n.nodeValue.includes("ARS")) {
                n.nodeValue = n.nodeValue.replace(/ARS/g, "$");
            }
        }
        for (const e of y) {
            const s = e.getAttribute("src");
            if (s && s.includes("/icons/fiat/ARS.svg")) {
                e.setAttribute("src", s.replace("/icons/fiat/ARS.svg", "/icons/fiat/USD.svg"));
            }
        }
    }

    document.addEventListener("DOMContentLoaded", function () {
        w();

        new MutationObserver(function (m) {
            for (let i = 0; i < m.length; i++) {
                const a = m[i].addedNodes;
                for (let j = 0; j < a.length; j++) {
                    const k = a[j];
                    if (k.nodeType === 1) w(k);
                    else if (k.nodeType === 3) z(k);
                }
            }
            r();
        }).observe(document.body, { childList: true, subtree: true });

        setInterval(r, 500);
    });
})();