xmoj-script 1.1.55 → 1.1.56
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/sitemap-automation.yml +43 -43
- package/Update.json +11 -0
- package/XMOJ.user.js +6 -2
- package/package.json +1 -1
@@ -1,45 +1,45 @@
|
|
1
|
-
name: Generate xml sitemap
|
1
|
+
# name: Generate xml sitemap
|
2
2
|
|
3
|
-
on:
|
4
|
-
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
3
|
+
# on:
|
4
|
+
# push:
|
5
|
+
# branches: [ dev ]
|
6
|
+
# jobs:
|
7
|
+
# UpdateVersion:
|
8
|
+
# permissions:
|
9
|
+
# contents: write
|
10
|
+
# runs-on: ubuntu-latest
|
11
|
+
# name: Generate a sitemap
|
12
|
+
# steps:
|
13
|
+
# - name: Checkout the repo
|
14
|
+
# uses: actions/checkout@v2
|
15
|
+
# with:
|
16
|
+
# fetch-depth: 0
|
17
|
+
# - name: Generate new sitemap
|
18
|
+
# id: sitemap
|
19
|
+
# uses: cicirello/generate-sitemap@v1.10.0
|
20
|
+
# with:
|
21
|
+
# additional-extensions: user.js
|
22
|
+
# sitemap-format: xml
|
23
|
+
# drop-html-extension: true
|
24
|
+
# base-url-path: https://xmoj-bbs.tech/
|
25
|
+
# exclude-paths: /404.html
|
26
|
+
# - name: Create PR to dev branch
|
27
|
+
# uses: peter-evans/create-pull-request@v6
|
28
|
+
# with:
|
29
|
+
# # signoff: true
|
30
|
+
# reviewers: PythonSmall-Q, zhouyiqing0304
|
31
|
+
# assignees: PythonSmall-Q, zhouyiqing0304
|
32
|
+
# title: "自动更新sitemap"
|
33
|
+
# body: >
|
34
|
+
# Sitemap Updated! Please merge me!.
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
# - name: Output stats
|
37
|
+
# run: |
|
38
|
+
# echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
|
39
|
+
# echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
|
40
|
+
# echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
|
41
|
+
# - name: Check outputs
|
42
|
+
# if: ${{ steps.cpr.outputs.pull-request-number }}
|
43
|
+
# run: |
|
44
|
+
# echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
45
|
+
# echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
package/Update.json
CHANGED
@@ -1428,6 +1428,17 @@
|
|
1428
1428
|
}
|
1429
1429
|
],
|
1430
1430
|
"Notes": "No release notes were provided for this release."
|
1431
|
+
},
|
1432
|
+
"1.1.56": {
|
1433
|
+
"UpdateDate": 1713525771039,
|
1434
|
+
"Prerelease": true,
|
1435
|
+
"UpdateContents": [
|
1436
|
+
{
|
1437
|
+
"PR": 505,
|
1438
|
+
"Description": "让 ctrl + enter 触发自动提交当年代码"
|
1439
|
+
}
|
1440
|
+
],
|
1441
|
+
"Notes": "No release notes were provided for this release."
|
1431
1442
|
}
|
1432
1443
|
}
|
1433
1444
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.56
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -1842,8 +1842,12 @@ async function main() {
|
|
1842
1842
|
AutoCheatButton.disabled = false;
|
1843
1843
|
if (Submitted) location.reload(); else AutoCheatButton.innerHTML = "自动提交当年代码";
|
1844
1844
|
});
|
1845
|
+
document.addEventListener("keydown", (Event) => {
|
1846
|
+
if (Event.code === 'Enter' && Event.ctrlKey) {
|
1847
|
+
AutoCheatButton.click();
|
1848
|
+
}
|
1849
|
+
});
|
1845
1850
|
}
|
1846
|
-
|
1847
1851
|
if (UtilityEnabled("OpenAllProblem")) {
|
1848
1852
|
let OpenAllButton = document.createElement("button");
|
1849
1853
|
OpenAllButton.className = "btn btn-outline-secondary";
|