版本比较
Phigros in luogu 插件修改版
正文
增加 10 行删除 6 行
2 行未改动34567789101112 行未改动2425262728282930313234 行未改动6768697071717273747550 行未改动12612712812913013013113213313313413513613713813914032 行未改动173174175176174177178179180181182109 行未改动全部展开2 行未改动by Unknown Fixed By ljx_蒟蒻007
找不到原作者了,侵权必删
7.30 Update:为什么我每次试用都能出新bug。。。现在不是正好一年了7.30 & 8.1 Update:为什么我每次试用都能出新bug。。。现在不是正好一年了
~~距上次更新正好一年~~
12 行未改动2. 定数数值膨胀(~~第九章预告~~)3. 增加 $4$ 种评测结果4. 修复了题目 AC 后图标无法显示的问题5. 修复了原来的 html 移动机制无法适应各种特殊情况的问题6. 在提交数小于 $20$ 时定数显示问号6. 在提交数小于 $20$ 或通过数小于 $1$ 时定数显示问号
由于一些神秘原因,在题目列表与题单中,第 $6$ 条可能无法正常显示,需要手动刷新
### 功能介绍34 行未改动```// ==UserScript==// @name Phigros in luogu// @namespace http://tampermonkey.net/// @version 2026-07-30// @version 2026-08-01// @description Phigros in luogu// @author Unknown Fixed By ljx_蒟蒻007// @match https://www.luogu.com.cn/*// @grant none50 行未改动 for (let i=0; i < tmp.length; i++){ if(i < info.length && info[i].pid == tmp[i].children[1].innerText){ x = info[i].totalSubmit; y = info[i].totalAccepted; if(y == 0)setName(tmp[i].children[4].children[0].children[0], y / Math.max(x, 1), 0); setName(tmp[i].children[4].children[0].children[0], y / Math.max(x, 1), x); else setName(tmp[i].children[4].children[0].children[0], y / Math.max(x, 1), x); }else{ x = tmp[i].children[5].children[0].children[0].style.width; setName(tmp[i].children[4].children[0].children[0], x.substr(0, x.length - 1) * 0.01, 114514); let ratio = x.substr(0, x.length - 1) * 0.01; if(ratio == 0)setName(tmp[i].children[4].children[0].children[0], ratio, 0); else setName(tmp[i].children[4].children[0].children[0], ratio, 114514); tmp[i].style.transform = "translateX(" + -i*10 + ")"; } // info只有刷新才会更新是什么机制。。。 }32 行未改动 img.style.height = "50px"; sc.parentNode.appendChild(img); sc.remove(); } } }else if(sc.innerText == "Compile Error")sc.innerText = "闪退"; else if(sc.innerText == "Unknown Error")sc.innerText = "断触"; } } } if (location.pathname.includes("/training/")) {109 行未改动全部展开