diff --git a/lib/content.js b/lib/content.js index cee16f7..5bf513f 100644 --- a/lib/content.js +++ b/lib/content.js @@ -248,7 +248,7 @@ async function mail(r, id) { "감사합니다", "이번주의 판매 보고을 보내드립니다. 세해 세일때문에 판매 목표를 잘 달성했슴니다. 첨부 파일을 참고하세요. ", ]; - await delay(3); + await delay(8); let mails = document.querySelectorAll(".zA"); for (let index = 0; index < mails.length; index++) { //挨个查看 @@ -257,11 +257,15 @@ async function mail(r, id) { await delay(getRandomInt(1, 5)); //邮箱回复 if (getRandomInt(0, 1) == 0) { - $('.amn >span').click() + $('.amn >.ams.bkH').click() + await delay(getRandomInt(1, 5)); + console.log("开始注入") + let text=emailReply[getRandomInt(0, emailReply.length-1)] + console.log("注入内容为"+text) + $('.Ar.Au >div >div').textContent =text; + await delay(3); + $('.dC >div').click(); await delay(getRandomInt(1, 5)); - $('.Ar.Au >div >div').textContent = - emailReply[getRandomInt(0, emailReply.length)]; - $('.dC >div').click(); } //返回 $('.aim.ain >div >div >div + div').click(); @@ -277,7 +281,7 @@ async function youtube_shorts2(r, id) { let views = getRandomInt(50, 100); for (let index = 0; index < views; index++) { //观看多少秒 - let watch_time = getRandomInt(30, 60); + let watch_time = getRandomInt(10, 20); await delay(getRandomInt(2, 5)); //随机暂停播放 if (getRandomInt(0, 1) == 0) { @@ -305,7 +309,7 @@ async function youtube_shorts2(r, id) { $( "#comments-button > ytd-button-renderer > yt-button-shape > label > button > yt-touch-feedback-shape > div > div.yt-spec-touch-feedback-shape__fill" ).click(); - await delay(getRandomInt(3, 5)); + await delay(getRandomInt(5, 15)); //随机滑动评论区 // RandomIntscrollBy(); //关闭评论区