tigrou

sticker tigrou

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         tigrou
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  sticker tigrou
// @author       ussou
// @match        https://onche.org/topic/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=onche.org
// @grant        none
// @license      GNU GPLv3
// ==/UserScript==


(function() {
    'use strict';

    // Sélectionnez toutes les balises div avec la classe "sticker"
    var divs = document.querySelectorAll('div.sticker');

    // Parcourez toutes les balises div sélectionnées
    divs.forEach(function(div) {
        // Vérifiez si la balise div contient une balise img
        if (div.querySelector('img')) {
            // Créez une nouvelle balise img avec l'attribut src souhaité
            var newImg = document.createElement('img');
            newImg.setAttribute('src', 'https://cloud.onche.org/7000843d-8daf-470b-9df0-2bd436ce549d!EKe4SuR6Hp/128');
            newImg.setAttribute('width', '64');
            newImg.setAttribute('height', '48');


            // Remplacez la balise div par la nouvelle balise img
            div.parentNode.replaceChild(newImg, div);
        }
    });
})();