Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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