贵州大学继续教育学院视频播放

实现贵州大学继续教育学院视频播放

// ==UserScript==
// @name        贵州大学继续教育学院视频播放
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  实现贵州大学继续教育学院视频播放
// @author       陈孤岛
// @match        https://gzdx.student.smartchutou.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
   setTimeout(function(){
       let videodom=document.querySelector('video')






       document.querySelector('.pv-playpause ').click()
     setInterval(function() {
        if(videodom!==null){

        if(videodom.ended==true){
            document.querySelector('.anticon ').click()
                               function getlist(){
 let list=document.querySelectorAll('.player_catalog_view___ccGwy .ant-row');
 let ret=[];
 for(let index=0;index<list.length;index++){
     console.log(list[index]);
 if(list[index].innerHTML.indexOf('anticon anticon-check-circle looked___2OJgH')===-1)
 {ret.push(list[index])}
                                           };
 return ret;
}

            getlist()
            getlist()[0].click()


        }
    }

},5000)




    ; }, 10000);

})();