xmoj-script 1.1.15 → 1.1.19

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.
@@ -19,5 +19,5 @@ jobs:
19
19
  - uses: actions/stale@v8
20
20
  with:
21
21
  repo-token: ${{ steps.generate_token.outputs.token }}
22
- days-before-stale: 7
22
+ days-before-stale: 14
23
23
  exempt-issue-labels: frozen
@@ -10,4 +10,4 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
12
  - uses: actions/checkout@v4
13
- - uses: actions/dependency-review-action@v3
13
+ - uses: actions/dependency-review-action@v4
@@ -0,0 +1,40 @@
1
+ name: Generate sitemap
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+
7
+ jobs:
8
+ sitemap_job:
9
+ runs-on: ubuntu-latest
10
+ name: Generate a sitemap
11
+ steps:
12
+ - name: Checkout the repo
13
+ uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0
16
+
17
+ - name: Generate the sitemap
18
+ id: sitemap
19
+ uses: cicirello/generate-sitemap@v1
20
+ with:
21
+ exclude-paths: /404.html
22
+ base-url-path: https://xmoj-bbs.tech/
23
+
24
+ - name: Output stats
25
+ run: |
26
+ echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
27
+ echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
28
+ echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
29
+
30
+ - name: Create Pull Request
31
+ uses: peter-evans/create-pull-request@v5.0.2
32
+ with:
33
+ title: "Automated sitemap update"
34
+ body: >
35
+ Automated changes in sitemap.xml.
36
+ commit-message: "Automated sitemap update."
37
+ author: PythonSmall-Q <seanoj_noreply@yeah.net>
38
+ committer: PythonSmall-Q <seanoj_noreply@yeah.net>
39
+ branch: create-pull-request/sitemap
40
+ delete-branch: true
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  ### 介绍
17
17
 
18
- 小明的OJ是一个功能强大的浏览器扩展,旨在提升用户在小明的OJ(某虚拟在线竞赛平台)上的使用体验。
18
+ `xmoj-script` 是一个功能强大的浏览器扩展,旨在提升用户在小明的OJ(某虚拟在线竞赛平台)上的使用体验。
19
19
  该脚本通过添加多种实用功能和界面优化,使用户能够更高效地参与竞赛、管理代码和享受更好的界面交互。
20
20
 
21
21
  - **比赛ACM排名与下载功能**:允许用户查看比赛的ACM排名,并提供下载选项,方便离线查阅。
package/Update.json CHANGED
@@ -922,10 +922,10 @@
922
922
  },
923
923
  {
924
924
  "PR": 356,
925
- "Description": "增加script-cat统计模块"
925
+ "Description": "N/A"
926
926
  }
927
927
  ],
928
- "Notes": "收集用户的版本信息,设备型号等非敏感数据 + 修复题解标题"
928
+ "Notes": "修复题解标题"
929
929
  },
930
930
  "1.1.15": {
931
931
  "UpdateDate": 1705807807990,
@@ -937,7 +937,85 @@
937
937
  }
938
938
  ],
939
939
  "Notes": "This release fixes a lot of things"
940
-
940
+ },
941
+ "1.1.16": {
942
+ "UpdateDate": 1705807913261,
943
+ "Prerelease": false,
944
+ "UpdateContents": [
945
+ {
946
+ "PR": 327,
947
+ "Description": "优化用户体验"
948
+ },
949
+ {
950
+ "PR": 329,
951
+ "Description": "增加权限"
952
+ },
953
+ {
954
+ "PR": 340,
955
+ "Description": "add the native link"
956
+ },
957
+ {
958
+ "PR": 356,
959
+ "Description": "N/A"
960
+ },
961
+ {
962
+ "PR": 355,
963
+ "Description": "fix #332"
964
+ },
965
+ {
966
+ "PR": 357,
967
+ "Description": "cleanup"
968
+ }
969
+ ],
970
+ "Notes": "No release notes were provided for this release."
971
+ },
972
+ "1.1.17": {
973
+ "UpdateDate": 1705808495397,
974
+ "Prerelease": false,
975
+ "UpdateContents": [
976
+ {
977
+ "PR": 327,
978
+ "Description": "优化用户体验"
979
+ },
980
+ {
981
+ "PR": 329,
982
+ "Description": "增加权限"
983
+ },
984
+ {
985
+ "PR": 340,
986
+ "Description": "add the native link"
987
+ },
988
+ {
989
+ "PR": 356,
990
+ "Description": "N/A"
991
+ },
992
+ {
993
+ "PR": 355,
994
+ "Description": "fix #332"
995
+ },
996
+ {
997
+ "PR": 357,
998
+ "Description": "cleanup"
999
+ }
1000
+ ],
1001
+ "Notes": "No release notes were provided for this release."
1002
+ },
1003
+ "1.1.18": {
1004
+ "UpdateDate": 1705813603117,
1005
+ "Prerelease": false,
1006
+ "UpdateContents": [],
1007
+ "Notes": "No release notes were provided for this release."
1008
+ },
1009
+ "1.1.19": {
1010
+ "UpdateDate": 1705841193051,
1011
+ "Prerelease": true,
1012
+ "UpdateContents": [
1013
+ {
1014
+ "PR": 372,
1015
+ "Description": "use the same peram (?to_user) as xmoj"
1016
+ }
1017
+ ],
1018
+ "Notes": "No release notes were provided for this release."
941
1019
  }
