Skip to content

Instantly share code, notes, and snippets.

@zoka123
Last active April 9, 2017 13:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zoka123/1f912c67b05614550fc299f7d3400ee1 to your computer and use it in GitHub Desktop.
Save zoka123/1f912c67b05614550fc299f7d3400ee1 to your computer and use it in GitHub Desktop.
Invite
var matches = document.querySelectorAll("a[role=button]");
for(var i = 0; i < matches.length; i++){
var item = matches[i];
if(item.innerHTML == "Invite"){
item.click();
}
}
var matches = document.querySelectorAll("a.uiButton");
for(var i = 0; i < matches.length; i++){
var item = matches[i];
if(item.innerText == "Invite"){
item.click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment