好大学在线 助手

.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
  // ==UserScript==
  // @name         好大学在线 助手
  // @namespace    https://github.com/ShenHongFei/cnmooc-assistant
  // @homepage     https://github.com/ShenHongFei/cnmooc-assistant
  // @author       沈鸿飞
  // @description  .
  // @version      2017.12.09
  // @match        http://www.cnmooc.org/study/initplay/*.mooc
  // @match        http://www.cnmooc.org/study/unit/*.mooc
  // @match        http://www.cnmooc.org/examTest/stuExamList/*.mooc
  // @run-at       document-idle
  // @license      MIT License
  // ==/UserScript==

  // 满分批阅当前 mark()
  // 使用方法:在console中调用assistant.mark()
var add_button, answers, assistant_api, assistant_div, auto_fill, complete_item, fold_unit_nav, fun, get_quiz_answers, mark, name, options, pause_quiz_timer, print_answers, questions, test_answer, unblock_video_progress,
  indexOf = [].indexOf;

mark = async function() {
  var sleep;
  sleep = function(ms) {
    return new Promise(function(resolve) {
      return setTimeout(resolve, ms);
    });
  };
  $('input[id^=quiz_]').each(function(i, e) {
    var max_point;
    max_point = e.className.match(/max\[(\d+)\]/)[1];
    return e.setAttribute('value', max_point);
  });
  if ($('#reviewSubmitDiv').css('display') !== 'none') {
    $('#submitReviewBtn').click();
  } else {
    $('#gotoReviewSubmitBtn').click();
  }
  await sleep(1000);
  $("input[value='提交互评']").click();
  await sleep(2000);
  console.log('完成一次批阅');
  return $("input[value='确定']").click();
};

// 修改doSubExam逻辑可以在跳转是插入自己逻辑

// 完成该项
complete_item = function() {
  return updateStudyOver();
};

// 解锁视频进度
unblock_video_progress = function() {
  $('#isOver').val(2);
  return eval($(".video-show script").html());
};

// 暂停计时
pause_quiz_timer = function() {
  var useTimeFlag;
  if (typeof unsafeWindow !== "undefined" && unsafeWindow !== null) {
    return unsafeWindow.useTimeFlag = false;
  } else {
    return useTimeFlag = false;
  }
};

// answers={question.quizId:[options(string)]}
answers = null;

questions = null;

options = null;

// async 修改自 doSubmitExam_ajax
test_answer = async function(questions) {
  var allRightFlag, gradeId, i, question, reSubmit, ret_data, score, totalScore, userQuiz2, user_Quiz, user_quizs;
  //处理每道题计时
  _quizUseTimeRecord[_quizIdRecord] = _quizUseTimeRecord[_quizIdRecord] || 0;
  _quizUseTimeRecord[_quizIdRecord] = parseInt(_quizUseTimeRecord[_quizIdRecord]) + _quizUseTime;
  user_quizs = (function() {
    var j, len, results;
    results = [];
    for (j = 0, len = questions.length; j < len; j++) {
      question = questions[j];
      results.push(JSON.stringify(question));
    }
    return results;
  })();
  reSubmit = $('#reSubmit').val();
  gradeId = $('#gradeId').val();
  userQuiz2 = [];
  totalScore = 0;
  allRightFlag = true;
  i = 0;
  while (i < user_quizs.length) {
    user_Quiz = JSON.parse(user_quizs[i]);
    user_Quiz['useTime'] = _quizUseTimeRecord[user_Quiz['quizId']];
    _quizUseTimeRecord[user_Quiz['quizId']] = 0;
    userQuiz2.push(JSON.stringify(user_Quiz));
    score = parseInt(user_Quiz['markQuizScore']);
    totalScore += score;
    if (score === 0) {
      allRightFlag = false;
    }
    i++;
  }
  if (allRightFlag) {
    totalScore = 10000;
  }
  user_quizs = userQuiz2;
  console.log(user_quizs);
  ret_data = (await $.when($.ajax({
    url: CONTEXTPATH + '/examSubmit/7681/saveExam/1/' + examPaperId + '/' + examSubmitId + '.mooc?testPaperId=' + examTestPaperId,
    type: 'post',
    data: {
      gradeId: gradeId,
      reSubmit: reSubmit,
      submitquizs: user_quizs,
      submitFlag: 0,
      useTime: 1,
      totalScore: totalScore,
      testPaperId: examTestPaperId
    },
    dataType: 'json',
    success: function(data) {
      if (!data.successFlag) {
        throw Error(data.successFlag = false);
      }
    },
    error: function() {
      return console.log('test_answer error');
    }
  })));
  return JSON.parse(ret_data.examSubmit.submitContent);
};

