Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #232 from Mini-Gaunt/master
Browse files Browse the repository at this point in the history
Update userscript.js actionsButtons and activityPanel
  • Loading branch information
maltejur authored Apr 1, 2024
2 parents 4f91637 + 6226124 commit 2214452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ SPDX-License-Identifier: GPL-3.0-or-later */
}

/* The round buttons in the voice chat interface */
.wrapper__3f3a7 > div > div > .controlButton_ab2899 {
.wrapper__4d4fe > div > div > .controlButton__863c7 {
display: none;
}
6 changes: 3 additions & 3 deletions assets/userscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ let userscriptPromise;
setInterval(async () => {
// The panel above your voice chat controls containing the application title and the 'stop streaming' button
const streamActive =
document.getElementsByClassName("panel_bd8c76 activityPanel__22355")
document.getElementsByClassName("panel_bd8c76 activityPanel_b73e7a")
.length > 0;

if (!streamActive && wasStreamActive) userscript.stopVirtmic();
Expand All @@ -215,7 +215,7 @@ let userscriptPromise;
} else {
for (const el of [
// The 4 buttons for controlling the voice chat. Video, *Start Streaming*, Start Activity, and Soundboard.
document.getElementsByClassName("actionButtons_b58cbb")?.[0]
document.getElementsByClassName("actionButtons__85e3c")?.[0]
?.children[1],
// The round buttons in the voice chat interface
// document.querySelector(
Expand Down Expand Up @@ -300,7 +300,7 @@ let userscriptPromise;
}

const buttonContainer =
document.getElementsByClassName("container_ca50b9")[0];
document.getElementsByClassName("container_debb33")[0];
if (!buttonContainer) {
userscript.log("Cannot locate Mute/Deafen/Settings button container");
}
Expand Down

0 comments on commit 2214452

Please sign in to comment.