var gmaill = window.open("https://mail.google.com/mail/u/0/#sent", "_blank");
setTimeout(function() {
alert(gmaill.document.getElementById(":113").innerHTML == "Test");
}, 3000);
I am using setInterval to look at a website, and when a condition is met, I am opening a different tab to gmail and sending an email. Unfortunately, I cannot access different tabs that are on different websites through Chrome's console (i.e. I run it from twitter to wait for a tweet and open a new tab for gmail and email someone the link to the tweet). It either doesn't return anything, or there is a security error. Is there any way to get around this? Could I make an extension and have it get around it?