// ==UserScript==
// @name 超星网课助手(课堂测验)
// @namespace wyn665817@163.com
// @version 1.0.0
// @description 课堂测验自动答题,支持单选、多选、判断、填空题,不支持简答题和自动提交
// @author wyn665817
// @match *://mobilelearn.chaoxing.com/widget/pcvote/goStudentVotePage*
// @run-at document-end
// @grant none
// ==/UserScript==
var $ = window.jQuery;
$('.StudentTimu').each(function(index) {
var ans = window.questionlist[index].answer;
$(':radio, :checkbox', this).each(function(num) {
ans[num].isanswer && this.click();
});
$(':text', this).val(function(num) {
return $(ans[num].content).text().trim();
});
});