标题
增加 1 行删除 1 行
1phigros in luogu 插件修改版1Phigros in luogu 插件修改版
正文
增加 40 行删除 14 行
123456789101112 行未改动2425262728293031328 行未改动41424344454647484950515253542 行未改动57585960616263646566676849 行未改动11811912012112212312412512612712812932 行未改动16216316416516616716816917038 行未改动20921021121221321421521621713 行未改动23123223323423523623723823924024124224324414 行未改动259260261262263264265# phigros in luogu 插件by Unknown Fixed By ljx_蒟蒻007找不到原作者了,侵权必删7.30 Update:为什么我每次试用都能出新bug。。。现在不是正好一年了~~距上次更新正好一年~~12 行未改动2. 定数数值膨胀(~~第九章预告~~)3. 增加 $4$ 种评测结果4. 修复了题目 AC 后图标无法显示的问题5. 修复了原来的 html 移动机制无法适应各种特殊情况的问题6. 在提交数小于 $20$ 时定数显示问号由于一些神秘原因,在题目列表与题单中,第 $6$ 条可能无法正常显示,需要手动刷新### 功能介绍8 行未改动2. 基于评测结果显示各种判定:::info[演示]:::3. ~~享受各种 bug(~~:::info[演示]:::2 行未改动:::info[源代码]```// ==UserScript==// @name phigros in luogu// @namespace http://tampermonkey.net/// @version 2026-07-30// @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;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);tmp[i].style.transform = "translateX(" + -i*10 + ")";}// info只有刷新才会更新是什么机制。。。}32 行未改动img.style.height = "50px";sc.parentNode.appendChild(img);sc.remove();}}}}}if (location.pathname.includes("/training/")) {38 行未改动if (i != i.parentNode.children[1]) {/*制作一个替身,来修改显示的内容,但不影响原来的数据*/if (i.dataset.phiflag != 1) { // flag:0 没有替身 1:有替身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 (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 c.innerText = "Good";} else if (i.innerText.includes("Compile Error") || i.innerText.includes("CE")) {c.innerText = "闪退";} else if (i.innerText.includes("Unknown Error")) {14 行未改动:::### 其他* ~~感谢机房教练没发现我不在做题~~(?* [猜你喜欢](https://www.luogu.com.cn/training/828814)123456789101112 行未改动2425262728293031328 行未改动414243444546474849505152535455565758596061622 行未改动65666768697071727374757649 行未改动12612712812913013113213313413513613713813914032 行未改动17317417517617717817918018118238 行未改动22122222322422522622722822913 行未改动24324424524624724824925025125225325425525625725825926026126226326426526626726826914 行未改动284285286287288289290291# Phigros in luogu 插件by Unknown Fixed By ljx_蒟蒻007找不到原作者了,侵权必删7.30 & 8.1 Update:为什么我每次试用都能出新bug。。。现在不是正好一年了~~距上次更新正好一年~~12 行未改动2. 定数数值膨胀(~~第九章预告~~)3. 增加 $4$ 种评测结果4. 修复了题目 AC 后图标无法显示的问题5. 修复了原来的 html 移动机制无法适应各种特殊情况的问题6. 在提交数小于 $20$ 或通过数小于 $1$ 时定数显示问号由于一些神秘原因,在题目列表与题单中,第 $6$ 条可能无法正常显示,需要手动刷新### 功能介绍8 行未改动2. 基于评测结果显示各种判定:::info[演示]:::3. 在题目与评测记录页面的分数将被放大 10000 倍,AC 还有神秘 AP 图标:::info[演示]:::4. ~~享受各种 bug(~~:::info[演示]:::2 行未改动:::info[源代码]```// ==UserScript==// @name Phigros in luogu// @namespace http://tampermonkey.net/// @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);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;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 && 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 != ""){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 || (!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)