Skip to content

Instantly share code, notes, and snippets.

@ionox0
Last active April 26, 2024 23:11
Show Gist options
  • Save ionox0/feb602b2558640e3230e89da1eba6186 to your computer and use it in GitHub Desktop.
Save ionox0/feb602b2558640e3230e89da1eba6186 to your computer and use it in GitHub Desktop.
Email Checker (requires Rapportive chrome extension)
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