Skip to content

Add 'liushangchen' to AdminUserList - #1059

Merged
boomzero merged 3 commits into
devfrom
new-admin
Oct 6, 2026
Merged

boomzero merged 3 commits into
devfrom
new-admin

Conversation

@boomzero

@boomzero boomzero commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

What does this PR aim to accomplish?:

Add liushangchen to AdminUserList.

How does this PR accomplish the above?:

Trivial.


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributor's guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented on my proposed changes within the code.
  3. I have tested my changes.
  4. I am willing to help maintain this change if there are issues with it later.
  5. It is compatible with the GNU General Public License v3.0
  6. I have squashed any insignificant commits. (git rebase)
  7. I have checked that another pull request for this purpose does not exist.
  8. I have considered and confirmed that this submission will be valuable to others.
  9. I accept that this submission may not be used, and the pull request can be closed at the will of the maintainer.
  10. I give this submission freely and claim no ownership to its content.
  11. I have verified that my changes work correctly in both the new UI and the old/classic UI.

  • I have read the above and my PR is ready for review. Check this box to confirm

Summary by Sourcery

Add liushangchen to the administrator list and release the change as version 4.0.1.

New Features:

  • Recognize liushangchen as an administrator in the userscript.

Build:

  • Bump the userscript and package versions to 4.0.1.

Chores:

  • Record the 4.0.1 update metadata.

Summary by cubic

Adds liushangchen to the AdminUserList so the script treats that account as an administrator, and bumps the userscript and package versions to 4.0.1 with matching update metadata.

Written for commit 667907e. Summary will update on new commits.

Review in cubic

Signed-off-by: Zhu Chenrui <boomzero_zcr@outlook.com>
@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Sorry @boomzero, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 9 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR updates the userscript’s static AdminUserList so liushangchen receives the same administrator privileges as the existing listed accounts.

File-Level Changes

Change Details Files
Expand the hard-coded administrator allowlist to recognize liushangchen as an admin user.
  • Insert the liushangchen username into AdminUserList alongside the existing administrators.
XMOJ.user.js

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T06:39:39.348125Z 6fb1f31 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hendragon-bot hendragon-bot Bot added the user-script This issue or pull request is related to the main user script label Oct 6, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploying xmoj-script-dev-channel with  Cloudflare Pages  Cloudflare Pages

Latest commit: 667907e
Status: ✅  Deploy successful!
Preview URL: https://3b3f392a.xmoj-script-dev-channel.pages.dev
Branch Preview URL: https://new-admin.xmoj-script-dev-channel.pages.dev

View logs

@pull-request-size pull-request-size Bot added size/S and removed size/XS labels Oct 6, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="Update.json">

<violation number="1" location="Update.json:3957">
P3: This Notes value uses a Markdown link, but the userscript renders Notes through innerHTML (XMOJ.user.js lines 4238 and 5934), so users will see the literal text `[liushangchen](https://www.xmoj.tech/userinfo.php?user=liushangchen)` instead of a clickable link. Every other entry in Update.json uses HTML or plain text; use an HTML anchor here.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread Update.json
"Description": "Add 'liushangchen' to AdminUserList"
}
],
"Notes": "Add [liushangchen](https://www.xmoj.tech/userinfo.php?user=liushangchen) to AdminUserList"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This Notes value uses a Markdown link, but the userscript renders Notes through innerHTML (XMOJ.user.js lines 4238 and 5934), so users will see the literal text [liushangchen](https://www.xmoj.tech/userinfo.php?user=liushangchen) instead of a clickable link. Every other entry in Update.json uses HTML or plain text; use an HTML anchor here.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At Update.json, line 3957:

<comment>This Notes value uses a Markdown link, but the userscript renders Notes through innerHTML (XMOJ.user.js lines 4238 and 5934), so users will see the literal text `[liushangchen](https://www.xmoj.tech/userinfo.php?user=liushangchen)` instead of a clickable link. Every other entry in Update.json uses HTML or plain text; use an HTML anchor here.</comment>

<file context>
@@ -3944,6 +3944,17 @@
+                    "Description": "Add 'liushangchen' to AdminUserList"
+                }
+            ],
+            "Notes": "Add [liushangchen](https://www.xmoj.tech/userinfo.php?user=liushangchen) to AdminUserList"
         }
     }
</file context>

@boomzero
boomzero merged commit f3dda13 into dev Oct 6, 2026
8 checks passed
@boomzero
boomzero deleted the new-admin branch October 6, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S user-script This issue or pull request is related to the main user script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants