21tb

21tb 学习连续播放(下一节,下一步)

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

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

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

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

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

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @license      pswmz
// @name         21tb
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  21tb 学习连续播放(下一节,下一步)
 
// @author       pswmz
// @match        *://*.21tb.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=21tb.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
        function next11(){
            

//          var xyb = document.querySelector('.cl-go-link') //下一步
//            if(xyb != null){
//               xyb.click();
//               console.log('====================下一步 点击成功=======================');
//            }

            //let finishFlag = document.querySelector('.finish-tig finish-tig-item')

            var nextFlag = document.querySelector('.next-button') // 下一节
            if (nextFlag != null ){
                

               nextFlag.click();
               console.log('====================下一节 点击成功=======================');
            }




       
        }
        //document.querySelector('iframe').contentWindow.document.querySelectorAll('li.innercan.track-course-item>a')[0].click()

    setInterval(next11,6000)


})();