UCAS OJ Tester

zh-cn

目前為 2023-06-28 提交的版本,檢視 最新版本

// ==UserScript==
// @name         UCAS OJ Tester
// @namespace    http://tampermonkey.net/
// @version      1.1.4514.1919810
// @description  zh-cn
// @match        http://42.192.84.166/problem?page=4
// @match        http://42.192.84.166/problem?page=3
// @match        http://42.192.84.166/problem?page=2
// @match        http://42.192.84.166/problem?page=1
// @match        http://42.192.84.166/problem
// @icon         https://www.google.com/s2/favicons?sz=64&domain=84.166
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    window.onload = function(){
        window.alert("每切换一页均需刷新页面!!\n请保证表格最左侧一栏有√或-符号\n本程序仅供调试使用,请勿挪作他用\n点击确认代表您同意以上表述");
        var lst = document.getElementsByClassName("ivu-table-row");
        setTimeout(() => {
            for(let i=0; i<lst.length; i++){
                let e = lst[i].children[0].children[0];
                console.log(e.children[0]);
                if(e.children.length==0 || e.children[0].classList.contains("ivu-icon-minus-round")){
                    e.innerHTML = "<i class=\"ivu-icon ivu-icon-checkmark-round\" style=\"font-size: 16px; color: rgb(25, 190, 107);\"></i>";
                }
            }
        }, 1000);
    }
})();

QingJ © 2025

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