Youtube: AutoPlay Next Right Away

Play next video within 1 second of the end of a video.

< Youtube: AutoPlay Next Right Away 피드백

리뷰: 보통 - 동작하나 버그 있음

§
작성: 2022-07-02
수정: 2022-07-02

try fix with:
document.querySelectorAll('[class*="endscreen"][class*="button"]:not([style="display: none;"]) a[role=button]')[0];
work fine.

querySelectorAll because of [role=button]

§
작성: 2022-07-02
수정: 2022-07-02
var autoPlayNextRightAway = setInterval(function() {
    var e = document.querySelectorAll('[class*="endscreen"][class*="button"]:not([style="display: none;"]) a[role=button]')[0];
    if (e) {
        e.click();
        autoPlayNextRightAway && clearInterval(autoPlayNextRightAway);
    }
}, 100);
§
작성: 2022-07-02

OUUPS!!
BAD TYPING.
HERE IS THE GOOD CODE.

autoPlayNextRightAway && clearInterval(autoPlayNextRightAway);

var autoPlayNextRightAway = setInterval(function() {
    var e = document.querySelectorAll('[class*="endscreen"][class*="button"]:not([style="display: none;"]) a[role=button]')[0];
    if (e) {
        e.click();
    }
}, 100);

댓글 남기기

댓글을 남기려면 로그인하세요.