Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var LIST = document.querySelectorAll(".list") // get all list items
  2. // loop through each element and check for the infoLabel element
  3. LIST.forEach(function(el) {
  4. var domEl = el.querySelector(".list .itemInfoText.first p.infoLabel") // this checks if the email is added on a particular website or not
  5. if(domEl === null) {
  6. LIST.click(); // if email is not added we will fire click event
  7. }
  8. })
  9.  
  10. /*
  11.  
  12. The above script will select each of the list item automatically if the email is not added in the website.
  13. 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
  14. 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.
  15.  
  16. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement