Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
c1d7885
2.6.0
github-actions[bot] Feb 7, 2026
8a29ef2
Update to release 2.6.0
github-actions[bot] Feb 7, 2026
ca77197
2.6.1
github-actions[bot] Feb 7, 2026
57df3bc
Update version info to 2.6.1
github-actions[bot] Feb 7, 2026
2a5d2f0
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
7ea068f
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
ade39a9
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
cd4906a
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
b451102
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
a2af9fe
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
414642c
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
9a5b5de
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
92f7077
Update time and description of 2.6.1
github-actions[bot] Feb 7, 2026
9bf1a99
Merge pull request #892 from XMOJ-Script-dev/actions/temp
PythonSmall-Q Feb 7, 2026
817c130
Update XMOJ.user.js
PythonSmall-Q Feb 7, 2026
4cdc54d
Modify UpdateToRelease workflow for bot triggers
PythonSmall-Q Feb 7, 2026
1dab5ca
2.7.0
github-actions[bot] Feb 7, 2026
d2e3f75
Update to release 2.7.0
github-actions[bot] Feb 7, 2026
7e6bf2b
2.7.1
github-actions[bot] Feb 7, 2026
4004cc4
Update version info to 2.7.1
github-actions[bot] Feb 7, 2026
f4f26e6
2.7.2
github-actions[bot] Feb 7, 2026
dd3cce0
Update version info to 2.7.2
github-actions[bot] Feb 7, 2026
946553f
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
a5f2acd
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
973aaea
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
d383af3
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
4183265
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
e42dce2
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
6d05983
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
d66370d
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
fa78980
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
114fbd1
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
d6ba986
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
d6ac92b
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
847343a
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
2b94ef2
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
7a3a0b9
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
f50ae30
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
d3fd5d6
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
4e61ec4
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
a0376cb
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
b64bcba
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
fb1037a
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
c13fda1
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
acd5686
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
7909fea
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
ea460a3
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
c003572
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
48319db
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
b7c8eda
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
25247b8
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
694e55c
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
6bb6ab8
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
a18af60
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
12cc69d
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
7dd3786
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
cc59f73
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
4506bca
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
bcc062a
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
f0df264
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
b621ef8
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
8ead8ad
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
81f4b72
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
5bbee39
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
852c3cd
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
a84afef
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
62a39b1
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
85ebfbe
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
b3de29a
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
8abf9ea
Update time and description of 2.7.2
github-actions[bot] Feb 7, 2026
8e01ee2
Merge pull request #896 from XMOJ-Script-dev/actions/temp
boomzero Feb 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/UpdateToRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
UpdateToRelease:
runs-on: ubuntu-latest
# 添加条件:如果是 bot 触发的则跳过,避免无限循环
if: github.event.pull_request.user.login != 'github-actions[bot]'
permissions:
pull-requests: write
contents: write
Expand All @@ -25,7 +27,7 @@ jobs:
gh pr comment ${{ github.event.pull_request.number }} --body "请向\`dev\`分支提交pull request, 本pull request将被自动关闭"
gh pr close ${{ github.event.pull_request.number }}
else
node ./Update/UpdateToRelease.js ${{ secrets.GITHUB_TOKEN }} ${{ github.event.number }} "$PR_BODY"
node ./Update/UpdateToRelease.js ${{ secrets.GITHUB_TOKEN }} ${{ github.event.pull_request.number }} "$PR_BODY"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
63 changes: 63 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3225,6 +3225,69 @@
}
],
"Notes": "No release notes were provided for this release."
},
"2.6.0": {
"UpdateDate": 1770426020324,
"Prerelease": false,
"UpdateContents": [
{
"PR": 876,
"Description": "refactor: simplify SubmitLink selection by querying all anchors and finding by text"
},
{
"PR": 877,
"Description": "fix: problem PID 可能为 null"
},
{
"PR": 888,
"Description": "Fix AC code export for 5-digit question IDs"
}
],
"Notes": "No release notes were provided for this release."
},
"2.6.1": {
"UpdateDate": 1770426401298,
"Prerelease": true,
"UpdateContents": [
{
"PR": 892,
"Description": "Update to release 2.6.0"
}
],
"Notes": "No release notes were provided for this release."
},
"2.7.0": {
"UpdateDate": 1770426883598,
"Prerelease": false,
"UpdateContents": [
{
"PR": 892,
"Description": "Update to release 2.6.0"
}
],
"Notes": "No release notes were provided for this release."
},
"2.7.1": {
"UpdateDate": 1770426896026,
"Prerelease": true,
"UpdateContents": [
{
"PR": 895,
"Description": "Update to release 2.7.0"
}
],
"Notes": "No release notes were provided for this release."
},
"2.7.2": {
"UpdateDate": 1770429143486,
"Prerelease": true,
"UpdateContents": [
{
"PR": 896,
"Description": "Update to release 2.7.0"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
9 changes: 6 additions & 3 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 2.5.3
// @version 2.7.2
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -3008,8 +3008,11 @@ async function main() {
let digitMatch = headerLine.match(/\d+/);
if (!digitMatch) continue;
let CurrentQuestionID = digitMatch[0];
let newlinePos = CurrentCode.indexOf('\n');
CurrentCode = CurrentCode.slice(newlinePos + 1);
let bodyStart = lineBreakPos + 1;
if (CurrentCode[lineBreakPos] === '\r' && CurrentCode[lineBreakPos + 1] === '\n') {
bodyStart = lineBreakPos + 2;
}
CurrentCode = CurrentCode.slice(bodyStart);
CurrentCode = CurrentCode.replaceAll("\r", "");
Zip.file(CurrentQuestionID + ".cpp", CurrentCode);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xmoj-script",
"version": "2.5.3",
"version": "2.7.2",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down
Loading