Greasy Fork

来自缓存

Greasy Fork is available in English.

xx职业技能提升自动点击

自动点击未观看的课程,自动点击确定,自动下一章,自动刷新页面,省去频繁点击的烦恼

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         xx职业技能提升自动点击
// @namespace    http://tampermonkey.net/
// @version      1.4
// @description  自动点击未观看的课程,自动点击确定,自动下一章,自动刷新页面,省去频繁点击的烦恼
// @author       spark
// @match        https://www.bjjnts.cn/lessonStudy/*
// @license      GPL-3.0-or-later
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';
    var seace=0;
    var num=Math.round(Math.random()*(7-3))+3;
    if($("a[data-lock='1']").length>0){
        setTimeout(function (){
            $("a[data-lock='0']").last().click();
        }, 5000);
    }

    $("body").bind('DOMNodeInserted', function(e) {
        var roundtime=Math.round(Math.random()*10000);
        if($(".layui-layer-title").length >0){
            setTimeout(function (){
                $(".layui-layer-btn0").click();
            }, roundtime);
        }
        if($('.face_recogn').css('display')=='block'){
            setTimeout(function (){
                $(".face_startbtn").click();
            }, roundtime);

        }
    });

    // 播放结束
    video.addEventListener('ended', function(e) {
        var roundtime=(Math.round(Math.random()*(20-5))+5)*1000;
        if(seace==num&&$("a[data-lock='1']").length>0){
            location.reload();
        }
         setTimeout(function (){
                if($(".course_study_sonmenu.on").parent().next().children("div").children("a").attr("data-lock")=="0"){
                    $(".course_study_sonmenu.on").parent().next().children("div").children("a").click();
                }
            }, roundtime);
        seace++;
    })
})();