xmoj-script 1.2.74 → 1.2.75

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
@@ -2692,6 +2692,17 @@
2692
2692
  }
2693
2693
  ],
2694
2694
  "Notes": "This was so hard......"
2695
+ },
2696
+ "1.2.75": {
2697
+ "UpdateDate": 1738974525711,
2698
+ "Prerelease": true,
2699
+ "UpdateContents": [
2700
+ {
2701
+ "PR": 767,
2702
+ "Description": "进入讨论后给出题目的链接 "
2703
+ }
2704
+ ],
2705
+ "Notes": "No release notes were provided for this release."
2695
2706
  }
2696
2707
  }
2697
2708
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.74
3
+ // @version 1.2.75
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -4847,7 +4847,7 @@ int main()
4847
4847
  Delete.style.display = "";
4848
4848
  }
4849
4849
  }
4850
- PostTitle.innerText = ResponseData.Data.Title + (ResponseData.Data.ProblemID == 0 ? "" : ` - 题目` + ResponseData.Data.ProblemID);
4850
+ PostTitle.innerHTML = ResponseData.Data.Title + (ResponseData.Data.ProblemID == 0 ? "" : ` - 题目` + ` <a href="https://www.xmoj.tech/problem.php?id=` + ResponseData.Data.ProblemID + `">` + ResponseData.Data.ProblemID + `</a>`);
4851
4851
  document.title = "讨论" + ThreadID + ": " + ResponseData.Data.Title;
4852
4852
  PostAuthor.innerHTML = "<span></span>";
4853
4853
  GetUsernameHTML(PostAuthor.children[0], ResponseData.Data.UserID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.74",
3
+ "version": "1.2.75",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {