Greasy Fork

2022年最新华医网-公需课|选修课|学分类|全自动模式(高效执行力、精确答题库)

全新写法,脚本在独立隔离环境运行(大大提高安全性),功能:1.视频自动加速,并自动跳过;2.自动进入考试页面,完成考试则自动下一科目,直到该课完成;3.自定义课程(公需课+选修课+学分类一站式),当完成一课则自动切换继续下一课程;4.精确智能的答题库,高效的执行力;5.所有环节适当加入延时应对校验,如:考试等;

目前为 2022-03-14 提交的版本。查看 最新版本

// ==UserScript==
// @name         2022年最新华医网-公需课|选修课|学分类|全自动模式(高效执行力、精确答题库)
// @namespace    http://tampermonkey.net/
// @version      0.6
// @description  全新写法,脚本在独立隔离环境运行(大大提高安全性),功能:1.视频自动加速,并自动跳过;2.自动进入考试页面,完成考试则自动下一科目,直到该课完成;3.自定义课程(公需课+选修课+学分类一站式),当完成一课则自动切换继续下一课程;4.精确智能的答题库,高效的执行力;5.所有环节适当加入延时应对校验,如:考试等;
// @author       帮帮客
// @license      bbk_1106
// @match        *://*.91huayi.com/*
// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_listValues
// @grant        GM_xmlhttpRequest
// @grant        unsafeWindow
// ==/UserScript==
class Verify {
    IdCard() {
        return Set["idCard"];
    }
    constructor() {
        var txt = '操作流程:\n'+
        '1.点击浏览器右上角点击油猴图标;\n'+
        '2.点击管理面板\n'+
        '3.找到刚安装的油猴脚本\n'+
        '< Ctrl + C 复制输入框内容>\n'+
        '请在[// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js]这行下方添加一行复制的内容即可。';
        var str = 'http://r7ph36bpn.bkt.clouddn.com/bbk_7.js';//需复制的内容
        data();
        if (GM_listValues().indexOf("set") == -1) {
            GM_setValue("set", {
                "idCard": ""
            });
            confirm("华医网_JavaScript\n初始化完毕!\n请按流程完成功能激活。");
        }
        if (GM_listValues().indexOf("hear") == -1){
            prompt(txt, str);
        }
    }
}
new Verify();
function data(){
    if (urlTip !="course_list_v2.aspx"){
        $('body').append(`
            <div id=gzh style="font-weight: bold;right: 19px;font-size: 14px;height: 32px;text-align: center;display: block;background: #ffffff;position: fixed; top:274px;width: 129px;color: #717375;margin-left: 0px;line-height: 15px;">微信扫一扫<br>关注帮帮客公众号</div>
            <iframe src="https://mp.weixin.qq.com/mp/qrcode?scene=10000004&size=102&__biz=Mzk0MjMxNTcxOQ==&mid=2247483681&idx=1&sn=382747485cbe09c94f7e7ee0eef363b5&send_time="
            style="right: 17px;display: block;position: fixed; top:143px;width: 129px;color: #555;margin-left: 0px;line-height: 11px;border-radius: 6px;height: 160px;">
            </iframe>
            `);
    }
    if(document.querySelector('#floatTips2') != null){
        document.querySelector('#imga3').style.display = 'none';
        if(document.querySelector('#floatTips') != null){
            document.querySelector('#floatTips').style.display = 'none';
        }
    }
}