Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3944,6 +3944,17 @@
}
],
"Notes": "<p><strong>重大变更:</strong>Rating 改用新的计算方式,按解题能力而不是 AC 率计分,所有用户的 Rating 都会变化,不能和旧版的分数直接比较;颜色分档也随之调整,原来的黄色一档改为橙色。</p>\n<p>本次正式版修复了截至发布时 GitHub 上所有未关闭的问题。顶栏不再遮挡页面内容(包括启用广告拦截等浏览器过滤规则时),新旧页面的顶栏字体保持一致;账号修改与个人信息页面恢复正常,提交统计图重新显示。</p>\n<p>用户 Rating 改为依据解题能力而非 AC 率计算,各页面和深浅色主题使用同一套更易辨认的颜色;比赛排名页面也会显示 Rating 颜色。脚本管理员改为以紫色用户名标识。回放视频页面的进度条不再被当作图片放大。</p>"
},
"4.0.1": {
"UpdateDate": 1791268721734,
"Prerelease": true,
"UpdateContents": [
{
"PR": 1059,
"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>

}
}
}
4 changes: 2 additions & 2 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 4.0.0
// @version 4.0.1
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -852,7 +852,7 @@ const DefaultOffSettings = ["DebugMode", "SuperDebug", "ReplaceXM"];
// editor randomly fails to load (microsoft/monaco-editor#5015). 0.52.2 ships a single bundle
// and is not affected. cdnjs has no fixed release newer than 0.53.0 yet.
const MonacoCDN = "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.2/min/vs";
const AdminUserList = ["zhuchenrui2", "shanwenxiao", "chenlangning", "admin"];
const AdminUserList = ["zhuchenrui2", "shanwenxiao", "chenlangning", "liushangchen", "admin"];

// Pre-declared so that closures defined before the async init block can reference them
let CurrentUsername;
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": "4.0.0",
"version": "4.0.1",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down