Plex auto-skip intro

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

< Opiniones de Plex auto-skip intro

Puntuación: Malo; el script no funciona

§
Publicado: 02/01/2022

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

Publicar respuesta

Inicia sesión para responder.