REPLACE MINES WITH RYAN

REPLACE MNES WITH RYANNN

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         REPLACE MINES WITH RYAN
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  REPLACE MNES WITH RYANNN
// @match        https://diceblox.com/mines*
// @grant        none
// ==/UserScript==
// @auth        puskevit
// @license MIT
(function() {
    'use strict';

    const newImageUrl = 'https://images-ext-1.discordapp.net/external/G4VaHxrZfOFYAnZzwqUdKyimMtYtL6RZxzjAQjKL34Y/%3Fsize%3D256/https/cdn.discordapp.com/avatars/1143178769591435345/74960d099b059591399e1338d8dd889c.png?format=webp&quality=lossless&width=400&height=400';

    function replaceImages() {
        const images = document.querySelectorAll('img[alt="Tile"].base');
        images.forEach(img => {
            if (img.src !== newImageUrl) {
                img.src = newImageUrl;
                img.srcset = newImageUrl + ' 1x, ' + newImageUrl + ' 2x';
            }
        });
    }

    replaceImages();

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