diff --git a/lib/content.js b/lib/content.js index 39c66ef..4157049 100644 --- a/lib/content.js +++ b/lib/content.js @@ -212,9 +212,11 @@ async function mail(r, id) { mails[index].click(); RandomIntscrollBy(); await delay(getRandomInt(1, 5)); - console.log(mails_is_google[index].children[4].children[1].children[0].children[0].getAttribute("email")) + //.yP未读邮件 + // console.log(mails_is_google[index].getElementsByClassName('yX xY')[0].children[1].children[0].children[0].getAttribute("email")) + // console.log(mails_is_google[index].children[4].children[1].children[0].children[0].getAttribute("email")) //获取邮件发送人 - let mail_for = mails_is_google[index].children[4].children[1].children[0].children[0].getAttribute("email") + let mail_for = mails_is_google[index].getElementsByClassName('yX xY')[0].children[1].children[0].children[0].getAttribute("email") //是否回复 let whether_or_not_to_reply_to= searchStringContainsArrayKeywords(mail_for,['google','youtube','gbcloud']) //逻辑取反