942
1020
  }
943
1021
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.15
3
+ // @version 1.1.19
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -946,7 +946,7 @@ else {
946
946
  ToastViewButton.classList.add("btn", "btn-primary", "btn-sm");
947
947
  ToastViewButton.innerText = "查看";
948
948
  ToastViewButton.addEventListener("click", () => {
949
- open("https://www.xmoj.tech/mail.php?other=" + MentionList[i].FromUserID, "_blank");
949
+ open("https://www.xmoj.tech/mail.php?to_user=" + MentionList[i].FromUserID, "_blank");
950
950
  RequestAPI("ReadMailMention", {
951
951
  "MentionID": Number(MentionList[i].MentionID)
952
952
  }, () => { });
@@ -3568,7 +3568,7 @@ int main()
3568
3568
  }
3569
3569
  });
3570
3570
  } else if (location.pathname == "/mail.php") {
3571
- if (SearchParams.get("other") == null) {
3571
+ if (SearchParams.get("to_user") == null) {
3572
3572
  document.querySelector("body > div > div.mt-3").innerHTML = `<div class="row g-2 align-items-center">
3573
3573
  <div class="col-auto form-floating">
3574
3574
  <input class="form-control" id="Username" placeholder=" " spellcheck="false" data-ms-editor="true">
@@ -3612,7 +3612,7 @@ int main()
3612
3612
  let Row = document.createElement("tr"); ReceiveTable.children[1].appendChild(Row);
3613
3613
  let UsernameCell = document.createElement("td"); Row.appendChild(UsernameCell);
3614
3614
  let UsernameSpan = document.createElement("span"); UsernameCell.appendChild(UsernameSpan);
3615
- GetUsernameHTML(UsernameSpan, Data[i].OtherUser, false, "https://www.xmoj.tech/mail.php?other=");
3615
+ GetUsernameHTML(UsernameSpan, Data[i].OtherUser, false, "https://www.xmoj.tech/mail.php?to_user=");
3616
3616
  if (Data[i].UnreadCount != 0) {
3617
3617
  let UnreadCountSpan = document.createElement("span"); UsernameCell.appendChild(UnreadCountSpan);
3618
3618
  UnreadCountSpan.className = "ms-1 badge text-bg-danger";
@@ -3687,7 +3687,7 @@ int main()
3687
3687
  </thead>
3688
3688
  <tbody></tbody>
3689
3689
  </table>`;
3690
- GetUsernameHTML(ToUser, SearchParams.get("other"));
3690
+ GetUsernameHTML(ToUser, SearchParams.get("to_user"));
3691
3691
  let RefreshMessage = (Silent = true) => {
3692
3692
  if (!Silent) {
3693
3693
  MessageTable.children[1].innerHTML = "";
@@ -3700,7 +3700,7 @@ int main()
3700
3700
  }
3701
3701
  }
3702
3702
  RequestAPI("GetMail", {
3703
- "OtherUser": String(SearchParams.get("other"))
3703
+ "OtherUser": String(SearchParams.get("to_user"))
3704
3704
  }, async (ResponseData) => {
3705
3705
  if (ResponseData.Success) {
3706
3706
  ErrorElement.style.display = "none";
@@ -3744,7 +3744,7 @@ int main()
3744
3744
  Send.children[0].style.display = "";
3745
3745
  let ContentData = Content.value;
3746
3746
  RequestAPI("SendMail", {
3747
- "ToUser": String(SearchParams.get("other")),
3747
+ "ToUser": String(SearchParams.get("to_user")),
3748
3748
  "Content": String(ContentData)
3749
3749
  }, (ResponseData) => {
3750
3750
  Send.disabled = false;
package/index.html CHANGED
@@ -60,7 +60,7 @@
60
60
  <div id="Introduce" class="container mb-3">
61
61
  <h2>介绍</h2>
62
62
  <p>
63
- 小明的OJ是一个功能强大的浏览器扩展,旨在提升用户在小明的OJ(某虚拟在线竞赛平台)上的使用体验。
63
+ 小明的OJ增强脚本是一个功能强大的浏览器扩展,旨在提升用户在小明的OJ(某虚拟在线竞赛平台)上的使用体验。
64
64
  该脚本通过添加多种实用功能和界面优化,使用户能够更高效地参与竞赛、管理代码和享受更好的界面交互。
65
65
  </p>
66
66
  <div id="IntroduceCarousel" class="carousel slide col-8" data-bs-ride="carousel">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.15",
3
+ "version": "1.1.19",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {