Skip to content

Commit

Permalink
Merge pull request #105 from XMOJ-Script-dev/boomzero-patch-4
Browse files Browse the repository at this point in the history
emergency fix
  • Loading branch information
boomzero authored Oct 5, 2023
2 parents c33036a + c5f1b25 commit 3bb1791
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
}
]
},
"1.0.210": {
"1.0.211": {
"UpdateDate": 1696514142283,
"Prerelease": true,
"UpdateContents": [
Expand All @@ -123,6 +123,16 @@
"Description": "自动提交当年代码"
}
]
},
"1.0.212": {
"UpdateDate": 1696515556253,
"Prerelease": true,
"UpdateContents": [
{
"PR": 105,
"Description": "emergency fix"
}
]
}
}
}
10 changes: 5 additions & 5 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 1.0.210
// @version 1.0.212
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -973,7 +973,7 @@ else {
{ "ID": "MoreSTD", "Type": "F", "Name": "查看到更多标程" },
{ "ID": "StudyMode", "Type": "F", "Name": "学术模式", "Children": [
{ "ID": "ApplyData", "Type": "A", "Name": "获取数据功能" },
{ "ID": "AutoCheat", "Type": "A", "Name": "自动提交当年代码" },
{ "ID": "AutoCheat", "Type": "A", "Name": "自动提交当年代码" }
]},
{ "ID": "Rating", "Type": "A", "Name": "添加用户评分和用户名颜色" },
{ "ID": "AutoRefresh", "Type": "A", "Name": "比赛列表、比赛排名界面自动刷新" },
Expand Down Expand Up @@ -1680,10 +1680,10 @@ else {
Temp[i].childNodes[2].innerText);
}
let CheatDiv = document.createElement("div");
CheatDiv.style.marginTop = "20px";
CheatDiv.style.textAlign = "left";
document.querySelector("body > div > div.mt-3 > center").insertBefore(CheatDiv, document.querySelector("#problemset"));
if (UtilityEnabled("AutoCheat")) {
CheatDiv.style.marginTop = "20px";
CheatDiv.style.textAlign = "left";
document.querySelector("body > div > div.mt-3 > center").insertBefore(CheatDiv, document.querySelector("#problemset"));
let AutoCheatButton = document.createElement("button");
CheatDiv.appendChild(AutoCheatButton);
AutoCheatButton.className = "btn btn-outline-secondary";
Expand Down

0 comments on commit 3bb1791

Please sign in to comment.