您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
用于中建信和学堂党课自动挂机
- // ==UserScript==
- // @name MonkeyForDesigner
- // @namespace MonkeyForDesigner
- // @match https://e-cscec.zhixueyun.com/
- // @grant none
- // @version 1.1
- // @author -
- // @description 用于中建信和学堂党课自动挂机
- // ==/UserScript==
- (function() {
- 'use strict';
- console.log("Start.");
- setTimeout(checkbtm, 5000);
- })();
- function checkbtm() {
- var a = 1;
- console.log("conntinue");
- var next_btm = document.getElementById("D212btn-ok");
- var end_btm = document.getElementById("D211anewStudy");
- if (next_btm) {
- next_btm.click();
- console.log("Get btm and clicked.");
- }
- if (end_btm) {
- if (a === 1) {
- alert("Done!");
- console.log("Done!");
- a--;
- } else {
- console.log("Something Wrong!");
- }
- }
- setTimeout(checkbtm, 1000);
- }