版本比较
Phigros in luogu 插件修改版
标题
增加 1 行删除 1 行
11phigros in luogu 插件修改版Phigros in luogu 插件修改版正文
增加 40 行删除 14 行
11234567789101112 行未改动242526272828293031328 行未改动4142434445454647484849505152535455565758596061622 行未改动65666768616970636471727374757649 行未改动12612712812913012213113213312513413513613713813914032 行未改动17317417517616617717817918018118238 行未改动22122222322421322522622722822913 行未改动24324424524623524724824925025125225325425525625725825926026126226326424026526626726826914 行未改动284285286287288289290291# phigros in luogu 插件# Phigros in luogu 插件
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$ 条可能无法正常显示,需要手动刷新
### 功能介绍8 行未改动
2. 基于评测结果显示各种判定
:::info[演示]:::
3. ~~享受各种 bug(~~3. 在题目与评测记录页面的分数将被放大 10000 倍,AC 还有神秘 AP 图标
:::info[演示]
:::
4. ~~享受各种 bug(~~
:::info[演示]
:::2 行未改动
:::info[源代码]```// ==UserScript==// @name phigros in luogu// @name Phigros in luogu// @namespace http://tampermonkey.net/// @version 2026-07-30// @description phigros in luogu// @version 2026-08-01// @description Phigros in luogu// @author Unknown Fixed By ljx_蒟蒻007// @match https://www.luogu.com.cn/*// @grant none// @license MIT49 行未改动 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/")) {38 行未改动 if (i != i.parentNode.children[1]) { /* 制作一个替身,来修改显示的内容,但不影响原来的数据 */ if (i.dataset.phiflag != 1) { // flag:0 没有替身 1:有替身 if (i.dataset.phiflag != 1 && i.dataset.phiflag != 2) { i.dataset.phiflag = 1; let s2 = document.createElement("span"); if(h){ s2.className = "lfe-caption tag status-name";13 行未改动 c.style.paddingLeft = "8px"; c.style.paddingRight = "8px"; c.style.display = "block" let m = getScoreByElm(i, h, k), awa = 0; if(m != undefined && m.innerText != "")awa = m.innerText; if(m != undefined && m.innerText != ""){ if(i.dataset.phiflag != 2 && !h){ m.innerText *= 10000; if(m.innerText == 1000000){ let img = document.createElement("img"); img.src = "https://cdn.luogu.com.cn/upload/image_hosting/kl0l200x.png" img.style.height = "50px"; m.parentNode.appendChild(img); m.remove(); } } awa = m.innerText; } i.dataset.phiflag = 2; if (i.innerText.includes("Accepted") || i.innerText.includes("AC")) { c.innerText = "Perfect"; } else if (i.innerText.includes("Unaccepted")) { if(awa == 0)c.innerText = "Miss"; else if(awa < 60)c.innerText = "Bad"; else if(awa < 60 || (!h && awa < 600000))c.innerText = "Bad"; else c.innerText = "Good"; } else if (i.innerText.includes("Compile Error") || i.innerText.includes("CE")) { c.innerText = "闪退"; } else if (i.innerText.includes("Unknown Error")) {14 行未改动:::
### 其他
* 已尝试在评测列表中将分数放大并失败,有大佬会的可以私信qwq* ~~感谢机房教练没发现我不在做题~~ (?* [猜你喜欢](https://www.luogu.com.cn/training/828814)