cq_auto_script_2

private script_2

  1. // ==UserScript==
  2. // @name cq_auto_script_2
  3. // @namespace skeleton
  4. // @version 4.0.0
  5. // @description private script_2
  6. // @author skeleton
  7. // @match *://mooc2-ans.chaoxing.com/mycourse/*
  8. // @match *://*.chaoxing.com/mooc2-ans/mycourse/studentcourse*
  9. // @run-at document-end
  10. // @grant unsafeWindow
  11. // @license MIT
  12. // ==/UserScript==
  13. (function() {
  14. 'use strict';
  15. setTimeout(()=>{
  16. unsafeWindow.document.querySelector('[title].chapter_item')?.click()
  17. },5000)
  18.  
  19. setTimeout(()=>{
  20. unsafeWindow.document.location.search = document.location.search.replace(/(pageHeader)=\d+/,'$1=1')
  21. },10000)
  22. })();