Skip to content

Instantly share code, notes, and snippets.

@technorav3nn
Created January 13, 2022 18:18
Show Gist options
  • Save technorav3nn/018a31c6766cb0ae50bd70f0a446dbde to your computer and use it in GitHub Desktop.
Save technorav3nn/018a31c6766cb0ae50bd70f0a446dbde to your computer and use it in GitHub Desktop.
Troll a google meet lol
async function trollTheMeetWithBg(time) {
const elements = document.querySelector("#ow3 > div.T4LgNb > div > div:nth-child(9) > div.crqnQb > div.R3Gmyc.qwU8Me > div.WUFI9b > div.hWX4r > div > div.EjlKqc.ooUm9d > div.s9LVGd > div > div:nth-child(2)")
const allElements = elements.children
for (const el of allElements) {
if (el instanceof HTMLDivElement) {
console.log('ok')
const first = el.firstChild
const second = first.firstChild
second.firstChild.click()
await new Promise(r => setTimeout(r, time));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment