Skip to content

Instantly share code, notes, and snippets.

@edison12a
Created June 30, 2021 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edison12a/7debc245d179798d824a3bebe768f79b to your computer and use it in GitHub Desktop.
Save edison12a/7debc245d179798d824a3bebe768f79b to your computer and use it in GitHub Desktop.
Delete all pending connections on Linked in
var aTags = document.getElementsByTagName("span");
var searchText = "Ignore";
var found;
for (var i = 0; i < aTags.length; i++) {
if (aTags[i].textContent.includes(searchText)) {
found = aTags[i];
found.click();
} else {
// console.log(aTags[i].textContent)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment