Advertisement
Guest User

Untitled

a guest
May 26th, 2017
562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var emails = ['asdf@asdf.asdf', 'andrewsatz@gmail.com', 'aarshayjain@gmail.com', 'nononono@asdfasdf.asdf', 'ianjohnson12491@gmail.com']
  2.  
  3. function checkEmail(i){
  4. email = emails[i];
  5. a = document.getElementsByClassName('vO')[0];
  6. console.log(a);
  7. a.focus();
  8. a.value = email;
  9. console.log("Found divs: ", a, email);
  10. document.getElementsByClassName('nM')[0].focus();
  11.  
  12. var e = document.createEvent('HTMLEvents');
  13. e.initEvent('blur', false, true);
  14. a.dispatchEvent(e);
  15.  
  16. setTimeout(
  17. (function(){
  18. return function(){
  19. if ( document.getElementsByClassName('icon-linkedin').length ) {
  20. console.log('good email', email);
  21. } else {
  22. console.log('bad email', email);
  23. }
  24. if (!emails[i + 1]) return;
  25. checkEmail(i + 1);
  26. }
  27. }
  28. )(i)
  29. , 1000);
  30. }
  31.  
  32. checkEmail(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement