Twitch - unnerf oddoneSiSenor

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

目前為 2020-05-23 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Twitch - unnerf oddoneSiSenor
// @namespace    Chia233
// @version      0.2
// @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
               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%'
               };
          };
       });
    });
    //console.log(observer);

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

    setTimeout(observeDOM, 3000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址