Twitch - unnerf oddoneSiSenor

Increases oddoneSiSenor size back to the original size (thicc AF) POGGERS

Verze ze dne 25. 05. 2020. Zobrazit nejnovější verzi.

// ==UserScript==
// @name         Twitch - unnerf oddoneSiSenor
// @namespace    Chia233
// @version      0.3
// @description  Increases oddoneSiSenor size back to the original size (thicc AF) POGGERS
// @author       Chia233
// @match        https://www.twitch.tv/*
// @grant        none
// @run-at       document-idle
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js
// ==/UserScript==
//use

(function() {

    'use-strict';

    let observer = new MutationObserver((mutations) => {
       mutations.forEach((m) => {
           if (m.addedNodes.length) {
               //get all oddoneSiSenors on the page
               let resultLength =  $("img[src='https://static-cdn.jtvnw.net/emoticons/v1/971/1.0']").length
               //console.log(`Current node length is: ${length}`)

               for (let i = 0; i < resultLength; i++) {
                   $("img[src='https://static-cdn.jtvnw.net/emoticons/v1/971/1.0']")[i].parentElement.style.width = '120%'
               };
          };

       });
    });

    function observeDOM() {
        observer.observe(document.querySelector("div.chat-scrollable-area__message-container.tw-flex-grow-1.tw-pd-b-1"), {
            childList: true,
            attributes: true,
            attributeFilter: ['style'],
            subtree: true
        });
    };

    setTimeout(observeDOM, 3000);
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元