SHARE
TWEET

Untitled

a guest Aug 24th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top