xmoj-script 1.2.71 → 1.2.74
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/.github/workflows/main.yml +1 -1
- package/Update.json +37 -0
- package/XMOJ.user.js +3 -3
- package/package.json +1 -1
- package/Compare.md +0 -21
@@ -20,6 +20,6 @@ jobs:
|
|
20
20
|
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
|
21
21
|
fetch-depth: 0 # a full history is required for pull request analysis
|
22
22
|
- name: 'Qodana Scan'
|
23
|
-
uses: JetBrains/qodana-action@v2024.
|
23
|
+
uses: JetBrains/qodana-action@v2024.3
|
24
24
|
env:
|
25
25
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
package/Update.json
CHANGED
@@ -2655,6 +2655,43 @@
|
|
2655
2655
|
}
|
2656
2656
|
],
|
2657
2657
|
"Notes": "No release notes were provided for this release."
|
2658
|
+
},
|
2659
|
+
"1.2.72": {
|
2660
|
+
"UpdateDate": 1738077477956,
|
2661
|
+
"Prerelease": true,
|
2662
|
+
"UpdateContents": [
|
2663
|
+
{
|
2664
|
+
"PR": 758,
|
2665
|
+
"Description": "Fix #714"
|
2666
|
+
}
|
2667
|
+
],
|
2668
|
+
"Notes": "No release notes were provided for this release."
|
2669
|
+
},
|
2670
|
+
"1.2.73": {
|
2671
|
+
"UpdateDate": 1738925550389,
|
2672
|
+
"Prerelease": false,
|
2673
|
+
"UpdateContents": [
|
2674
|
+
{
|
2675
|
+
"PR": 753,
|
2676
|
+
"Description": "fix: 修复代码长度单位换算错误"
|
2677
|
+
},
|
2678
|
+
{
|
2679
|
+
"PR": 758,
|
2680
|
+
"Description": "Fix #714"
|
2681
|
+
}
|
2682
|
+
],
|
2683
|
+
"Notes": "No release notes were provided for this release."
|
2684
|
+
},
|
2685
|
+
"1.2.74": {
|
2686
|
+
"UpdateDate": 1738933722742,
|
2687
|
+
"Prerelease": true,
|
2688
|
+
"UpdateContents": [
|
2689
|
+
{
|
2690
|
+
"PR": 762,
|
2691
|
+
"Description": "讨论回复跳转优化"
|
2692
|
+
}
|
2693
|
+
],
|
2694
|
+
"Notes": "This was so hard......"
|
2658
2695
|
}
|
2659
2696
|
}
|
2660
2697
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.74
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -215,7 +215,7 @@ let GetUserBadge = async (Username) => {
|
|
215
215
|
*/
|
216
216
|
let GetUsernameHTML = async (Element, Username, Simple = false, Href = "https://www.xmoj.tech/userinfo.php?user=") => {
|
217
217
|
try {
|
218
|
-
Username = Username.replaceAll(/[^a-zA-Z0-9]/g, "");
|
218
|
+
//Username = Username.replaceAll(/[^a-zA-Z0-9]/g, "");
|
219
219
|
let ID = "Username-" + Username + "-" + Math.random();
|
220
220
|
Element.id = ID;
|
221
221
|
Element.innerHTML = `<div class="spinner-border spinner-border-sm me-2" role="status"></div>`;
|
@@ -1199,7 +1199,7 @@ async function main() {
|
|
1199
1199
|
ToastViewButton.classList.add("btn", "btn-primary", "btn-sm");
|
1200
1200
|
ToastViewButton.innerText = "查看";
|
1201
1201
|
ToastViewButton.addEventListener("click", () => {
|
1202
|
-
open("https://www.xmoj.tech/discuss3/thread.php?tid=" + MentionList[i].PostID, "_blank");
|
1202
|
+
open("https://www.xmoj.tech/discuss3/thread.php?tid=" + MentionList[i].PostID + '&page=' + MentionList[i].PageNumber, "_blank");
|
1203
1203
|
RequestAPI("ReadBBSMention", {
|
1204
1204
|
"MentionID": Number(MentionList[i].MentionID)
|
1205
1205
|
}, () => {
|
package/package.json
CHANGED
package/Compare.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
| 项目 | [小明的OJ 论坛](https://xmoj.flarum.cloud/) 基本弃坑,不再更新 | [XMOJ增强脚本](https://web.xmoj-bbs.tech/) |
|
2
|
-
| :------------------ | :---------------------------------------------------------- | :---------------------------------------------------------------------- |
|
3
|
-
| 界面 | :+1: 界面很好看 | :x: 界面不是很好看 |
|
4
|
-
| `Markdown`与`KaTex` | :+1: 支持 | :+1: 支持 |
|
5
|
-
| 论坛功能 | :+1: 支持投票、邮件提醒、博客、头像等衍生功能 | :x: 仅支持论坛与私信 |
|
6
|
-
| 总体功能 | :x: 仅支持论坛与Blog | :+1: 支持ACM排名等多种实用功能 |
|
7
|
-
| 浏览 | :x: 访问后看到的不是XMOJ域名 | :+1: 访问后看到的域名也是XMOJ |
|
8
|
-
| 管理 | :+1: 管理内容丰富 | :x: 无法进行细致的管理 |
|
9
|
-
| 隐私 | :x: “小明”可以看到你发的内容 | :+1: 你的浏览记录完全被保护不会被“小明”看到 |
|
10
|
-
| 稳定性 | :x: 服务器相对稳定 (请勿使用共享办公室WiFi访问) | :+1: 服务器稳定 |
|
11
|
-
| 安全性 | :+1: 使用Cloudflare保护 | :+1: 使用Cloudflare保护 |
|
12
|
-
| 开发过程 | :x: 套的模板,加入了权限、昵称、CDN等 | :+1: 从零开始手写开发 |
|
13
|
-
| 服务器开源 | :+1: [模板在Github上开源](https://github.com/flarum/flarum) | :+1: [完全在Github上开源](https://github.com/PythonSmall-Q/XMOJ-Script) |
|
14
|
-
| 服务器地点 | :+1: 中国贵州贵阳市+Cloudflare泛播 | :+1: Cloudflare泛播 |
|
15
|
-
| 域名 | :x: 使用共享域名(单独域名申请中) | :+1: 使用单独域名 |
|
16
|
-
| 安装方式 | :+1: 无需安装,直接使用 | :x: 需要安装用户脚本管理器 |
|
17
|
-
| 账号 | :x: 需要注册账号或者使用第三方登录 | :+1: 与XMOJ账号通用,自动登录 |
|
18
|
-
| 言论安全性 | :+1: 评论可以被自动过滤 | :x: 评论只能管理员手动删除 |
|
19
|
-
| 言论自由度 | :x: 攻击性发言可能会被自动屏蔽 | :+1: 管理员一般不会删除评论 |
|
20
|
-
| 网站安全性 | :+1: 使用SSL证书加密 | :+1: 使用SSL证书加密 |
|
21
|
-
| 更新速度 | :x:开发者咕咕咕,于是弃坑了 | :+1:较快 |
|