From 6d43775cbdd4efdf18f019b137ab8a4d98724268 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Tue, 24 Sep 2024 12:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=9C=89=E7=BD=91=E9=A1=B5=E6=89=93?= =?UTF-8?q?=E5=BC=80=E9=94=99=E8=AF=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/popup.js | 2 +- lib/content.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/js/popup.js b/js/popup.js index 7ad7efe..727ede6 100644 --- a/js/popup.js +++ b/js/popup.js @@ -63,9 +63,9 @@ $(function () { //函数队列 let queue = [ { url: "https://www.youtube.com/watch?v=LZ7DMB6h-hs", tip: "youtube" }, - { url: "https://shopping.google.com/", tip: "shopping" }, { url: "https://play.google.com/", tip: "play_google" }, { url: "https://news.google.com/", tip: "news_google" }, + { url: "https://shopping.google.com/", tip: "shopping" }, ]; //当前执行的队列索引 diff --git a/lib/content.js b/lib/content.js index d4b9811..ac6ef38 100644 --- a/lib/content.js +++ b/lib/content.js @@ -244,7 +244,13 @@ async function youtube(r, id) { } let all_video = $(".media-item-thumbnail-container"); all_video[getRandomInt(0, all_video.length - 1)].click(); - await delay(getRandomInt(20, 60)); + // if(getRandomInt(0,1)==0){ + // //点赞 + // document.getElementsByClassName('yt-spec-touch-feedback-shape__fill')[3].click() + // //订阅 + // document.getElementsByClassName('yt-spec-touch-feedback-shape__fill')[2].click() + // } + await delay(getRandomInt(300, 1800)); } for (let index = 0; index < getRandomInt(5, 10); index++) { await whict();