xmoj-script 2.4.1 → 2.4.2

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
@@ -3091,6 +3091,17 @@
3091
3091
  }
3092
3092
  ],
3093
3093
  "Notes": "No release notes were provided for this release."
3094
+ },
3095
+ "2.4.2": {
3096
+ "UpdateDate": 1759413584731,
3097
+ "Prerelease": true,
3098
+ "UpdateContents": [
3099
+ {
3100
+ "PR": 863,
3101
+ "Description": "修复“NaN年前“"
3102
+ }
3103
+ ],
3104
+ "Notes": "修复“NaN年前“"
3094
3105
  }
3095
3106
  }
3096
3107
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 2.4.1
3
+ // @version 2.4.2
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -81,7 +81,7 @@ let SmartAlert = (Message) => {
81
81
  */
82
82
  let GetRelativeTime = (Input) => {
83
83
  try {
84
- Input = new Date(Input);
84
+ Input = new Date(parseInt(Input));
85
85
  let Now = new Date().getTime();
86
86
  let Delta = Now - Input.getTime();
87
87
  let RelativeName = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {