Skip to content

Instantly share code, notes, and snippets.

@srph
Created September 14, 2021 12:07
Show Gist options
  • Save srph/959885fadbf4cec91b8f88b63852ceec to your computer and use it in GitHub Desktop.
Save srph/959885fadbf4cec91b8f88b63852ceec to your computer and use it in GitHub Desktop.
JS: Select and invite all friends
// You can manually select this by:
// Console -> Find Modal -> Right Click -> Store as Global Variable
const modal = document.querySelector('#mount_0_0_5Q > div > div:nth-child(1) > div > div:nth-child(7) > div > div > div.rq0escxv.l9j0dhe7.du4w35lb > div > div.iqfcb0g7.tojvnm2t.a6sixzi8.k5wvi7nf.q3lfd5jv.pk4s997a.bipmatt0.cebpdrjk.qowsmv63.owwhemhu.dp1hu0rb.dhp61c6y.l9j0dhe7.iyyx5f41.a8s20v7p > div > div > div > div.rdhft8ur.a31nu0t8.r8a9u66l.ni8dbmo4.stjgntxs.k4urcfbm > div.f71di6ws.cxgpxx05.rz4wbd8a.sj5x9vvc.a8nywdso > div > div.j83agx80.cbu4d94t.buofh1pr.l9j0dhe7')
modal.querySelectorAll('.hu5pjgll.m6k467ps').forEach(element => {
var evt = new Event('click', { bubbles: true })
element.dispatchEvent(evt)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment