From 4f91637c02321171a5f5b582deb107c9393b324b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Fri, 22 Mar 2024 17:55:54 +0100 Subject: [PATCH] Hide second stream button as it is currently broken --- assets/style.css | 5 +++++ assets/userscript.js | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/style.css b/assets/style.css index aa60bce..5dc1cef 100644 --- a/assets/style.css +++ b/assets/style.css @@ -7,3 +7,8 @@ SPDX-License-Identifier: GPL-3.0-or-later */ .vc-backup-restore { display: none; } + +/* The round buttons in the voice chat interface */ +.wrapper__3f3a7 > div > div > .controlButton_ab2899 { + display: none; +} diff --git a/assets/userscript.js b/assets/userscript.js index 77d734d..9811e8e 100644 --- a/assets/userscript.js +++ b/assets/userscript.js @@ -218,9 +218,9 @@ let userscriptPromise; document.getElementsByClassName("actionButtons_b58cbb")?.[0] ?.children[1], // The round buttons in the voice chat interface - document.querySelector( - ".wrapper__3f3a7 > div > div > div > div > .controlButton_ab2899" - ), + // document.querySelector( + // ".wrapper__3f3a7 > div > div > div > div > .controlButton_ab2899" + // ), ]) { if (!el) continue; if (el.classList.contains("discord-screenaudio-cloned")) continue; @@ -278,7 +278,7 @@ let userscriptPromise; // Add event listener for keybind tab if ( // The notice about downloading the client to get access to keybinds - // This will not show up in the official desktop client. + // This will not show up in the official desktop client. document .getElementById("keybinds-tab") ?.getElementsByClassName(