介绍

这是给电脑上浏览器用的脚本,可以用于 重庆市专业技术人员继续教育 的辅助看课。
该平台网址:https://cqrl.21tb.com/

功能

自动进入未完成的课程
自动进入视频
自动播放视频
自动继续学习

提示

如果需要代看,可以联系我qq2422270452或者微信yizhituziang

教程

强烈推荐下面这个版本的360安全浏览器,对油猴的兼容性最好,如果用其他版本,可能会出现问题。下载链接是官方提供的,保证安全无毒。

http://dl.360safe.com/netunion/20140425/360se+305869+n086544149f.exe

下载后进行安装。完成后打开刚才安装的360安全浏览器,进入下面网址安装油猴插件:

https://ext.chrome.360.cn/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo

最后安装 重庆市人力资源服务中心线上学习平台 的刷课脚本.

代码

var whetherIE = false;
var vee_session_id;
var vee_url;

if(getQueryVariable('WxLogin',window.location.href)){
    var veeOk = decodeURIComponent(getQueryVariable('WxLogin',window.location.href));
    veeOk = JSON.parse(veeOk);
    setCookieWX('eln_session_id', veeOk.eln_session_id, 60);
    if(veeOk.corp_code){
        setCookieWX('corp_code', veeOk.corp_code, 60);
    }
    if(veeOk.user_id){
        setCookieWX('user_id', veeOk.user_id, 60);
    }
    window.location.href = veeOk.fromUrl;
}

if(location.host == "kuaiji.21tb.com" || location.host == "zpx.21tb.com" || location.host == "ladeng.21tb.com") {
    document.write("<script src='/webos/js/jquery.js'><\/script>" +
        "<script src='/login/js/cerm/jquery.vfdialog.js'><\/script>" +
        "<script src='/login/js/laydate/laydate.js'><\/script>" +
        "<script src='/login/js/laydate/laydate.dev.js'><\/script>");
}
document.write("<script src='/login/js/md5.min.js'></script>");
document.write("<script src='/login/js/encrypt.js'></script>");

function cancelDialog() {
    $(document.loginForm).removeClass('zoom-out').addClass('zoom-in');
    $(".login-i18n-div-index").removeClass('zoom-out').addClass('zoom-in');
    $(".father").show();
    $('#dialogBox').removeClass('zoom-in').addClass('zoom-out');
    if( whetherIE === true){
        ieAnimate.zoomOut();
        ieAnimate.zoomIn();
    }
}


function ajaxContinueLogin(obj){
    $(obj).attr("disabled", true);
    $("#continueLogin").val(true);
    if(!($("input[name='appCode']").val() === "xmall")){
        cancelDialog();
    }
    if($("#dialogBox .blue-btn").attr("vee-data") === 'wxBind'){
        bindWx();
        return;
    }
    check();
}

function confirmForDou(){
    var _corpCode = $('#corpCode').val() || $("input[name='corpCode']").val() || '';
    _corpCode = $.trim(_corpCode);

    var _loginName = $('#loginName').val() || $("input[name='loginName']").val() || '';
    _loginName = $.trim(_loginName);
    var _password = getPwdByIndexPage();
    _password = $.trim(_password);
    $.post("/login/login.confirmForDou.do",
        {"corpCode":_corpCode, "loginName":_loginName, "password":_password},
        function(data){
            cancelDialog();
            $("#continueLogin").val(true);
            check();
            /*    $("#form-login").attr('onsubmit','').submit();*/
        });
}

function appendSecurityCode() {
    filterTplI18n(null);
    var codeHtml = $($('#securityCodeTpl').html().replace("{%securityCode%}",getI18nValue("securityCode","验证码"))).hide();
    $('#error').before(codeHtml);
    $('.login-form-code-cell').slideDown(300);
    $("#refreshCode").click(function(){{
        $("#validateCodeImg").attr("src","login.securityCode.do?date="+new Date().getTime());
    }});
}

var submit_ = true;
function addErrorTips(code) {
    $('.login-input-wrap').removeClass('.error-tips');
    if(code && code === 'corpError'){
        $(document.loginForm.elements['corpCode']).focus().closest('.login-input-wrap').addClass('error-tips');
    }/*else if(code && code === 'loginNameOrPasswordError'){
        $(document.loginForm.elements['loginName']).closest('.login-input-wrap').addClass('error-tips');
        $(document.loginForm.elements['swInput']).closest('.login-input-wrap').addClass('error-tips');
    }*/else if(code && code === 'VCE'){
        $(document.loginForm.elements['securityCode']).closest('.login-input-wrap').addClass('error-tips');
    }
    $(document.loginForm).children('.login-form-bg').addClass('animation-shake');
    setTimeout(function () {
        $(document.loginForm).children('.login-form-bg').removeClass('animation-shake');
    },500);
}

function checkOtherInfo(){
    var newpwd = $("#newpwd").val();
    newpwd = $.trim(newpwd);
    var email = $("#email").val();
    email = $.trim(email);
    var mobileNum = $("#phone").val();
    mobileNum = $.trim(mobileNum);

    if(newpwd == email){
        $("#newpwd_span").html(getI18nValue('login.password.check.notSameToEmail',"密码不能和邮箱相同"));
        $("#newpwdSpan").removeClass('hinters').removeClass('hright').addClass('hwrong');
        return false;
    }
    if(newpwd == mobileNum){
        $("#newpwd_span").html(getI18nValue('login.password.check.notSameToMobile',"密码不能和手机号相同"));
        $("#newpwdSpan").removeClass('hinters').removeClass('hright').addClass('hwrong');
        return false;
    }
    return true;
}

var getParam = function (key) {
    var reg = new RegExp('(^|\\?|&)' + key + '=([^&]*)(\\s|&|$)', 'i');
    if (reg.test(location.href)) {
        return unescape(RegExp.$2.replace(/\+/g, ' '));
    }

    return '';
};

function getPwdByIndexPage(){
    var _password = '';
    if($("input[name='swInput']").length > 0 || $("#swInput").length > 0){
        _password = $("#swInput").val() || $("input[name='swInput']").val() || '';
    }else if($("input[name='password']").length > 0 || $("#password").length > 0){
        _password = $("#password").val() || $("input[name='password']").val() || '';
    }

    return _password;
}