From 28a6a6293563ad86634cade42e653df2f7383485 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Wed, 21 Aug 2024 19:24:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6=E5=86=99?= =?UTF-8?q?=E6=B3=95=E4=BD=86=E6=98=AF=E8=BF=98=E6=98=AF=E6=B2=A1=E5=8A=9E?= =?UTF-8?q?=E6=B3=95=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/content.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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(); //关闭评论区