还有网页打开错误bug

This commit is contained in:
lingling 2024-09-24 12:10:16 +08:00
parent 0fe91973f4
commit 6d43775cbd
2 changed files with 8 additions and 2 deletions

View File

@ -63,9 +63,9 @@ $(function () {
//函数队列 //函数队列
let queue = [ let queue = [
{ url: "https://www.youtube.com/watch?v=LZ7DMB6h-hs", tip: "youtube" }, { 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://play.google.com/", tip: "play_google" },
{ url: "https://news.google.com/", tip: "news_google" }, { url: "https://news.google.com/", tip: "news_google" },
{ url: "https://shopping.google.com/", tip: "shopping" },
]; ];
//当前执行的队列索引 //当前执行的队列索引

View File

@ -244,7 +244,13 @@ async function youtube(r, id) {
} }
let all_video = $(".media-item-thumbnail-container"); let all_video = $(".media-item-thumbnail-container");
all_video[getRandomInt(0, all_video.length - 1)].click(); 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++) { for (let index = 0; index < getRandomInt(5, 10); index++) {
await whict(); await whict();