您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
auto complete faxuan course
// ==UserScript== // @name faxuan_course // @namespace http://tampermonkey.net/ // @version 0.1 // @description auto complete faxuan course // @author You // @match http://xf.faxuan.net/sps/courseware/t/courseware_1_t.html* // @grant none // ==/UserScript== (function() { 'use strict'; window.addEventListener('load',function(){ //添加按钮 var a = document.getElementById('exitCourse'); a.href = 'javascript:;'; a.onclick = function(){ clearTimeout(sps.onlineTimeTask); let m = parseInt(Math.random() * 10) + 10; let s = parseInt(Math.random() * 10) + 10; let t = '00:' + m + ':' + s; let u = document.getElementById('ware_time_num'); u.innerHTML = t; this.onclick = function(){ sps.exitSt('ware_time_num'); }; }; var yy = setTimeout(function(){sps.prompthide('prompt2');clearTimeout(yy);},300); }); })();