Skip to content

查看源代码:
auto-ewt360-script.md

---
title: 小练手之大哥 CS 玩累了上升学 E 网通刷会儿网课怎么了
createTime: 2026/2/27
categories:
  - IT
tags:
  - projects
---

```js
const checkSelector = '.btn-DOCWn';
let checkTimer = 0;
const checkCD = 1000;

function check() {
  const button = document.querySelector(checkSelector);
  if (button && Date.now() - checkTimer >= checkCD) {
    button.click();
    checkTimer = Date.now();
  }
}

const finishId = 'lesson-finished-container';
const nextSelector = '.item-blpma.active-EI2Hl + .item-blpma';
let nextTimer = 0;
const nextCD = 114514;

function next() {
  if(!document.getElementById('lesson-finished-container')) {
    return;
  }

  const button = document.querySelector(nextSelector);
  if (button && Date.now() - nextTimer >= nextCD) {
    button.click();
    nextTimer = Date.now();
  }
}

const config = { childList: true, subtree: true };
const callback = (mutationsList, observer) =>
  { check(); next(); };
const observer = new MutationObserver(callback);
observer.observe(document.body, config);
```