xmoj-script 1.2.4 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -25
- package/Update.json +49 -0
- package/XMOJ.user.js +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|

|
5
5
|

|
6
6
|

|
7
|
-
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXMOJ-Script-dev%2FXMOJ-Script?ref=badge_shield)
|
8
7
|
|
9
8
|
[点击此处访问官网查看更多内容](https://web.xmoj-bbs.tech)
|
10
9
|
|
@@ -85,27 +84,6 @@
|
|
85
84
|
> [!IMPORTANT]
|
86
85
|
> 请注意, 外部开发者应向`extern-contrib`提交 pull requests。
|
87
86
|
|
88
|
-
### Project Status
|
89
|
-
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXMOJ-Script-dev%2FXMOJ-Script?ref=badge_shield&issueType=license)
|
90
|
-
|
91
|
-
### How to set up a development server
|
92
|
-
```bash
|
93
|
-
cd backend
|
94
|
-
npm install
|
95
|
-
npx wrangler d1 execute DB --file ./Source/Initial.sql --local
|
96
|
-
npx wrangler dev
|
97
|
-
```
|
98
|
-
## Contributors
|
99
|
-
|
100
|
-
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
101
|
-
<!-- prettier-ignore-start -->
|
102
|
-
<!-- markdownlint-disable -->
|
103
|
-
|
104
|
-
<!-- markdownlint-restore -->
|
105
|
-
<!-- prettier-ignore-end -->
|
106
|
-
|
107
|
-
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
108
|
-
|
109
87
|
## Contributors
|
110
88
|
|
111
89
|
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
@@ -127,7 +105,4 @@ npx wrangler dev
|
|
127
105
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
128
106
|
|
129
107
|
|
130
|
-
## License
|
131
|
-
[](https://app.fossa.com/projects/git%2Bgithub.com%2FXMOJ-Script-dev%2FXMOJ-Script?ref=badge_large)
|
132
|
-
|
133
108
|
|
package/Update.json
CHANGED
@@ -1710,6 +1710,55 @@
|
|
1710
1710
|
}
|
1711
1711
|
],
|
1712
1712
|
"Notes": "No release notes were provided for this release."
|
1713
|
+
},
|
1714
|
+
"1.2.5": {
|
1715
|
+
"UpdateDate": 1722044501316,
|
1716
|
+
"Prerelease": true,
|
1717
|
+
"UpdateContents": [
|
1718
|
+
{
|
1719
|
+
"PR": 566,
|
1720
|
+
"Description": "预览版域名切换"
|
1721
|
+
}
|
1722
|
+
],
|
1723
|
+
"Notes": "No release notes were provided for this release."
|
1724
|
+
},
|
1725
|
+
"1.2.6": {
|
1726
|
+
"UpdateDate": 1722048484899,
|
1727
|
+
"Prerelease": false,
|
1728
|
+
"UpdateContents": [
|
1729
|
+
{
|
1730
|
+
"PR": 557,
|
1731
|
+
"Description": "更改获取数据体验(增加报错)"
|
1732
|
+
},
|
1733
|
+
{
|
1734
|
+
"PR": 559,
|
1735
|
+
"Description": "Add CLion"
|
1736
|
+
},
|
1737
|
+
{
|
1738
|
+
"PR": 563,
|
1739
|
+
"Description": "fix #562"
|
1740
|
+
},
|
1741
|
+
{
|
1742
|
+
"PR": 565,
|
1743
|
+
"Description": "短消息增加图床支持"
|
1744
|
+
},
|
1745
|
+
{
|
1746
|
+
"PR": 566,
|
1747
|
+
"Description": "预览版域名切换"
|
1748
|
+
}
|
1749
|
+
],
|
1750
|
+
"Notes": "No release notes were provided for this release."
|
1751
|
+
},
|
1752
|
+
"1.2.7": {
|
1753
|
+
"UpdateDate": 1722063024309,
|
1754
|
+
"Prerelease": true,
|
1755
|
+
"UpdateContents": [
|
1756
|
+
{
|
1757
|
+
"PR": 570,
|
1758
|
+
"Description": "增加公告栏"
|
1759
|
+
}
|
1760
|
+
],
|
1761
|
+
"Notes": "No release notes were provided for this release."
|
1713
1762
|
}
|
1714
1763
|
}
|
1715
1764
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.7
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -390,7 +390,7 @@ if (UtilityEnabled("AutoLogin") && document.querySelector("body > a:nth-child(1)
|
|
390
390
|
}
|
391
391
|
|
392
392
|
let SearchParams = new URLSearchParams(location.search);
|
393
|
-
let ServerURL = (UtilityEnabled("DebugMode") ? "https://ghpages.xmoj-bbs.
|
393
|
+
let ServerURL = (UtilityEnabled("DebugMode") ? "https://ghpages.xmoj-bbs.me/" : "https://www.xmoj-bbs.me")
|
394
394
|
let CurrentUsername = document.querySelector("#profile").innerText;
|
395
395
|
CurrentUsername = CurrentUsername.replaceAll(/[^a-zA-Z0-9]/g, "");
|
396
396
|
let IsAdmin = AdminUserList.indexOf(CurrentUsername) !== -1;
|
@@ -1162,6 +1162,16 @@ async function main() {
|
|
1162
1162
|
<div class="cnt-row-head title">倒计时</div>
|
1163
1163
|
<div class="cnt-row-body">${CountDownData}</div>
|
1164
1164
|
</div>`;
|
1165
|
+
document.querySelector("body > div > div.mt-3 > div > div.col-md-4").innerHTML += `<div class="cnt-row">
|
1166
|
+
<div class="cnt-row-head title">公告</div>
|
1167
|
+
<div class="cnt-row-body">加载中...</div>
|
1168
|
+
</div>`;
|
1169
|
+
RequestAPI("GetNotice", {}, (Response) => {
|
1170
|
+
if (Response.Success) {
|
1171
|
+
document.querySelector("body > div.container > div > div > div.col-md-4 > div:nth-child(2) > div.cnt-row-body").innerHTML = marked.parse(Response.Data["Notice"]);
|
1172
|
+
RenderMathJax();
|
1173
|
+
}
|
1174
|
+
});
|
1165
1175
|
}
|
1166
1176
|
} else if (location.pathname == "/problemset.php") {
|
1167
1177
|
if (UtilityEnabled("Translate")) {
|