国开大学刷课脚本—快速、精准

国家开放大学自动刷课脚本

  1. // ==UserScript==
  2. // @name 国开大学刷课脚本—快速、精准
  3. // @namespace https://blog.lvvv.cc
  4. // @version 1.0
  5. // @description 国家开放大学自动刷课脚本
  6. // @author Juran
  7. // @match *://*.ouchn.cn/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var i
  14. var href = location.href
  15. if(href.indexOf("sectionid=")!=-1){
  16. //获取当前课件
  17. var current = document.getElementsByClassName("act")[0].innerText
  18. //是文本的话直接跳到下一个课件
  19. if(current){
  20. for(i = 0; i < document.getElementsByTagName("li").length; i++){
  21. if(document.getElementsByTagName("li")[i].className == "act"){
  22. document.getElementsByTagName("li")[i+1].click()
  23. break;
  24. }
  25. }
  26. }
  27. }
  28. })();

QingJ © 2025

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