Twitch - Clean up GUI

Hides multiple distracting controllers on twitch.tv

// ==UserScript==
// @name     Twitch - Clean up GUI
// @description Hides multiple distracting controllers on twitch.tv
// @version  1.0.2
// @grant    none
// @include	*://twitch.tv/*
// @include	*://*.twitch.tv/*
// @author	@sverigevader
// @namespace https://gf.qytechs.cn/en/users/692021-sverigevader
// ==/UserScript==

window.setTimeout(
    function check() {
        const recommendedChannelsName = '[aria-label="Recommended Channels"]';
        const primeRewardsName = '.sc-AxjAm.iJZwey.top-nav__prime';
        const getBits = '.sc-AxiKw.jbTKml.top-nav__prime';

        SetInnerHtmlEmptyString(recommendedChannelsName);
        SetInnerHtmlEmptyString(primeRewardsName);
        SetInnerHtmlEmptyString(getBits);
        window.setTimeout(check, 250);
    }, 250
);
    
function SetInnerHtmlEmptyString(elementName) {
    var node = document.querySelector(elementName);
    if(node) {     
        node.innerHTML = "";
    }
}   

QingJ © 2025

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