tigrou

sticker tigrou

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

(I already have a user style manager, let me install it!)

// ==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);
        }
    });
})();