xmoj-script 1.2.67 → 1.2.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Update.json CHANGED
@@ -2603,6 +2603,17 @@
2603
2603
  }
2604
2604
  ],
2605
2605
  "Notes": "No release notes were provided for this release."
2606
+ },
2607
+ "1.2.68": {
2608
+ "UpdateDate": 1727926979282,
2609
+ "Prerelease": true,
2610
+ "UpdateContents": [
2611
+ {
2612
+ "PR": 743,
2613
+ "Description": "feat: 优化等待状态的显示"
2614
+ }
2615
+ ],
2616
+ "Notes": "No release notes were provided for this release."
2606
2617
  }
2607
2618
  }
2608
2619
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.67
3
+ // @version 1.2.68
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -779,6 +779,9 @@ async function main() {
779
779
  .status_n:hover {
780
780
  box-shadow: #fe4c61 1px 1px 10px 0px !important;
781
781
  }
782
+ .status_w:hover {
783
+ box-shadow: #ffa900 1px 1px 10px 0px !important;
784
+ }
782
785
  .test-case {
783
786
  border-radius: 5px !important;
784
787
  }
@@ -841,14 +844,18 @@ async function main() {
841
844
  }
842
845
 
843
846
  if (UtilityEnabled("ReplaceYN")) {
844
- Temp = document.getElementsByClassName("status_y");
847
+ Temp = document.getElementsByClassName("status_y");//AC
845
848
  for (let i = 0; i < Temp.length; i++) {
846
849
  Temp[i].innerText = "✓";
847
850
  }
848
- Temp = document.getElementsByClassName("status_n");
851
+ Temp = document.getElementsByClassName("status_n");//WA
849
852
  for (let i = 0; i < Temp.length; i++) {
850
853
  Temp[i].innerText = "✗";
851
854
  }
855
+ Temp = document.getElementsByClassName("status_w");//Waiting
856
+ for (let i = 0; i < Temp.length; i++) {
857
+ Temp[i].innerText = "⏳";
858
+ }
852
859
  }
853
860
 
854
861
  Temp = document.getElementsByClassName("page-item");
@@ -1352,7 +1359,7 @@ async function main() {
1352
1359
  }, {
1353
1360
  "ID": "DarkPicture", "Type": "A", "Name": "使用反色的题目图片(需要启用暗色模式)"
1354
1361
  }, {"ID": "AddAnimation", "Type": "A", "Name": "增加动画"}, {
1355
- "ID": "ReplaceYN", "Type": "F", "Name": "题目前对错的Y和N替换为勾和叉"
1362
+ "ID": "ReplaceYN", "Type": "F", "Name": "题目前状态提示替换为好看的图标"
1356
1363
  }, {"ID": "RemoveAlerts", "Type": "D", "Name": "去除多余反复的提示"}, {
1357
1364
  "ID": "Translate", "Type": "F", "Name": "统一使用中文,翻译了部分英文*"
1358
1365
  }, {
@@ -1554,7 +1561,7 @@ async function main() {
1554
1561
  window.location.href = SubmitLink.href;
1555
1562
  console.log(SubmitLink.href);
1556
1563
  };
1557
- Temp = document.querySelectorAll(".sampledata");
1564
+ var Temp = document.querySelectorAll(".sampledata");
1558
1565
  for (var i = 0; i < Temp.length; i++) {
1559
1566
  Temp[i].parentElement.className = "card";
1560
1567
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.67",
3
+ "version": "1.2.68",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {