🥇🥇💯睿学在线-批量刷课助手💯🥇🥇

🥇🥇💯睿学在线-批量刷课助手1💯🥇🥇

  1. // ==UserScript==
  2. // @name 🥇🥇💯睿学在线-批量刷课助手💯🥇🥇
  3. // @namespace http://www.example.com
  4. // @version 1.0
  5. // @description 🥇🥇💯睿学在线-批量刷课助手1💯🥇🥇
  6. // @match *://*.webtrn.cn/*
  7. // @grant none
  8. // @grant GM_info
  9. // @grant GM_getTab
  10. // @grant GM_saveTab
  11. // @grant GM_setValue
  12. // @grant GM_getValue
  13. // @grant unsafeWindow
  14. // @grant GM_listValues
  15. // @grant GM_deleteValue
  16. // @grant GM_notification
  17. // @grant GM_xmlhttpRequest
  18. // @grant GM_getResourceText
  19. // @grant GM_addValueChangeListener
  20. // @grant GM_removeValueChangeListener
  21. // @run-at document-start
  22. // @namespace https://enncy.cn
  23. // @homepage https://docs.ocsjs.com
  24. // @source https://github.com/ocsjs/ocsjs
  25. // @icon https://cdn.ocsjs.com/logo.png
  26. // @connect enncy.cn
  27. // @connect icodef.com
  28. // @connect ocsjs.com
  29. // @connect localhost
  30. // @antifeature payment
  31. // ==/UserScript==
  32.  
  33. (function() {
  34. 'use strict';
  35.  
  36. // Check if the script has already been loaded in the top frame
  37. if (window.top === window) {
  38. // Create the floating box container
  39. var container = document.createElement('div');
  40. container.id = 'float-box-container';
  41. container.style.position = 'fixed';
  42. container.style.top = '50px';
  43. container.style.left = '50px';
  44. container.style.zIndex = '9999';
  45. container.style.background = 'linear-gradient(180deg, #87CEFA 0%, #ADD8E6 100%)';
  46. container.style.padding = '10px';
  47. container.style.borderRadius = '5px';
  48. container.style.boxShadow = '0 0 5px rgba(0, 0, 0, 0.3)';
  49. container.style.fontWeight = 'bold';
  50. container.style.fontSize = '18px';
  51.  
  52. // Add the title
  53. var title = document.createElement('div');
  54. title.textContent = 'Float Box for 睿学';
  55. title.style.marginBottom = '10px';
  56. container.appendChild(title);
  57.  
  58. // Add the element count text with select box
  59. var cardWrapElements = document.querySelectorAll('.card-wrap');
  60. var elementCountText = document.createElement('div');
  61. elementCountText.textContent = '当前题库共:' + cardWrapElements.length + '道';
  62. container.appendChild(elementCountText);
  63.  
  64. // Add the "课件" and "作业" switches
  65. var coursewareSwitch = document.createElement('input');
  66. coursewareSwitch.type = 'checkbox';
  67. var coursewareLabel = document.createElement('label');
  68. coursewareLabel.textContent = '课件';
  69. coursewareLabel.style.marginRight = '10px';
  70. container.appendChild(coursewareSwitch);
  71. container.appendChild(coursewareLabel);
  72.  
  73. var homeworkSwitch = document.createElement('input');
  74. homeworkSwitch.type = 'checkbox';
  75. var homeworkLabel = document.createElement('label');
  76. homeworkLabel.textContent = '作业';
  77. container.appendChild(homeworkSwitch);
  78. container.appendChild(homeworkLabel);
  79.  
  80. // Add the "启动" button
  81. var startButton = document.createElement('button');
  82. startButton.textContent = '启动';
  83. startButton.style.display = 'block';
  84. startButton.style.margin = '10px auto';
  85. startButton.style.padding = '10px 20px';
  86. startButton.style.borderRadius = '50%';
  87. startButton.style.backgroundColor = 'blue';
  88. startButton.style.color = 'white';
  89. startButton.addEventListener('click', function() {
  90. alert('启动失败需要更新');
  91. });
  92. container.appendChild(startButton);
  93.  
  94. // Add the "查看批量教程" link
  95. var tutorialLink = document.createElement('a');
  96. tutorialLink.href = 'https://flowus.cn/share/320cb53a-9376-4c35-987e-436e46f9b235';
  97. tutorialLink.textContent = '查看批量教程';
  98. tutorialLink.style.color = 'blue';
  99. container.appendChild(tutorialLink);
  100.  
  101. // Append the container to the body
  102. document.body.appendChild(container);
  103.  
  104. // Make the box draggable
  105. var isDragging = false;
  106. var offset = { x: 0, y: 0 };
  107.  
  108. container.addEventListener('mousedown', function(e) {
  109. isDragging = true;
  110. offset.x = e.clientX - container.offsetLeft;
  111. offset.y = e.clientY - container.offsetTop;
  112. });
  113.  
  114. document.addEventListener('mousemove', function(e) {
  115. if (isDragging) {
  116. var x = e.clientX - offset.x;
  117. var y = e.clientY - offset.y;
  118. container.style.left = x + 'px';
  119. container.style.top = y + 'px';
  120. }
  121. });
  122.  
  123. document.addEventListener('mouseup', function() {
  124. isDragging = false;
  125. });
  126. }
  127.  
  128. })();

QingJ © 2025

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