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

Merge Dev #71

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e5a9ab3
更新介绍
Aug 24, 2023
32a0f8d
更新比较
boomzero Aug 24, 2023
fb076d0
[#60] 在讨论界面增加颜色
Aug 24, 2023
3d3cd3c
Merge branch 'dev' of https://github.com/langningchen/XMOJ-Script int…
Aug 24, 2023
5b70ba3
[#58] 验证码没有通过之前不允许提交
Aug 24, 2023
714b25b
更新脚本地址
Aug 24, 2023
e1fd2f4
更新文档
Aug 24, 2023
a37caf5
Add prerelease script
Aug 24, 2023
f42853e
更新BBS爬取器及其内容
Aug 24, 2023
a8a5b06
Merge branch 'master' into dev
boomzero Aug 24, 2023
819a36b
Remove Support for Safari, fix #70
boomzero Aug 24, 2023
7bf6e03
Remove debug code
boomzero Aug 24, 2023
e4f3576
Remove Stuff that is not part of the GPL licence
boomzero Aug 24, 2023
ec2f7ab
Add contributing section
boomzero Aug 24, 2023
2f80e4f
#73 删除复制要数据语句
boomzero Aug 24, 2023
c33f0ea
Merge pull request #74 from langningchen/boomzero-patch-1
boomzero Aug 24, 2023
1f46c6c
根据测试, 这个没用
boomzero Aug 24, 2023
cd80d33
Revert "根据测试, 这个没用"
Aug 25, 2023
5822abd
Revert "#73 删除复制要数据语句"
Aug 25, 2023
c5ca388
Revert "Remove debug code"
Aug 25, 2023
b0a0252
Revert "Remove Support for Safari, fix #70"
Aug 25, 2023
70a6805
更改讨论编辑按钮显示方式
Aug 25, 2023
2f09bc1
[#60] 增加姓名颜色显示
Aug 25, 2023
0f71019
[#70] 增加不支持Safari的说明
Aug 25, 2023
c5bf682
准备更新数据库
Aug 25, 2023
4313349
数据同步
Aug 25, 2023
c2b35ec
更新数据库结构
Aug 25, 2023
37732f5
[#65] 解决避免多次提醒
Aug 25, 2023
aa58f8a
[Bug] 申请数据按钮无效 #73
Aug 25, 2023
8300f54
[Bug] Post time is set using the incorrect time zone #48
Aug 25, 2023
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
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

[点击此处访问官网查看更多内容](https://web.xmoj-bbs.tech)

### 安装
请参考 [官网介绍](https://web.xmoj-bbs.tech) 。

### 介绍

XMOJ增强脚本是一个功能强大的浏览器扩展,旨在提升用户在XMOJ(虚拟在线竞赛平台)上的使用体验。
Expand Down Expand Up @@ -75,3 +72,9 @@ XMOJ增强脚本是一个功能强大的浏览器扩展,旨在提升用户在X
无论您是新手还是经验丰富的竞赛选手,XMOJ增强脚本都将为您的比赛体验带来前所未有的便利和效率。
立即安装并体验吧!


### 安装
请参考 [官网介绍](https://web.xmoj-bbs.tech) 。

boomzero marked this conversation as resolved.
Show resolved Hide resolved
### 贡献
请注意, 请将所有 pull request 提交到`dev`分支, 否则他们会被关闭。
65 changes: 0 additions & 65 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
// @grant GM_setClipboard
// @connect www.xmoj-bbs.tech
// @connect challenges.cloudflare.com
// @connect 127.0.0.1
boomzero marked this conversation as resolved.
Show resolved Hide resolved
// @license GPL
// ==/UserScript==

Expand Down Expand Up @@ -2441,70 +2440,6 @@ else {
});
}
} else if (location.pathname == "/reinfo.php") {
if (document.querySelector("#results > div") == undefined) {
document.querySelector("#results").parentElement.innerHTML = "没有测试点信息";
}
else {
for (let i = 0; i < document.querySelector("#results > div").children.length; i++) {
let CurrentElement = document.querySelector("#results > div").children[i].children[0].children[0].children[0];
let Temp = CurrentElement.innerText.substring(0, CurrentElement.innerText.length - 2).split("/");
CurrentElement.innerText = TimeToStringTime(Temp[0]) + "/" + SizeToStringSize(Temp[1]);
CurrentElement = CurrentElement.parentNode.parentNode;
let CopyButton = document.createElement("div"); CurrentElement.appendChild(CopyButton);
CopyButton.style.display = "none";
CopyButton.style.position = "absolute";
CopyButton.style.fontSize = "12px";
CopyButton.style.margin = "6px";
CopyButton.innerText = "点此复制获取数据的语句";
CurrentElement.addEventListener("mouseover", () => {
let Temp = CurrentElement.children;
for (let j = 0; j < Temp.length; j++) {
Temp[j].style.display = "none";
}
Temp[Temp.length - 1].style.display = "";
});
CurrentElement.addEventListener("mouseout", () => {
let Temp = CurrentElement.children;
for (let j = 0; j < Temp.length; j++) {
Temp[j].style.display = "";
}
Temp[Temp.length - 1].style.display = "none";
});
CurrentElement.addEventListener("click", () => {
let SolutionID = SearchParams.get("sid");
let ContestID = localStorage.getItem("UserScript-Solution-" + SolutionID + "-Contest");
if (ContestID == null) {
let ProblemID = localStorage.getItem("UserScript-Solution-" + SolutionID + "-Problem");
let ProblemName = localStorage.getItem("UserScript-Problem-" + ProblemID + "-Name");
let CaseID = CurrentElement.children[1].innerText.substring(1);
GM_setClipboard("高老师,能发给我" +
ProblemID + "题:" + ProblemName + "," +
"提交编号" + SolutionID + "," +
"#" + CaseID + "测试点" +
"的数据吗?谢谢");
}
else {
let ContestName = localStorage.getItem("UserScript-Contest-" + ContestID + "-Name");
let ContestProblemID = localStorage.getItem("UserScript-Solution-" + SolutionID + "-PID-Contest");
let ProblemID = localStorage.getItem("UserScript-Contest-" + ContestID + "-Problem-" + (ContestProblemID.charCodeAt(0) - 65) + "-PID");
let ProblemName = localStorage.getItem("UserScript-Problem-" + ProblemID + "-Name");
let CaseID = CurrentElement.children[1].innerText.substring(1);
GM_setClipboard("高老师,能发给我" +
"比赛" + ContestID + ":" +
ContestName + "," +
ContestProblemID + "题(" + ProblemID + "):" + ProblemName + "," +
"提交编号" + SolutionID + "," +
"#" + CaseID + "测试点" +
"的数据吗?谢谢");
}
CopyButton.innerText = "已复制";
setTimeout(() => {
CopyButton.innerText = "点此复制获取数据的语句";
}, 1000);
});
CurrentElement.onmouseout();
}
}
boomzero marked this conversation as resolved.
Show resolved Hide resolved
} else if (location.pathname == "/downloads.php") {
let SoftwareList = document.querySelector("body > div > ul");
SoftwareList.remove();
Expand Down
53 changes: 0 additions & 53 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -891,59 +891,6 @@ <h2 class="accordion-header">
copy of the Program in return for a fee.

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

&lt;one line to give the program's name and a brief idea of what it does.&gt;
Copyright (C) &lt;year&gt; &lt;name of author&gt;

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

&lt;program&gt; Copyright (C) &lt;year&gt; &lt;name of author&gt;
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
&lt;https://www.gnu.org/licenses/&gt;.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
&lt;https://www.gnu.org/licenses/why-not-lgpl.html&gt;.
langningchen marked this conversation as resolved.
Show resolved Hide resolved
</pre>
</div>
</div>
Expand Down