diff --git a/js/popup.js b/js/popup.js index 76fc97c..440be99 100644 --- a/js/popup.js +++ b/js/popup.js @@ -99,12 +99,12 @@ $(function () { //函数队列 let queue = []; // queue.push(play_finance);//好像js注入不进去 - // queue.push(shopping); - // queue.push(calendar); - // queue.push(mail); - // queue.push(play_google); - // queue.push(news_google); - // queue.push(youtube_shorts); + queue.push(shopping); + queue.push(calendar); + queue.push(mail); + queue.push(play_google); + queue.push(news_google); + queue.push(youtube_shorts); //当前执行的队列索引 let closed_index = 0; diff --git a/lib/content.js b/lib/content.js index 0f81e23..8b77935 100644 --- a/lib/content.js +++ b/lib/content.js @@ -304,11 +304,14 @@ 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")) //获取邮件发送人 - let mail_for = mails_is_google[index].find('.yP')[0].attr("email") + let mail_for = mails_is_google[index].children[4].children[1].children[0].children[0].getAttribute("email") //是否回复 - let whether_or_not_to_reply_to= searchStringContainsArrayKeywords(mail_for,['google','youtube']) + let whether_or_not_to_reply_to= searchStringContainsArrayKeywords(mail_for,['google','youtube','gbcloud']) + //逻辑取反 + whether_or_not_to_reply_to=!whether_or_not_to_reply_to + console.log(`当前邮件发送人:${mail_for} 是否回复${whether_or_not_to_reply_to}`) //邮箱回复 if (getRandomInt(0, 1) == 0&&whether_or_not_to_reply_to) {