秒过2024年智慧中小学暑假教师研修,每个视频多点几遍,疯狂点鼠标左键

2024年智慧中小学暑假教师研修,秒过,每个视频多点几遍,疯狂点鼠标左键。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA

  1. // ==UserScript==
  2. // @name 秒过2024年智慧中小学暑假教师研修,每个视频多点几遍,疯狂点鼠标左键
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.64
  5. // @author hydrachs
  6. // @description 2024年智慧中小学暑假教师研修,秒过,每个视频多点几遍,疯狂点鼠标左键。有问题可以联系我https://space.bilibili.com/15344563。其他人均为假冒,不要相信。刷课效果可以见https://www.bilibili.com/video/BV19f421q7hA
  7. // @license MIT
  8. // @match https://basic.smartedu.cn/*
  9. // @match https://www.smartedu.cn/*
  10. // @match https://teacher.vocational.smartedu.cn/*
  11. // @match https://core.teacher.vocational.smartedu.cn/*
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // 创建弹簧
  18. function createPopup(message1, message2, message3, message4, message5, message6) {
  19. const modal = document.createElement('div');
  20. modal.style.position = 'fixed';
  21. modal.style.top = '20%';
  22. modal.style.left = '20%';
  23. modal.style.width = '60%'; // 调整肥度为60%
  24. modal.style.height = 'auto'; // 高度自动调整
  25. modal.style.backgroundColor = '#fff';
  26. modal.style.padding = '20px';
  27. modal.style.borderRadius = '5px';
  28. modal.style.boxShadow = '0 0 10px rgba(0,0,0,0.5)';
  29. modal.style.zIndex = '9999';
  30.  
  31. const text1 = document.createElement('p');
  32. text1.style.color = 'red';
  33. text1.style.fontSize = '28px';
  34. text1.textContent = message1;
  35. text1.style.textAlign = 'center';
  36. text1.style.marginBottom = '10px';
  37.  
  38. const text2 = document.createElement('p');
  39. text2.textContent = message2;
  40. text2.style.fontSize = '19px';
  41. text2.style.marginBottom = '10px';
  42.  
  43. const text3 = document.createElement('p');
  44. text3.textContent = message3;
  45. text3.style.fontSize = '19px';
  46. text3.style.marginBottom = '10px';
  47.  
  48. const text4 = document.createElement('p');
  49. text4.textContent = message4;
  50. text4.style.fontSize = '19px';
  51. text4.style.marginBottom = '10px';
  52.  
  53. const text5 = document.createElement('p');
  54. text5.textContent = message5;
  55. text5.style.fontSize = '19px';
  56. text5.style.marginBottom = '10px';
  57.  
  58. const text6 = document.createElement('p');
  59. text6.textContent = message6;
  60. text6.style.textAlign = 'right';
  61. text6.style.fontSize = '25px';
  62. text6.style.marginBottom = '10px';
  63.  
  64. const button = document.createElement('button');
  65. button.textContent = '我知道了';
  66. button.style.padding = '5px 10px';
  67. button.style.cursor = 'pointer';
  68. button.onclick = function() {
  69. modal.remove();
  70. };
  71.  
  72. const buttonContainer = document.createElement('div');
  73. buttonContainer.style.display = 'flex';
  74. buttonContainer.style.justifyContent = 'center';
  75. buttonContainer.style.alignItems = 'center';
  76. buttonContainer.style.marginTop = '10px';
  77.  
  78. buttonContainer.appendChild(button);
  79. modal.appendChild(text1);
  80. modal.appendChild(text2);
  81. modal.appendChild(text3);
  82. modal.appendChild(text4);
  83. modal.appendChild(text5);
  84. modal.appendChild(text6);
  85. modal.appendChild(buttonContainer);
  86.  
  87. document.body.appendChild(modal);
  88. }
  89.  
  90. // 创建暗影
  91. function createContactButton() {
  92. const button = document.createElement('button');
  93. button.textContent = '联系脚本作者';
  94. button.style.position = 'fixed';
  95. button.style.top = '10px';
  96. button.style.right = '10px';
  97. button.style.zIndex = '10000';
  98. button.style.padding = '10px 20px';
  99. button.style.border = 'none';
  100. button.style.backgroundColor = '#ff0000'; // 设置背景颜色为红色,辣眼睛配色
  101. button.style.color = '#ffd700'; // 设置字体颜色为黄色
  102. button.style.fontWeight = 'bold';
  103. button.style.cursor = 'pointer';
  104. button.onclick = function() {
  105. window.open('https://space.bilibili.com/15344563', '_blank');
  106. };
  107.  
  108. document.body.appendChild(button);
  109. }
  110.  
  111. // 弹弹弹
  112. createPopup('不支持高校、职教版本', '提示:', '1.使用方法:点开视频,鼠标快速点几次空白处或者暂停/播放键,然后观察进度条是否跳转到最后几秒,如果跳过去了,等待视频播放完成即可。如果进度条还在前面,再次快速点几次空白处或者暂停/播放键,直到进度条跳转到最后几秒;', '2.此脚本永久免费,以前、现在、未来都免费,谨防上当受骗;', '3.有问题可以点右上角的“联系脚本作者”;', '———hydrachs');
  113. createContactButton();
  114.  
  115. function removePopup() {
  116. var popup = document.querySelector('.fish-modal-confirm-btns');
  117. if (popup) {
  118. popup.parentNode.removeChild(popup);
  119. console.log('出现知道了按钮');
  120. }
  121. }
  122.  
  123. function removeNewPopup() {
  124. var newPopup = document.querySelector('.fish-modal-content');
  125. if (newPopup) {
  126. newPopup.parentNode.removeChild(newPopup);
  127. console.log('移除弹窗2');
  128. }
  129. }
  130.  
  131. function skipVideo() {
  132. let video = document.querySelector('video');
  133. if (video) {
  134. video.muted = true; // 设置噪音
  135. video.play();
  136. video.pause();
  137. video.currentTime = video.duration;
  138. video.play();
  139. setTimeout(700);
  140. video.currentTime = video.duration - 3;
  141. video.play();
  142. video.currentTime = video.duration - 5;
  143. video.play();
  144. }
  145. }
  146.  
  147. // 海豚音播放视频
  148. function skipVideo2() {
  149. let video = document.querySelector('video');
  150. if (video) {
  151. video.muted = true;
  152. video.play();
  153. }
  154. }
  155.  
  156. function rapidSkip(times, interval) {
  157. let count = 0;
  158. const intervalId = setInterval(() => {
  159. if (count >= times) {
  160. clearInterval(intervalId);
  161. return;
  162. }
  163. skipVideo();
  164. count++;
  165. }, interval);
  166. }
  167.  
  168. let clickTimer;
  169.  
  170. document.addEventListener('DOMContentLoaded', function() {
  171. removePopup();
  172. removeNewPopup();
  173. console.log('移除弹窗');
  174. });
  175.  
  176. document.addEventListener('click', function(event) {
  177. if (event.button === 0) {
  178. if (clickTimer) {
  179. clearInterval(clickTimer);
  180. }
  181. rapidSkip(4, 50);
  182. clickTimer = setInterval(() => {
  183. rapidSkip(4, 50);
  184. }, 8000);
  185. }
  186. });
  187.  
  188. })();
  189.