-
Notifications
You must be signed in to change notification settings - Fork 0
04. See who has their hand up in a meeting
Tip: don't forget to select the DevTools for the Meeting window, not the main window, when using the New Meeting Experience.
This stores who has their hand up into an array (note that this does not include their name): var b = []; for(const c of document.getElementsByTagName('li')) {b.push(c.children[2].children[0].children[0].children[0].getAttribute("aria-label").localeCompare("Hand Raised") == 0)}
Or, if you also want to know who has their hand up, we can get who is in the meeting, and combine that with who has their hand up. Like this: var a = []; for(const item of Array.from(document.getElementsByTagName('li'))){a.push(item.children[1].innerText.split("\n")[0]);}var b = []; for(const c of document.getElementsByTagName('li')) {b.push(c.children[2].children[0].children[0].children[0].getAttribute("aria-label").localeCompare("Hand Raised") == 0)}for(var i = 0; i < a.length; i++) {console.log(a[i] + (b[i] == true ? " has their hand up" : "doesn't have their hand up"));}
. This is kind of complex, but what it does is it looks at who is in the meeting, and who has their hand up, and then prints the two lists like this: "Person has their hand up".