火狐洛谷测评补丁

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);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址