Last active
April 26, 2024 23:11
-
-
Save ionox0/feb602b2558640e3230e89da1eba6186 to your computer and use it in GitHub Desktop.
Email Checker (requires Rapportive chrome extension)
This file contains hidden or 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 emails = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'] | |
function checkEmail(i){ | |
email = emails[i]; | |
a = document.getElementsByClassName('vO')[0]; | |
console.log(a); | |
a.focus(); | |
a.value = email; | |
console.log("Found divs: ", a, email); | |
document.getElementsByClassName('nM')[0].focus(); | |
var e = document.createEvent('HTMLEvents'); | |
e.initEvent('blur', false, true); | |
a.dispatchEvent(e); | |
setTimeout( | |
(function(){ | |
return function(){ | |
if ( document.getElementsByClassName('icon-linkedin').length ) { | |
console.log('good email', email); | |
} else { | |
console.log('bad email', email); | |
} | |
if (!emails[i + 1]) return; | |
checkEmail(i + 1); | |
} | |
})(i) | |
, 1000); | |
} | |
checkEmail(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment