2024年“寒假教师研修”-smart版本

代刷vx:shuake345-国家中小学智慧教育平台

  1. // ==UserScript==
  2. // @name 2024年“寒假教师研修”-smart版本
  3. // @namespace 国家中小学智慧教育平台
  4. // @version 0.9
  5. // @description 代刷vx:shuake345-国家中小学智慧教育平台
  6. // @author 代刷vx:shuake345
  7. // @match *://www.zxx.edu.cn/*
  8. // @match https://*.vocational.smartedu.cn*
  9. // @match https://core.teacher.vocational.smartedu.cn/*
  10. // @match https://teacher.vocational.smartedu.cn/h/subject/winter2022/*
  11. // @icon https://www.google.com/s2/favicons?domain=zxx.edu.cn
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. // Your code here...
  19.  
  20. window.onbeforeunload = null
  21.  
  22. document.addEventListener("visibilitychange", function() {
  23. if (document.visibilityState == "hidden") {
  24. if (document.URL.search('type=') > 1 ) {
  25. // window.close()
  26. }
  27. } else if (document.visibilityState == "visible") {
  28. if (document.URL.search('subject') > 1) {
  29. setTimeout(sx, 1000)
  30. }
  31. }
  32. });
  33. function gb(){
  34. if (document.URL.search('core') > 1) {
  35. window.close()
  36. }
  37. }
  38.  
  39. function sx() {
  40. window.location.reload()
  41. }
  42.  
  43.  
  44. function cy() {
  45. if (document.URL.search('core') > 1) {
  46. if(document.getElementById('startStudy')!==null){
  47. document.getElementById('startStudy').click()
  48. }
  49. if(document.getElementsByClassName('video-title clearfix').length!==0){
  50. var kc=document.getElementsByClassName('video-title clearfix')
  51. for (var m = 0; m < kc.length; m++) {
  52. if(kc[m].querySelector('span.four').innerText!=='100%'){
  53. kc[m].click()
  54. break;
  55. }
  56. }
  57.  
  58. }
  59. }
  60. }
  61. setInterval(cy, 6145)
  62.  
  63. function sy() {
  64. if (document.URL.search('core') > 1) {
  65. if(document.getElementsByClassName('layui-layer-btn0').length!==0){
  66. document.getElementsByClassName('layui-layer-btn0')[0].click()//提示有答题
  67. }else if(document.getElementsByClassName('fa fa-circle-o').length!==0){
  68. document.getElementsByClassName('fa fa-circle-o')[0].click()//选A
  69. document.getElementsByClassName('submit')[0].click()//提交
  70. }
  71. document.querySelector('xg-start').click()//播放按钮
  72. }
  73. }
  74. setInterval(sy,2542)
  75.  
  76. function sy1(){
  77. if(document.querySelectorAll('div.fish-collapse-item>div>i').length>0){
  78. for (var m = 0; m < document.querySelectorAll('div.fish-collapse-item>div>i').length; m++) {
  79. document.querySelectorAll('div.fish-collapse-item>div>i')[m].click()
  80. }
  81. }
  82. if(localStorage.getItem('wancheng')=='yes'){
  83. localStorage.setItem('wancheng','no')
  84. window.close()
  85. }
  86.  
  87. }
  88. setInterval(sy1,10542)
  89.  
  90. function sy2(){
  91. if (document.URL.search('core') > 1) {
  92. setTimeout(gb,600000)
  93. }
  94.  
  95. }
  96. setInterval(sy2,6485)
  97.  
  98.  
  99. function Zy(){
  100. if (document.URL.search('winter') > 1) {
  101. var KCtime=document.getElementsByClassName('news_time')
  102. var KCimg=document.getElementsByClassName('news_img')
  103. for (var i = 0; i < KCtime.length;i++) {
  104. if(KCtime[i].innerText.search('认定 1 学时')==-1){
  105. KCimg[i].querySelector('a').click()
  106. break;
  107. }
  108. }
  109. }
  110. }
  111. setTimeout(Zy,3524)
  112.  
  113. })();

QingJ © 2025

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