Greasy Fork

Greasy Fork is available in English.

美和易思课堂

脚本更改于 http://greasyfork.icu/zh-CN/scripts/384222-%E7%BE%8E%E5%92%8C%E6%98%93%E6%80%9D%E8%AF%BE%E5%A0%82

当前为 2019-11-06 提交的版本,查看 最新版本

// ==UserScript==
// @name         美和易思课堂
// @namespace    http://ku-m.cn/
// @version      1.0.0
// @description  脚本更改于 http://greasyfork.icu/zh-CN/scripts/384222-%E7%BE%8E%E5%92%8C%E6%98%93%E6%80%9D%E8%AF%BE%E5%A0%82
// @author       枯木
// @match        http://www.51moot.net/server_hall_2/server_hall_2/video_play?dir_id=*
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require      http://greasyfork.icu/scripts/373336-layer-wandhi/code/layer_wandhi.js?version=637587
// @grant        GM_setClipboard
// @run-at       document-end
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @grant        GM_info
// @grant        GM_notification

// ==/UserScript==


(function() {
    window.onblur =null;
    document.title='脚本注入成功。'
    var myTimer=setInterval(cheack_time,1000);
  
    function cheack_time(){
        if( !player.j2s_resumeVideo){
            location.reload();
        }        
        if(player.j2s_getDuration()!=0){         
          if (player.j2s_getDuration() <= player.j2s_realPlayVideoTime()) {
            if ($(".active").next().html() == undefined) {
                
                var next = $(".active").parents("div").parents("div").next().children("div").children("ul");
                var nexth = next.html()
                if (RegExp(/湖北美和易思教/).test(nexth)) {

                    clearInterval(myTimer);
                    console.log("结束");
                } else {
                    next.children("li").eq(0).click()
                }
            } else {
                $(".active").next().click();
            }



        }
          
        }

        
    }



})();