// async
get_quiz_answers = async function() {
  var current_round_option_ids, i, j, l, len, len1, len2, m, n, o, oi, option_id_flags, perfect_answer, qi, question, ref, result, test_result;
  // 初始化页面问题
  questions = (function() {
    var j, len, ref, results;
    ref = $('#exam_paper').quiz().getPractice();
    results = [];
    for (j = 0, len = ref.length; j < len; j++) {
      question = ref[j];
      results.push(JSON.parse(question));
    }
    return results;
  })();
  
  // 枚举、测试、更新答案
  options = $('[option_id]').map(function(i, e) {
    return e.getAttribute('option_id');
  });
  answers = {};
  ref = [1, 2, 4, 8, 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15];
  for (j = 0, len = ref.length; j < len; j++) {
    oi = ref[j];
    option_id_flags = [];
    for (i = l = 0; l <= 3; i = ++l) {
      option_id_flags.push((oi << i & 0b1000) === 0b1000);
    }
    // 检测已有正确答案,对每一题生成答案,设置userAnswer
    for (qi = m = 0, len1 = questions.length; m < len1; qi = ++m) {
      question = questions[qi];
      perfect_answer = answers[question.quizId];
      if (perfect_answer) {
        question.userAnswer = perfect_answer.join(',');
      } else {
        current_round_option_ids = [];
        // option_id 并非连续
        for (i = n = 0; n <= 3; i = ++n) {
          if (option_id_flags[i]) {
            current_round_option_ids.push(options[qi * 4 + i]);
          }
        }
        question.userAnswer = current_round_option_ids.join(',');
      }
    }
    console.log(questions);
    // 枚举的答案准备完成,开始测试
    test_result = (await test_answer(questions));
    for (o = 0, len2 = test_result.length; o < len2; o++) {
      result = test_result[o];
      result = JSON.parse(result);
      if (result.markResult) {
        // perfect_options=(parseInt option for option in result.userAnswer.split(','))
        answers[result.quizId] = result.userAnswer.split(',');
      }
    }
  }
  console.log(answers);
  return answers;
};

// async 查看习题答案
print_answers = async function() {
  var j, len, option, option_id_from, pretty_options, qi, question, x;
  if (!answers) {
    await get_quiz_answers();
  }
  pretty_options = '';
  for (qi = j = 0, len = questions.length; j < len; qi = ++j) {
    question = questions[qi];
    option_id_from = options[qi * 4];
    x = (function() {
      var l, len1, ref, results;
      ref = answers[question.quizId];
      results = [];
      for (l = 0, len1 = ref.length; l < len1; l++) {
        option = ref[l];
        results.push(String.fromCharCode('A'.charCodeAt(0) + parseInt(option) - option_id_from));
      }
      return results;
    })();
    pretty_options += `第${qi + 1}题:${x.join(',')}\n`;
  }
  console.log(pretty_options);
  alert(pretty_options);
};

// 自动完成习题
auto_fill = async function() {
  var answer_ids, k, v;
  if (!answers) {
    await get_quiz_answers();
  }
  answer_ids = [];
  for (k in answers) {
    v = answers[k];
    answer_ids = answer_ids.concat(v);
  }
  // todo:多选题再次点击会取消选择
  $("[option_id]").filter(function(i, e) {
    var ref;
    return ref = e.getAttribute('option_id'), indexOf.call(answer_ids, ref) >= 0;
  }).find('[class|="input"]').click();
};

