Last active
March 11, 2016 18:04
-
-
Save ereami/e108bd572a677dc598e2 to your computer and use it in GitHub Desktop.
Navigate message list in Whatsapp Web in order to get e-mails
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
// Worked on March 11th 2016 :) | |
messageList = document.querySelectorAll('div .message-list')[0]; | |
messages = messageList.querySelectorAll('.selectable-text'); | |
for(i=0; i<messages.length; i++) { | |
msg = messages[i].innerText; | |
if (msg.indexOf("@") > -1) { | |
console.log (msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment