Netflix Skip Intro

Skips the intro and outro

当前为 2022-10-04 提交的版本,查看 最新版本

// ==UserScript==
// @name         Netflix Skip Intro
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  Skips the intro and outro
// @author       Preckrasno and Kavoye
// @match        https://www.netflix.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=netflix.com
// @grant        none
// @license MIT
// ==/UserScript==

const targetNode = document;
const config = { childList: true, subtree: true };

const callback = function(mutationsList) {

    for(let mutation of mutationsList) {
        console.log('mutation');
        let button = document.getElementsByClassName("button-primary watch-video--skip-content-button medium hasLabel ltr-1d02up3")
        if (button.length > 0) {
            button[0].click();
        }
    }
};

const observer = new MutationObserver(callback);
observer.observe(targetNode, config);

QingJ © 2025

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