assistant_api = {
  '解锁视频进度': unblock_video_progress,
  '完成该项': complete_item,
  '暂停答题计时': pause_quiz_timer,
  '自动完成习题': auto_fill,
  '查看习题答案': print_answers
};

fold_unit_nav = function() {
  return $('.tr-chapter').click();
};


// userscript 环境
if (typeof unsafeWindow !== "undefined" && unsafeWindow !== null) {
  // 暴露assistant接口
  unsafeWindow.assistant = {};
  for (name in assistant_api) {
    fun = assistant_api[name];
    unsafeWindow.assistant[fun.name] = fun;
  }
  unsafeWindow.assistant.mark = mark;
  
  // 返回课程主页改为返回导航
  $('#backCourse').contents().last().replaceWith('返回导航');
  $('#backCourse').off('click');
  $("#backCourse").on('click', function() {
    return location.href = CONTEXTPATH + "/portal/session/unitNavigation/" + $("#courseOpenId").val() + ".mooc";
  });
  
  // 助手界面显示
  assistant_div = document.createElement('div');
  assistant_div.id = 'assistant';
  $('.main-scroll').prepend(assistant_div);
  
  // 助手界面添加按钮
  add_button = function(text, fun) {
    var btn;
    btn = document.createElement('button');
    btn.textContent = text;
    btn.onclick = fun;
    // todo:优雅的样式设置
    btn.style = 'margin:5px;padding:5px';
    return assistant_div.appendChild(btn);
  };
  for (name in assistant_api) {
    fun = assistant_api[name];
    add_button(name, fun);
  }
  
  // tab切换
  $('.tab-inner').on('click', function() {
    // todo:智能判断可用功能
    return console.log(this);
  });
  fold_unit_nav();
  unsafeWindow.doSubExam = doSubExam;
}


//router=
//    10:video_helper_init
//#    20:pdf_helper # pdf页面
//#    50:quiz_helper # 选择题

//router[$('#itemType').val()]()

