TvingAuto Skeep

티빙 오프닝 건너뛰기

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         TvingAuto Skeep
// @description  티빙 오프닝 건너뛰기
// @match        *://www.tving.com/player/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant        none
// @version 0.0.1.20230313101518
// @namespace https://greasyfork.org/users/1041205
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){
        //오프닝 스킵
        const xpath = '//*[@id="__next"]/main/div/div/div/div/div/div[2]/div[9]/div/button';
        const element = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
        if (element) {
            document.querySelector('#__next > main > div > div > div > div > div > div:nth-child(2) > div:nth-child(9) > div > button').click();
        }
        //다음화 재생
        const xpath2 = '//*[@id="__next"]/main/div/div/div/div/div/div[2]/div[9]/div/div/button[1]';
         const element2 = document.evaluate(xpath2, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
        if (element2) {
            document.querySelector('#__next > main > div > div > div > div > div > div:nth-child(2) > div:nth-child(9) > div > div > button:nth-child(1)').click();

        }
    }, 5010);
})();