USTCmisTeacherAssessment

不自动的完成对老师的评分:使用方法:安装脚本,点开评课页面,观察是否全部按钮被选中。

  1. // ==UserScript==
  2. // @name USTCmisTeacherAssessment
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 不自动的完成对老师的评分:使用方法:安装脚本,点开评课页面,观察是否全部按钮被选中。
  6. // @author Tianyi Cui
  7. // @require https://cdn.staticfile.org/jquery/3.1.1/jquery.min.js
  8. // @match http://mis.teach.ustc.edu.cn/pgwj.do*
  9. // @grant none
  10. // ==/UserScript==
  11. function bad_review()
  12. {
  13. [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20].map(
  14. i=>{var t=document.getElementById("answ&"+i.toString()+"&1&5");
  15. if(t)
  16. t.click();
  17. });
  18. }
  19.  
  20. function good_review()
  21. {
  22. [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20].map(
  23. i=>{var t=document.getElementById("answ&"+i.toString()+"&1&1");
  24. if(t)
  25. t.click();
  26. });
  27. }
  28.  
  29. (function() {
  30. good_review();
  31. $("body > div > form > table > tbody > tr > td > table:nth-child(1) > tbody > tr > td:nth-child(1)")
  32. .append('<input type=submit onclick="return check()" value="提交"></input><input type=\'radio\' name=\'review\' value=\'good\' id="hplsradio" checked></input>好评<input type=\'radio\' name=\'review\' value=\'bad\' id="cplsradio"></input>差评');
  33. $('#cplsradio').click(bad_review);
  34. $('#hplsradio').click(good_review);
  35. //window.check();
  36.  
  37. // Your code here...
  38. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址