Plex auto-skip intro

Automatically press the Plex "Skip intro" button when it appears.

< 脚本 Plex auto-skip intro 的反馈

评价:差评 - 脚本失效或无法使用

§
发布于:2022-01-02

Current v0.1 doesn't work.

But by modifying the script just a tiny bit I got it to work.

(function() {
    let element = document.getElementById('plex');
    let observer = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            if(mutation.addedNodes.length > 0 &&
               mutation.addedNodes[0] &&
               mutation.addedNodes[0].innerText &&
               mutation.addedNodes[0].innerText.toUpperCase() == 'SKIP INTRO') {
                setTimeout(() => {
                    mutation.addedNodes[0].firstChild.click()
                }, 1000);
            }
        });
    });
    observer.observe(element, {childList: true, subtree: true});
})();

发布留言

登录(不可用)以发布留言。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址