// ==UserScript==
// @name 河成理工_1
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author MikSETex
// @match http://*/*
// @match https://kc.jxjypt.cn/*
// @match https://www.jxjypt.cn/*
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
// author 作者;match 作用到的页面地址
//选择题
var answer = $('.sub-answer')
var right = $('.right')
for(var i=0;i<answer.length;i++){
//console.info(answer)
var sel = $(right).text();
// 获取隐藏信息
//console.info(sel[i])
$(answer).children("dd[data-value='"+sel[i]+"']").addClass("cho-this");
$('#answer_'+i).val(sel[i])
}
// 模糊匹配策略(填空题自动)
var answerCom = $('.e__textarea')
var rightCom = $('.wenzi')
var j = 0;
var i=0;
for(i=0;i<answerCom.length;i++){
// console.info(answerCom)
var sel = $(rightCom[j]).text();
// 获取对应标签包含的内容
// console.info(sel)
// console.log(typeof sel)
$(answerCom).append(sel)
// 为标签添加属性
j= j +2;
// 间隔2为一块标签属性
}
// 自动提交并退出
var go_submit='<span id="go_submit"> </span>';
// 创建一个能被jquery捕捉的元素
function submitmess(){
if (paper.snapshot) return;
$this=$(this).hide();
// $("#masker").show();
$("#g_duration").val(paper.g_duration_do);
$.ajax({
type: "POST",
url:"submit",
data:$('#paperForm').serialize(),
async: false,
error: function(request) {
// alert("网络连接错误!确认网络连接后,再次提交!");
$this.show();
$('#btn__submit').append(go_submit);
// 添加创建id
$('#go_submit').click();
// 进行添加的id捕捉 点击
// $("#masker").hide();
},
success: function(message) {
if (message.type=='success'){
paper.isTimerEnd=true;//结束计时
//openAlert("系统提示","试卷提交完毕,本页将关闭!");
window.close();
}else{
$this.show();
openAlert("抱歉","保存失败:"+message.content);
}
// $("#masker").hide();
}
});
}
submitmess();
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ==UserScript==
// @name 河成理工_2
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author MikSETex
// @match http://*/*
// @match https://kc.jxjypt.cn/*
// @match https://www.jxjypt.cn/*
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
// author 作者;match 作用到的页面地址
(function(){
var czct = $(".czct");
czct[0].childNodes[1].click();
czct[1].childNodes[1].click();
czct[2].childNodes[1].click();
czct[3].childNodes[1].click();
czct[4].childNodes[1].click();
czct[5].childNodes[1].click();
czct[6].childNodes[1].click();
czct[7].childNodes[1].click();
czct[8].childNodes[1].click();
czct[9].childNodes[1].click();
czct[10].childNodes[1].click();
czct[11].childNodes[1].click();
czct[12].childNodes[1].click();
czct[13].childNodes[1].click();
czct[14].childNodes[1].click();
czct[15].childNodes[1].click();
czct[16].childNodes[1].click();
czct[17].childNodes[1].click();
czct[18].childNodes[1].click();
czct[19].childNodes[1].click();
czct[20].childNodes[1].click();
czct[21].childNodes[1].click();
czct[22].childNodes[1].click();
czct[23].childNodes[1].click();
czct[24].childNodes[1].click();
czct[25].childNodes[1].click();
czct[26].childNodes[1].click();
czct[27].childNodes[1].click();
czct[28].childNodes[1].click();
czct[29].childNodes[1].click();
czct[30].childNodes[1].click();
})();