xmoj-script 1.1.15 → 1.1.20
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/.github/workflows/Daily.yml +1 -1
- package/.github/workflows/DependencyScan.yml +1 -1
- package/.github/workflows/sitemap-automation.yml +40 -0
- package/README.md +1 -1
- package/Update.json +92 -3
- package/XMOJ.user.js +9 -9
- package/index.html +1 -1
- package/package.json +1 -1
- package/sitemap.xml +7 -6
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_1_20,_20_40_[Changes]/shelved.patch +0 -27
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_2024_1_20__20_40__Changes_.xml +0 -4
- package/.idea/workspace.xml +0 -87
- package/sitemap-live/0.xml +0 -26
@@ -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
package/Update.json
CHANGED
@@ -922,10 +922,10 @@
|
|
922
922
|
},
|
923
923
|
{
|
924
924
|
"PR": 356,
|
925
|
-
"Description": "
|
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,96 @@
|
|
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."
|
1019
|
+
},
|
1020
|
+
"1.1.20": {
|
1021
|
+
"UpdateDate": 1705929267062,
|
1022
|
+
"Prerelease": true,
|
1023
|
+
"UpdateContents": [
|
1024
|
+
{
|
1025
|
+
"PR": 375,
|
1026
|
+
"Description": "add spellcheck"
|
1027
|
+
}
|
1028
|
+
],
|
1029
|
+
"Notes": "This release enables spell checking for bbs and short_msg! 🎉\nI did it 5 minutes after proposing it, swx."
|
941
1030
|
}
|
942
1031
|
}
|
943
1032
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.20
|
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?
|
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("
|
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?
|
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("
|
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("
|
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("
|
3747
|
+
"ToUser": String(SearchParams.get("to_user")),
|
3748
3748
|
"Content": String(ContentData)
|
3749
3749
|
}, (ResponseData) => {
|
3750
3750
|
Send.disabled = false;
|
@@ -3913,7 +3913,7 @@ int main()
|
|
3913
3913
|
<div>
|
3914
3914
|
<label for="ContentElement" class="mb-1">回复</label>
|
3915
3915
|
<div class="input-group">
|
3916
|
-
<textarea class="col-6 form-control" id="ContentElement" rows="3" placeholder="请输入内容"></textarea>
|
3916
|
+
<textarea spellcheck="true" class="col-6 form-control" id="ContentElement" rows="3" placeholder="请输入内容"></textarea>
|
3917
3917
|
<div class="col-6 form-control" id="PreviewTab"></div>
|
3918
3918
|
</div>
|
3919
3919
|
<div class="cf-turnstile mt-2" id="CaptchaContainer"></div>
|
@@ -4094,7 +4094,7 @@ int main()
|
|
4094
4094
|
</div>
|
4095
4095
|
</div>
|
4096
4096
|
<div class="input-group">
|
4097
|
-
<textarea class="col-6 form-control" id="ContentElement" rows="3" placeholder="请输入内容"></textarea>
|
4097
|
+
<textarea spellcheck="true" class="col-6 form-control" id="ContentElement" rows="3" placeholder="请输入内容"></textarea>
|
4098
4098
|
<div class="col-6 form-control" id="PreviewTab"></div>
|
4099
4099
|
</div>
|
4100
4100
|
<div class="cf-turnstile mt-2" id="CaptchaContainer"></div>
|
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
|
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
package/sitemap.xml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
</
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
3
|
+
<url>
|
4
|
+
<loc>https://xmoj-bbs.tech/</loc>
|
5
|
+
<lastmod>2024-01-21T12:49:34+08:00</lastmod>
|
6
|
+
</url>
|
7
|
+
</urlset>
|