您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
to successfully show judge status
// ==UserScript== // @name 火狐洛谷测评补丁 // @namespace https://cwd316.com/ // @version 0.1 // @description to successfully show judge status // @author chenwenda316 // @match https://www.luogu.com.cn/problem/* // @match https://www.luogu.com.cn/record/* // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // @grant unsafeWindow // @grant location.reload // ==/UserScript== (function(){ 'use strict'; function lis(){ $("button.lfe-form-sz-middle:nth-child(7)").on("click",function() { console.log("ceping"); setTimeout(check, 2000); }); } function init(){ check(); console.log($) lis(); $(".operation > button:nth-child(1)").on("click",function() { console.log("sub"); lis(); }); } function check(){ console.log("checking....") console.log($(".info-rows > div:nth-child(2) > span:nth-child(2) > span:nth-child(1)").text()=="\n Judging\n "||$(".info-rows > div:nth-child(2) > span:nth-child(2) > span:nth-child(1)").text()=="\n Waiting\n ") if($(".info-rows > div:nth-child(2) > span:nth-child(2) > span:nth-child(1)").text()=="\n Judging\n "||$(".info-rows > div:nth-child(2) > span:nth-child(2) > span:nth-child(1)").text()=="\n Waiting\n "){ console.log("bad....") location.reload(); } } setTimeout(init, 500); })();