cq_auto_script

private script

  1. // ==UserScript==
  2. // @name cq_auto_script
  3. // @namespace skeleton
  4. // @version 3.0.0
  5. // @description private script
  6. // @author skeleton
  7. // @match *://*.chaoxing.com/space/*
  8. // @run-at document-end
  9. // @grant unsafeWindow
  10. // @license MIT
  11. // ==/UserScript==
  12. (function() {
  13. 'use strict';
  14. setTimeout(()=>{
  15. const win = unsafeWindow.document.querySelector('iframe').contentWindow
  16. win.getStudied?.()
  17.  
  18. setTimeout(()=>{
  19. // 随机看课
  20. const links = Array.from(win.document.querySelectorAll('.w_cournopadd .w_cour_txt a'))
  21. const count = parseInt(Math.random() * links.length)
  22. links[count]?.click()
  23. },10000)
  24. },5000)
  25. })();

QingJ © 2025

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