-
Notifications
You must be signed in to change notification settings - Fork 0
/
meet.js
24 lines (22 loc) · 901 Bytes
/
meet.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
setInterval(() => {
var found = false; var mainDiv = null;
for (div of document.getElementsByTagName("div")) {
if (!found && div.getAttribute("data-auto-ack-recording")) {
found = true;
} else if (found && div.getAttribute("jsname")) {
found = false; mainDiv = div;
}
var arialabel = div.getAttribute("aria-label");
if (arialabel && arialabel.indexOf("tivar microfone") > 0) {
let footer = div.parentElement.parentElement.parentElement.parentElement.parentElement;
if (arialabel.startsWith("Ativar")) {
mainDiv.style.backgroundColor = "red";
footer.style.backgroundColor = "red";
} else {
mainDiv.style.backgroundColor = "";
footer.style.backgroundColor = "";
}
break;
}
}
}, 500);