Extension icon indicating copy to clipboard operation
Extension copied to clipboard

[Request] A setting to hide the "Hide Chat" button at the bottom of YouTube live chat

Open chilblane opened this issue 2 years ago • 1 comments

Describe the feature As a user, I'd like the option to remove/hide the show/hide chat button in YouTube's chat panel. It's easy to accidentally hit, especially now that other plugins like Truffle have the option of using that area for their own buttons.

Attached is a screenshot of this area from the live chat UI. image

chilblane avatar Sep 08 '22 03:09 chilblane

a workaround userscript @Fabian9799 and I figured out to solve this for ourselves

(function() {

    'use strict';

    let interval = setInterval(function () {
        let show_hide_button = document.querySelector("#show-hide-button").children[0];
        if(document.body.contains(show_hide_button)){
            show_hide_button.style.display = "none"
             clearInterval(interval);
        }
    }, 1000);
})();

chilblane avatar Sep 08 '22 16:09 chilblane