//# sourceMappingURL=data:application/json;base64,eyJ2ZX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AwXG4gICAgICAgICMg5qOA5rWL5bey5pyJ5q2j56Gu562U5qGI77yM5a+55q+P5LiA6aKY55Sf5oiQ562U5qGI77yM6K6+572udXNlckFuc3dlclxuICAgICAgICBmb3IgcXVlc3Rpb24scWkgaW4gcXVlc3Rpb25zXG4gICAgICAgICAgICBwZXJmZWN0X2Fuc3dlcj1hbnN3ZXJzW3F1ZXN0aW9uLnF1aXpJZF1cbiAgICAgICAgICAgIGlmIHBlcmZlY3RfYW5zd2VyXG4gICAgICAgICAgICAgICAgcXVlc3Rpb24udXNlckFuc3dlcj1wZXJmZWN0X2Fuc3dlci5qb2luKCcsJylcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICBjdXJyZW50X3JvdW5kX29wdGlvbl9pZHM9W11cbiAgICAgICAgICAgICAgICAjIG9wdGlvbl9pZCDlubbpnZ7ov57nu61cbiAgICAgICAgICAgICAgICBmb3IgaSBpbiBbMC4uM11cbiAgICAgICAgICAgICAgICAgICAgY3VycmVudF9yb3VuZF9vcHRpb25faWRzLnB1c2ggb3B0aW9uc1txaSo0K2ldIGlmIG9wdGlvbl9pZF9mbGFnc1tpXVxuICAgICAgICAgICAgICAgIHF1ZXN0aW9uLnVzZXJBbnN3ZXI9Y3VycmVudF9yb3VuZF9vcHRpb25faWRzLmpvaW4oJywnKVxuICAgICAgICBjb25zb2xlLmxvZyBxdWVzdGlvbnNcbiAgICAgICAgIyDmnprkuL7nmoTnrZTmoYjlh4blpIflrozmiJDvvIzlvIDlp4vmtYvor5VcbiAgICAgICAgdGVzdF9yZXN1bHQ9YXdhaXQgdGVzdF9hbnN3ZXIocXVlc3Rpb25zKVxuICAgICAgICBmb3IgcmVzdWx0IGluIHRlc3RfcmVzdWx0XG4gICAgICAgICAgICByZXN1bHQ9SlNPTi5wYXJzZShyZXN1bHQpXG4gICAgICAgICAgICBpZiByZXN1bHQubWFya1Jlc3VsdFxuICAgICAgICAgICAgICAgICMgcGVyZmVjdF9vcHRpb25zPShwYX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LCAtPlxuICAgICAgICBsb2NhdGlvbi5ocmVmID0gQ09OVEVYVFBBVEggKyBcIi9wb3J0YWwvc2Vzc2lvbi91bml0TmF2aWdhdGlvbi9cIiArICQoXCIjY291cnNlT3BlbklkXCIpLnZhbCgpICsgXCIubW9vY1wiXG4gICAgXG4gICAgIyDliqnmiYvnlYzpnaLmmL7npLpcbiAgICBhc3Npc3RhbnRfZGl2PWRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpXG4gICAgYXNzaXN0YW50X2Rpdi5pZD0nYXNzaXN0YW50J1xuICAgICQoJy5tYWluLXNjcm9sbCcpLnByZXBlbmQoYXNzaXN0YW50X2RpdilcbiAgICBcbiAgICAjIOWKqeaJi+eVjOmdoua3u+WKoOaMiemSrlxuICAgIGFkZF9idXR0b249KHRleHQsZnVuKS0+XG4gICAgICAgIGJ0bj1kb2N1bWVudC5jcmVhdGVFbGVtZW50KCdidXR0b24nKVxuICAgICAgICBidG4udGV4dENvbnRlbnQ9dGV4dFxuICAgICAgICBidG4ub25jbGljaz1mdW5cbiAgICAgICAgIyB0b2RvOuS8mOmbheeahOagt+W8j+iuvue9rlxuICAgICAgICBidG4uc3R5bGU9J21hcmdpbjo1cHg7cGFkZGluZzo1cHgnXG4gICAgICAgIGFzc2lzdGFudF9kaXYuYXBwZW5kQ2hpbGQoYnRuKVxuICAgICAgICBcbiAgICBmb3IgbmFtZSxmdW4gb2YgYXNzaXN0YW50X2FwaVxuICAgICAgICBhZGRfYnV0dG9uKG5hbWUsZnVuKVxuICAgICAgICBcbiAgICAjIHRhYuWIh+aNolxuICAgICQoJy50YWItaW5uZXInKS5vbiAnY2xpY2snLC0+XG4gICAgICAgICMgdG9kbzrmmbrog73liKTmlq3lj6/nlKjlip/og71cbiAgICAgICAgY29uc29sZS5sb2cgdGhpc1xuICAgICAgICBcbiAgICBmb2xkX3VuaXRfbmF2KClcbiAgICBcbiAgICB1bnNhZmVXaW5kb3cuZG9TdWJFeGFtPWRvU3ViRXhhbVxuICAgICAgICBcbiNyb3V0ZXI9XG4jICAgIDEwOnZpZGVvX2hlbHBlcl9pbml0XG4jIyAgICAyMDpwZGZfaGVscGVyICMgcGRm6aG16Z2iXG4jIyAgICA1MDpxdWl6X2hlbHBlciAjIOmAieaLqemimFxuIyAgICBcbiNyb3V0ZXJbJCgnI2l0ZW1UeXBlJykudmFsKCldKClcblxuIl19
//# sourceURL=E:\SDK\cnmooc-assistant\index.coffee