新版智慧树挂机20180412

跳过视频内试题,1.5倍加速 自动下一章

  1. // ==UserScript==
  2. // @name 新版智慧树挂机20180412
  3. // @description 跳过视频内试题,1.5倍加速 自动下一章
  4. // @namespace http://tampermonkey.net/
  5. // @version 1.1
  6. // @author simpsonlau
  7. // @match *://study.zhihuishu.com/learning/videoList;jsessionid*
  8. // @match *://study.zhihuishu.com/learning/videoList?courseId*
  9. // @match *://course.zhihuishu.com/learning/videoList?courseId*
  10. // @match *://course.zhihuishu.com/learning/videoList;jsessionid*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. function query() {
  15. if ($("#popbox_title").length > 0) {
  16. $(".popboxes_close")[0].click();
  17. console.log('关闭窗口');
  18. }
  19.  
  20. if ($("#chapterList .time_ico.fl").nextAll()[2].children[0].style.width === "100%" || $("video").get(0).ended) {
  21. var num = -1;
  22. var text = $("#chapterList .time_ico.fl").parent().nextAll()[++num].id;
  23. while (text === "" ||
  24. text.substr(0, 5) != "video" ||
  25. text.substr(0, 7) === "video-0") {
  26. text = $("#chapterList .time_ico.fl").parent().nextAll()[++num].id;
  27. }
  28. $("#chapterList .time_ico.fl").parent().nextAll()[num].click();
  29. }
  30.  
  31. if ($("video").length > 0 && $("video").get(0).playbackRate != 1.5) {
  32. console.log('切换到1.5倍');
  33. $(".speedTab15")[0].click();
  34. }
  35.  
  36. if ($("video").get(0).volume > 0) {
  37. $(".volumeIcon").click();
  38. }
  39. }
  40.  
  41. window.setInterval(query, 1000);

QingJ © 2025

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