Set Bopimo Coins to custom amount.

Sets the displayed coin count on Bopimo to a custom amount.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Set Bopimo Coins to custom amount.
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Sets the displayed coin count on Bopimo to a custom amount.
// @author       Teemsploit
// @match        *://*.bopimo.com/*
// @grant        none
// @license Unlicense
// ==/UserScript==

(function() {
    'use strict';

    function setCoins() {
        const coinElements = document.querySelectorAll('.flex-align-middle.v-popper--has-tooltip');

        coinElements.forEach(element => {
            const coinIcon = element.querySelector('.b-coin');
            const coinText = element.querySelector('div:nth-child(2)');

            if (coinIcon && coinText) {
                coinText.textContent = '24.3k';
            }
        });
    }

    setCoins();

    const observer = new MutationObserver(setCoins);
    observer.observe(document.body, { childList: true, subtree: true });
})();