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

Commit

Permalink
fix class names
Browse files Browse the repository at this point in the history
  • Loading branch information
maltejur committed Oct 17, 2023
1 parent 372c683 commit 6ea5455
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions assets/userscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ let userscriptPromise;

setInterval(async () => {
const streamActive =
document.getElementsByClassName("panel-2ZFCRb activityPanel-9icbyU")
document.getElementsByClassName("panel-ufc1-o activityPanel-9icbyU")
.length > 0;

if (!streamActive && wasStreamActive) userscript.stopVirtmic();
Expand All @@ -213,7 +213,7 @@ let userscriptPromise;
hiddenElements.length = 0;
} else {
for (const el of [
document.getElementsByClassName("actionButtons-2vEOUh")?.[0]
document.getElementsByClassName("actionButtons-1DmM2g")?.[0]
?.children[1],
document.querySelector(
".wrapper-3t3Yqv > div > div > div > div > .controlButton-2PMNom"
Expand Down Expand Up @@ -294,11 +294,9 @@ let userscriptPromise;
}

const buttonContainer =
document.getElementsByClassName("container-YkUktl")[0];
document.getElementsByClassName("container-1CH86i")[0];
if (!buttonContainer) {
userscript.log(
"Cannot locate Mute/Deafen/Settings button container, please report this on GitHub"
);
userscript.log("Cannot locate Mute/Deafen/Settings button container");
}

muteBtn = buttonContainer
Expand Down

0 comments on commit 6ea5455

Please sign in to comment.