NetSkip

Automatically skips intros and clicks next episode on Netflix.

安裝腳本?
作者推薦腳本

您可能也會喜歡 IG Zoom Lens

安裝腳本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name              NetSkip
// @name:pt-BR        NetSkip
// @name:en           NetSkip
// @name:es           NetSkip
// @name:zh-CN        NetSkip
// @name:fr           NetSkip
// @namespace         https://github.com/0H4S
// @version           1.1
// @description       Automatically skips intros and clicks next episode on Netflix.
// @description:pt-BR Pula aberturas e clica em próximo episódio automaticamente na Netflix.
// @description:en    Automatically skips intros and clicks next episode on Netflix.
// @description:es    Omite introducciones y hace clic en el siguiente episodio automáticamente en Netflix.
// @description:zh-CN 自动跳过 Netflix 剧集的片头并点击下一集。
// @description:fr    Saute automatiquement les intros et clique sur l'épisode suivant sur Netflix.
// @author            OHAS
// @license           MIT
// @homepageURL       https://github.com/0H4S
// @icon              https://cdn-icons-png.flaticon.com/512/9546/9546390.png
// @match             https://www.netflix.com/*
// @grant             none
// ==/UserScript==

(function() {
    'use strict';
    const targetNode = document.body;
    const config = { childList: true, subtree: true };
    const callback = function(mutationsList, observer) {
        for(const mutation of mutationsList) {
            if (mutation.type === 'childList') {
                const skipIntroButton = document.querySelector('button[data-uia="player-skip-intro"]');
                if (skipIntroButton) {
                    skipIntroButton.click();
                }
                const nextEpisodeButton = document.querySelector('button[data-uia="next-episode-seamless-button"]');
                if (nextEpisodeButton) {
                    nextEpisodeButton.click();
                }
            }
        }
    };
    const observer = new MutationObserver(callback);
    observer.observe(targetNode, config);
})();