余黑黑的SYB脚本

显示搜索的参数

As of 2020-11-16. See the latest version.

// ==UserScript==
// @name         余黑黑的SYB脚本
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  显示搜索的参数
// @author       thankCode
// @include      https://jiangxi.zhipeizaixian.com/lessonStudy/*
// @grant        none
// ==/UserScript==

    const realTimeClData = setInterval(() => {
        let currentVideo = document.querySelector('#studymovie');
        if (currentVideo.readyState === 4) {
            maxTime = 100000
            oldTime = 100000
            faceSign = 100000
                // 视频总长度duration
            let aggregateLen = currentVideo.duration

            // 设置进度条 currentTime
            currentVideo.currentTime = aggregateLen - 1

            let on1 = document.querySelector('.on').parentElement.nextElementSibling;
            //let a = on1.querySelector('a')

            if (!on1) {
                clearInterval(realTimeClData)
                alert('傻逼,刷完了')
            }

            setTimeout(() => {
                on1.querySelector('.course_study_menubox').click();
                console.log('%c执行中....', 'color:red')
            }, 1000)

            // // 解锁
            // a.setAttribute('data-lock', '0')
            // a.setAttribute('data-isface', '0')
            // a.setAttribute('data-facetime', '[]')
        }
    }, 2000);