Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Merge branch 'langningchen/issue524' of https://github.com/langningch…
Browse files Browse the repository at this point in the history
…en/XMOJ-Script into langningchen/issue524
  • Loading branch information
Chen LangNing committed Sep 30, 2023
2 parents 9afefca + 9d80c1a commit bba4ce2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
10 changes: 10 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| 0.3.x | :white_check_mark: |
| 0.2.x | :x: |
| 0.1.x | :x: |

6 changes: 3 additions & 3 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@
]
},
"0.3.182": {
"UpdateDate": 1696039235925,
"UpdateDate": 1696049743852,
"Prerelease": false,
"UpdateContents": [
{
Expand Down Expand Up @@ -625,7 +625,7 @@
]
},
"0.3.185": {
"UpdateDate": 1696053709803,
"UpdateDate": 1696054375491,
"Prerelease": true,
"UpdateContents": [
{
Expand All @@ -635,4 +635,4 @@
]
}
}
}
}
11 changes: 8 additions & 3 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3694,9 +3694,6 @@ int main()
let TurnstileScript = document.createElement("script");
TurnstileScript.src = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=CaptchaLoadedCallback";
document.body.appendChild(TurnstileScript);
if (!isNaN(ProblemID)) {
BoardSelect.style.display = "none";
}
ContentElement.addEventListener("keydown", (Event) => {
if (Event.ctrlKey && Event.keyCode == 13) {
SubmitElement.click();
Expand Down Expand Up @@ -3766,6 +3763,14 @@ int main()
if (SearchParams.get("bid") !== null && SearchParams.get("bid") == Data[i].BoardID) {
RadioInput.checked = true;
}
if (!isNaN(ProblemID)) {
RadioInput.disabled = true;
}
if (Data[i].BoardID == 4) {
if (!isNaN(ProblemID))
RadioInput.checked = true;
RadioInput.disabled = true;
}
let RadioLabel = document.createElement("label");
RadioLabel.className = "form-check-label";
RadioLabel.htmlFor = "Board" + Data[i].BoardID;
Expand Down
2 changes: 1 addition & 1 deletion eula.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

(5) 用户侵害本协议项下XMOJ增强脚本开发组的合法权益的情况下而为维护XMOJ增强脚本开发组的合法权益所必须。

6.3 用户在注册XMOJ增强脚本开发组XMOJ讨论区帐号或使用XMOJ增强脚本开发组XMOJ讨论区服务的过程中,需要提供一些必要的信息,例如:姓名、电话、邮箱、性别、出生年月、名称、注册地址、注册号等。为向用户提供帐号注册服务或进行用户身份识别,需要用户填写手机号码;部分功能需要用户授权使用用户的相机或相册;部分功能需要用户授权访问用户的手机通讯录等。若用户不授权或提供的信息不完整,则无法使用本服务或在使用过程中受到限制。用户授权提供的信息,XMOJ增强脚本开发组承诺将采取措施保护用户的个人信息安全。
6.3 用户在注册XMOJ增强脚本开发组XMOJ讨论区帐号或使用XMOJ增强脚本开发组XMOJ讨论区服务的过程中,需要提供一些必要的信息,例如:姓名、电话、邮箱、性别、出生年月、名称、注册地址、注册号等。为向用户提供帐号注册服务或进行用户身份识别,需要用户填写手机号码;部分功能需要用户授权使用用户的相机或相册;部分功能需要用户授权访问用户的手机通讯录等。若用户不授权或提供的信息不完整,则无法使用本服务或在使用过程中受到限制。用户授权提供的信息,XMOJ增强脚本开发组承诺将采取措施保护用户的个人信息安全。用户同意服务器储存其`phpsessid`的哈希值。

6.4 为了向用户提供更好的用户体验和提高XMOJ增强脚本开发组XMOJ讨论区的服务质量,XMOJ增强脚本开发组将可能会收集使用或向第三方提供用户的非个人隐私信息。XMOJ增强脚本开发组将对该第三方使用用户个人数据的行为进行监督和管理,尽一切可能努力保护用户个人信息的安全。

Expand Down

0 comments on commit bba4ce2

Please sign in to comment.