NetSkip

Automatically skips intros and clicks next episode on Netflix.

ही स्क्रिप्ट इंस्टॉल करा?
लेखकाने सुचवलेली स्क्रिप्ट

तुम्हाला कदाचित ही स्क्रिप्टदेखील आवडेल: IG Zoom Lens.

ही स्क्रिप्ट इंस्टॉल करा

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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);
})();