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();