【网页版】华医网、好医生、河南专技;自动跳过视频 ✔ 自动开展考试 ✔ 作答相同题目 ✔ 识别图形验证码 ✔ 【程序版-推荐】目前支持:华医网、基层培训、辽宁培训、山东淄博、济宁专技、青岛专技、泰安专技、广西专技、山东青年政治继续教育、滨洲站继续教育、内蒙古自治区专技、新疆执业药师、河北省药师协会执业药师继教学习平台、河南继教学会平台河南专技培训、青岛理工大学继教学院、举名继续教育网、国培、继续医学教育培训网(天津卫生继教)、基层卫生人员能力训练平台(华医网)、鄂尔多斯干部培训网络学院;下载地址:https://www.123pan.com/s/aYv7Vv-WgLN3,进入看详情介绍~
当前为
// ==UserScript==
// @name 『帮帮客网课助手』
// @namespace http://tampermonkey.net/
// @version 4.5
// @description 【网页版】华医网、好医生、河南专技;自动跳过视频 ✔ 自动开展考试 ✔ 作答相同题目 ✔ 识别图形验证码 ✔ 【程序版-推荐】目前支持:华医网、基层培训、辽宁培训、山东淄博、济宁专技、青岛专技、泰安专技、广西专技、山东青年政治继续教育、滨洲站继续教育、内蒙古自治区专技、新疆执业药师、河北省药师协会执业药师继教学习平台、河南继教学会平台河南专技培训、青岛理工大学继教学院、举名继续教育网、国培、继续医学教育培训网(天津卫生继教)、基层卫生人员能力训练平台(华医网)、鄂尔多斯干部培训网络学院;下载地址:https://www.123pan.com/s/aYv7Vv-WgLN3,进入看详情介绍~
// @author 帮帮客
// @license bbk_1106
// @match *://*.91huayi.com/*
// @match *://*.yxlearning.com/*
// @match *://*.cmechina.net/*
// @match *://*.ghlearning.com/*
// @match *://basic.smartedu.cn/teacherTraining*
// @match *://*.zxx.edu.cn/teacherTraining/courseDetail*
// @match *://*.qutjxjy.cn/*
// @match *://*.hbysw.org/*
// @match *://*.jxjyedu.org.cn/*
// @match *://*.xjzyysxh.cn/*
// @match *://*.mtnet.com.cn/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_listValues
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
// @require https://lib.baomitu.com/jquery/1.12.4/jquery.min.js
// @icon https://mmbiz.qpic.cn/mmbiz_jpg/nc15h3nWHMVYP16HAuFe6PNJcic7mB6GFnNmk61LSHfH9ZPUoOWKnZiaaB9Jze8hCyrEYzIyicOzibs3e6ZIJTlcgw/640?wx_fmt=jpeg
// @run-at document-start
// ==/UserScript==
class Verify {
constructor() {
var version = 'version',hear = 'hear',version_ = "4.5";
var txt,str;
txt =
'1.鉴于帮帮客网课助手(原)进入重构阶段,同时为了兼顾各学员学习需求,决定推出帮帮客本地预览版(BBK Local preview)\n' +
'2.该版本简化了安装流程,更易操作使用\n' +
'更新建议:推荐(适配未超期的旧用户,新用户按提示操作)\n' +
'疑问解答:\n' +
'1.帮帮客本地预览版(BBK Local preview)具备旧版功能\n' +
'2.帮帮客本地预览版(BBK Local preview)属非正式发布版本\n' +
'3.助手自发布以来,承蒙各学员的支持,总安装量达15000+\n' +
'4.帮帮客注重用户体验、使用效率,如有不懂之处或疑问可通过公众号、博客、QQ等方式联系我\n' +
'下方链接则是帮帮客本地预览版(BBK Local preview)地址\n点击确定按钮进行跳转或复制输入框内的地址到浏览器上打开亦可\n' +
'注意事项:点击确定按钮后,个别浏览器会阻止弹窗而导致跳出失败,注意浏览器提示选择允许即可\n';
str = 'https://www.cnblogs.com/BBK1106/p/17770770.html';
let Set = GM_getValue("set");
if (GM_listValues().indexOf("set") == -1) {
GM_setValue("set", {"idCard": "","code": "","hear": "","version": ""});
confirm("BBK_JavaScript\n初始化完毕!");
}
setTimeout(function () {
Set = GM_getValue("set");
if (Set[hear] != true) {
data();
let url_n = unsafeWindow.location.href.split("/");
if (url_n[3] != 'rawsystem' && getCookie("Bbk_Sx") != "true") {
if (prompt(txt, str)){window.open(str);};
}
} else if (Set[hear] == true && Set[version] != version_) {
data();
let v1 = prompt('BBK_JavaScript\n\n温馨提示;您有新版本更新\n\n最新版本:' + Set[version] + ',当前版本:' + Vs + '\n\n更新流程:\n1.点击确定按钮进行跳转\n2.复制输入框内的地址到浏览器上打开即可\n\n注意事项:点击确定按钮后,个别浏览器会阻止弹窗而导致跳出失败,注意浏览器提示选择允许即可',str);
if(v1){window.open(str);}
}
if (document.querySelector('#floatTips2')) {
document.querySelector('#imga3').style.display = 'none';
if (document.querySelector('#floatTips')) {
document.querySelector('#floatTips').style.display = 'none';
}
}
}, 1500);
function data() {
var url_n, url_t;
url_n = unsafeWindow.location.href.split("/");
url_t = url_n[url_n.length - 1].split("?")[0];
if (url_t != "course_list_v2.aspx") {
$('body').append(`
<div id=gzh style="font-weight: bold;right: 17px;font-size: 14px;height: 32px;text-align: center;display: block;background: #ffffff;position: fixed;top: 272px;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>
`);
}
}
function getCookie(name)
{
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
}
}
new Verify();
setInterval(() => {
hnzj_gx();
},3000)
function hnzj_gx() {//河南专技_公需
if (document.querySelector(".item-box")) {
for (var i = 0; i < document.querySelectorAll(".item-box").length; i++) {
if (document.querySelectorAll(".sr-only")[i * 2].innerText != "100.0%") {
document.querySelectorAll(".item-box")[i].click();
break;
}
}
setTimeout(function () {
alert("当前已选的所有课程均已完成!\n感谢您的使用");
clearInterval(myTimer);
}, 2000);
}
let jd = document.querySelector("#a span[du-html=sumschedule]");//获取视频进度
if (jd) {
if (!document.querySelector("#hnzjfz")) {
document.querySelector("#defaultBtn > span.titlesname").insertAdjacentHTML('afterEnd', "<div style=\"font-weight:700;float:left;margin-left: 30px;\"><a href=https://greasyfork.org/zh-CN/scripts/441391-%E5%B8%AE%E5%B8%AE%E5%AE%A2%E7%BD%91%E8%AF%BE%E5%8A%A9%E6%89%8B target=_blank><span id=hnzjfz style=\"color:rgb(255 127 1);\">『帮帮客网课助手』</span> </a>");
document.querySelector("#defaultBtn > div").insertAdjacentHTML('afterEnd',`
<div id="xl" style="margin-left: 30px; text-decoration: underline;">
<a id="xbfw" href="http://139.224.47.209:91/%E5%B0%8F%E5%B8%AE%E6%9C%8D%E5%8A%A1.png" target="_blank" style="color: #aaa;">小帮服务</a>
<a href="https://www.123pan.com/s/aYv7Vv-WgLN3" style="margin-left: 10px; margin-right: 10px; color: #aaa;" target="_blank">程序版下载</a>
<a href="http://139.224.47.209:91/wechat_bbk.jpg" style="margin-right: 10px; color: #aaa;" target="_blank">联系小帮</a>
<a href="https://www.bilibili.com/video/BV1H44y1Z7cr/" target="_blank" style="color: #aaa;">视频教程</a>
</div>
`)
setTimeout(function () {document.querySelector('#speaker').parentElement.click();}, 2000);//执行静音
}
if (jd.innerText != "100.00") {
if (document.querySelector("#bplayer-ffplayer")) {
if (document.querySelector("#stop") == null) {
document.querySelector("#play").parentElement.click();//执行播放
}
}
let dangqian = document.querySelector(".videoLi.active");
if (dangqian.innerText.match(/单元测试/)) {
location.reload();
} else if (document.querySelector("button.pv-ask-skip.pv-hide")) {
document.querySelector("button.pv-ask-skip.pv-hide").click();//跳过答题
} else if (dangqian.innerText.match(/[0-9]+%/)[0] == "100%" && document.querySelector(".pt5 [class=progress-bar]")) {
document.querySelector(".pt5 [class=progress-bar]").parentElement.parentElement.click();//下一节
setTimeout("location.reload();", 2000);
}
} else {
history.back(-1);//返回
}
}
}