Skip to content

Commit

Permalink
Merge pull request #61 from XMOJ-Script-dev/dev
Browse files Browse the repository at this point in the history
@langningchen当作吉祥物 & 优化网站
  • Loading branch information
PythonSmall-Q authored Oct 3, 2023
2 parents 537d357 + c54e154 commit fd9b1ea
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
34 changes: 34 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,40 @@
"Description": "增加名字"
}
]
},
"1.0.203": {
"UpdateDate": 1696342022363,
"Prerelease": true,
"UpdateContents": [
{
"PR": 57,
"Description": "add more credits"
}
]
},
"1.0.204": {
"UpdateDate": 1696342420616,
"Prerelease": true,
"UpdateContents": [
{
"PR": 58,
"Description": "把@langningchen当作吉祥物"
}
]
},
"1.0.205": {
"UpdateDate": 1696345969618,
"Prerelease": false,
"UpdateContents": [
{
"PR": 57,
"Description": "add more credits"
},
{
"PR": 58,
"Description": "把@langningchen当作吉祥物"
}
]
}
}
}
7 changes: 5 additions & 2 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name XMOJ
// @version 1.0.202
// @version 1.0.205
// @description XMOJ增强脚本
// @author @PythonSmall-Q
// @author @langningchen, @PythonSmall-Q and @boomzero
// @namespace https://github/langningchen
// @match http://*.xmoj.tech/*
// @match http://116.62.212.172/*
Expand Down Expand Up @@ -186,6 +186,9 @@ let GetUsernameHTML = async (Element, Username, Simple = false, Href = "http://w
if (AdminUserList.includes(Username)) {
HTMLData += `<span class="badge text-bg-danger ms-2">管理员</span>`;
}
if (Username == "chenlangning"){
HTMLData += `<span class="badge text-bg-success ms-2">吉祥物</span>`;
}
let BadgeInfo = await GetUserBadge(Username);
if (BadgeInfo.Content != "") {
HTMLData += `<span class="badge ms-2" style="background-color: ${BadgeInfo.BackgroundColor}; color: ${BadgeInfo.Color}">${BadgeInfo.Content}</span>`;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ <h2 class="accordion-header">
<h4>安装小明的OJ增强脚本</h4>
<p>
安装用户脚本管理器后,您可以点击
<a href="https://www.seanoj.edu.eu.org/XMOJ.user.js" target="_blank">这里</a>
<a href="./XMOJ.user.js" target="_blank">这里</a>
安装小明的OJ增强脚本。
点击后,Tampermonkey扩展会自动打开,您可以在弹出的提示框中点击“安装”按钮,等待安装完成。
</p>
Expand Down

0 comments on commit fd9b1ea

Please sign in to comment.