Created
June 30, 2021 18:47
-
-
Save edison12a/7debc245d179798d824a3bebe768f79b to your computer and use it in GitHub Desktop.
Delete all pending connections on Linked in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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