【superchutou】【出头科技】九江学院、河北劳动,湘南学院以及所有出头科技自动下一集,自动做作业。

superchutou.com自动观看所有视频,答题目前已经支持所有学校!

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.

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.

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

// ==UserScript==
// @name        【superchutou】【出头科技】九江学院、河北劳动,湘南学院以及所有出头科技自动下一集,自动做作业。
// @namespace    青书学起联大麦能小助手
// @version      1.0
// @description  superchutou.com自动观看所有视频,答题目前已经支持所有学校!
// @author       小助手
// @match       http://*.superchutou.com/*
// @grant        none
// @license MIT
// ==/UserScript==
 
(function() {
    'use strict';
 
    // Your code here...
 
    // $('body > div.video_box > div.el_video').html(' ');
 
     setInterval(function () {
        获得看的集数();
        检测播放完毕();
 
    }, 1000);
 
     setInterval(function () {
        点了个继续();
    }, 2000);
 
 
    function 检测播放完毕() {
        var player = $('#CuPlayer>object')[0];
        if (player.j2s_stayInVideoTime() > 0) {
            if (player.j2s_getDuration() > 0) {
                if (player.j2s_getCurrentTime() === 0) {
                    下一个视频();
                    clearInterval(lo);
                }
            }
        }
 
    }
 
    function 点了个继续() {
        $('a.layui-layer-btn0').click();
 
    }
 
 
    function 下一个视频() {
        var 下一集 = (parseInt(localStorage.集数) + 1);
        console.log(下一集);
        $("a:contains('第" +
            下一集 +
            "讲')").click();
    }
 
 
    function 获得看的集数() {
        var 你看的第几集;
        你看的第几集 = $("span[class='stdueing']").parent().find('a').html();
        你看的第几集 = 你看的第几集.split(/[第讲]/)[1];
        if (你看的第几集 !== undefined && 你看的第几集 > 0) {
            localStorage.集数 = 你看的第几集;
        } else return 0;
 
    }
 
 
 
 
 
})();