xmoj-script 1.1.51 → 1.1.52

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.
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/XMOJ-Script.iml" filepath="$PROJECT_DIR$/.idea/XMOJ-Script.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/Update.json CHANGED
@@ -1380,6 +1380,17 @@
1380
1380
  }
1381
1381
  ],
1382
1382
  "Notes": "No release notes were provided for this release."
1383
+ },
1384
+ "1.1.52": {
1385
+ "UpdateDate": 1711848297024,
1386
+ "Prerelease": true,
1387
+ "UpdateContents": [
1388
+ {
1389
+ "PR": 493,
1390
+ "Description": "Make the dismiss button work + improve showsource"
1391
+ }
1392
+ ],
1393
+ "Notes": "No release notes were provided for this release."
1383
1394
  }
1384
1395
  }
1385
1396
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.51
3
+ // @version 1.1.52
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -934,6 +934,7 @@ async function main() {
934
934
  let ToastDismissButton = document.createElement("button");
935
935
  ToastDismissButton.type = "button";
936
936
  ToastDismissButton.classList.add("btn", "btn-secondary", "btn-sm", "me-2");
937
+ ToastDismissButton.setAttribute("data-bs-dismiss", "toast");
937
938
  ToastDismissButton.innerText = "忽略";
938
939
  ToastDismissButton.addEventListener("click", () => {
939
940
  RequestAPI("ReadMailMention", {
@@ -3567,7 +3568,7 @@ int main()
3567
3568
  .then((Response) => {
3568
3569
  return Response.text();
3569
3570
  }).then((Response) => {
3570
- Code = Response;
3571
+ Code = Response.replace("\n<!--not cached-->\n", "");
3571
3572
  });
3572
3573
  } else {
3573
3574
  if (localStorage.getItem("UserScript-LastUploadedStdTime") === undefined || new Date().getTime() - localStorage.getItem("UserScript-LastUploadedStdTime") > 1000 * 60 * 60 * 24 * 30) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {