Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var LIST = document.querySelectorAll(".list") // get all list items
- // loop through each element and check for the infoLabel element
- LIST.forEach(function(el) {
- var domEl = el.querySelector(".list .itemInfoText.first p.infoLabel") // this checks if the email is added on a particular website or not
- if(domEl === null) {
- LIST.click(); // if email is not added we will fire click event
- }
- })
- /*
- The above script will select each of the list item automatically if the email is not added in the website.
- However, you can do it one by one as well but since I had almost 500+ website in my LastPass vault I did not want to click 500+ times
- So, use this script if you are looking for each way to selec multiple items in one go. And delete those site from LastPass vault.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement