Compare commits
2 Commits
0a57ec1259
...
1340caf97d
Author | SHA1 | Date |
---|---|---|
lingling | 1340caf97d | |
lingling | a442efffc8 |
|
@ -63,10 +63,6 @@ $(function () {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
// async function text() {
|
|
||||||
// let a = await createTab("https://www.youtube.com/", "youtube");
|
|
||||||
// return a;
|
|
||||||
// }
|
|
||||||
async function youtube_shorts() {
|
async function youtube_shorts() {
|
||||||
let a = await createTab(
|
let a = await createTab(
|
||||||
"https://www.youtube.com/shorts/",
|
"https://www.youtube.com/shorts/",
|
||||||
|
|
|
@ -305,44 +305,11 @@ async function youtube_shorts2(r, id) {
|
||||||
async function youtube(r, id) {
|
async function youtube(r, id) {
|
||||||
// 点击长视频观看
|
// 点击长视频观看
|
||||||
await delay(5);
|
await delay(5);
|
||||||
//点击订阅 如果已经订阅过了就不用点
|
let vido_array=$(".yt-core-image.yt-core-image--fill-parent-height.yt-core-image--fill-parent-width.yt-core-image--content-mode-scale-aspect-fill.yt-core-image--loaded")
|
||||||
if (
|
vido_array[getRandomInt(0,vido_array.length-1)].click()
|
||||||
$(
|
await delay(5)
|
||||||
"div ytd-subscribe-button-renderer yt-smartimation yt-button-shape button"
|
$(".yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading.yt-spec-button-shape-next--segmented-start").eq(0).click()
|
||||||
)
|
$(".yt-spec-button-shape-next.yt-spec-button-shape-next--filled.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-m").eq(0).click()
|
||||||
.eq(0)
|
|
||||||
.is(".yt-spec-button-shape-next--filled")
|
|
||||||
)
|
|
||||||
$(
|
|
||||||
"div ytd-subscribe-button-renderer yt-smartimation yt-button-shape button"
|
|
||||||
)
|
|
||||||
.eq(0)
|
|
||||||
.click();
|
|
||||||
// 点赞
|
|
||||||
if (
|
|
||||||
$(
|
|
||||||
"div ytd-segmented-like-dislike-button-renderer div ytd-toggle-button-renderer yt-button-shape button"
|
|
||||||
).is(".yt-spec-button-shape-next--tonal")
|
|
||||||
)
|
|
||||||
$(
|
|
||||||
"div ytd-segmented-like-dislike-button-renderer div ytd-toggle-button-renderer yt-button-shape button"
|
|
||||||
)
|
|
||||||
.eq(0)
|
|
||||||
.click();
|
|
||||||
|
|
||||||
$("button .yt-spec-button-shape-next--size-m").click();
|
|
||||||
next_vido = Math.round(
|
|
||||||
Math.random() *
|
|
||||||
$("contents ytd-compact-video-renderer div ytd-thumbnail a").length
|
|
||||||
);
|
|
||||||
if (
|
|
||||||
next_vido ==
|
|
||||||
$("contents ytd-compact-video-renderer div ytd-thumbnail a").length
|
|
||||||
)
|
|
||||||
next_vido = next_vido - 1;
|
|
||||||
$("#contents ytd-compact-video-renderer div ytd-thumbnail a")
|
|
||||||
.eq(next_vido)[0]
|
|
||||||
.click();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ServiceLogin(r, id) {
|
function ServiceLogin(r, id) {
|
||||||
|
|
Loading…
Reference in New Issue