您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
自动挂机学习。
当前为
// ==UserScript== // @name 江苏教师教育学习外挂 // @namespace http://greasyfork.icu/zh-CN/users/41249-tantiancai // @version 1.0 // @description 自动挂机学习。 // @author Tantiancai // @match https://jste.lexiangla.com/classes/*/courses/* // @grant none // ==/UserScript== (function () { 'use strict'; function getUnsafeWindow() { if(this) { console.log(this); if (typeof(this.unsafeWindow) !== "undefined") {//Greasemonkey, Scriptish, Tampermonkey, etc. return this.unsafeWindow; } else if (typeof(unsafeWindow) !== "undefined" && this === window && unsafeWindow === window) {//Google Chrome natively var node = document.createElement("div"); node.setAttribute("onclick", "return window;"); return node.onclick(); }else { } } else {//Opera, IE7Pro, etc. return window; } } var myUnsafeWindow = getUnsafeWindow(); var doc = myUnsafeWindow.document; var processTimer = null; var cntRetry = 0; myUnsafeWindow.clearInterval(processTimer); // 每隔5秒检测一次 processTimer = myUnsafeWindow.setInterval(TimeProcess, 5000); // 检测函数 function TimeProcess() { // 播放按钮表示时,点击播放按钮 if($('.vjs-big-play-button').css('display') != 'none') { console.log('点击播放', 'color:blue'); $('.vjs-big-play-button').click(); } // 确定按钮表示时,点击确定按钮 var confirm = $(".venom-confirm"); if(confirm.length > 0 && confirm.css('display') != 'none') { console.log('点击确定', 'color:blue'); $('.venom-btn-primary').click(); } } })();