xmoj-script 1.2.38 → 1.2.40
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/Update.json +22 -0
- package/XMOJ.user.js +8 -9
- package/package.json +1 -1
package/Update.json
CHANGED
|
@@ -2168,6 +2168,28 @@
|
|
|
2168
2168
|
}
|
|
2169
2169
|
],
|
|
2170
2170
|
"Notes": "No release notes were provided for this release."
|
|
2171
|
+
},
|
|
2172
|
+
"1.2.39": {
|
|
2173
|
+
"UpdateDate": 1723095200260,
|
|
2174
|
+
"Prerelease": true,
|
|
2175
|
+
"UpdateContents": [
|
|
2176
|
+
{
|
|
2177
|
+
"PR": 658,
|
|
2178
|
+
"Description": "error reporting for image upload"
|
|
2179
|
+
}
|
|
2180
|
+
],
|
|
2181
|
+
"Notes": "No release notes were provided for this release."
|
|
2182
|
+
},
|
|
2183
|
+
"1.2.40": {
|
|
2184
|
+
"UpdateDate": 1723095733498,
|
|
2185
|
+
"Prerelease": true,
|
|
2186
|
+
"UpdateContents": [
|
|
2187
|
+
{
|
|
2188
|
+
"PR": 659,
|
|
2189
|
+
"Description": "new toolbar item"
|
|
2190
|
+
}
|
|
2191
|
+
],
|
|
2192
|
+
"Notes": "No release notes were provided for this release."
|
|
2171
2193
|
}
|
|
2172
2194
|
}
|
|
2173
2195
|
}
|
package/XMOJ.user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ==UserScript==
|
|
2
2
|
// @name XMOJ
|
|
3
|
-
// @version 1.2.
|
|
3
|
+
// @version 1.2.40
|
|
4
4
|
// @description XMOJ增强脚本
|
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
|
6
6
|
// @namespace https://github/langningchen
|
|
@@ -884,6 +884,7 @@ async function main() {
|
|
|
884
884
|
<li class="dropdown-item">个人中心</li>
|
|
885
885
|
<li class="dropdown-item">短消息</li>
|
|
886
886
|
<li class="dropdown-item">插件设置</li>
|
|
887
|
+
<li class="dropdown-item">插件更新日志</li>
|
|
887
888
|
<li class="dropdown-item">注销</li>`;
|
|
888
889
|
PopupUL.children[0].addEventListener("click", () => {
|
|
889
890
|
location.href = "https://www.xmoj.tech/modifypage.php";
|
|
@@ -898,6 +899,9 @@ async function main() {
|
|
|
898
899
|
location.href = "https://www.xmoj.tech/index.php?ByUserScript=1";
|
|
899
900
|
});
|
|
900
901
|
PopupUL.children[4].addEventListener("click", () => {
|
|
902
|
+
location.href = "https://www.xmoj.tech/modifypage.php?ByUserScript=1";
|
|
903
|
+
});
|
|
904
|
+
PopupUL.children[5].addEventListener("click", () => {
|
|
901
905
|
localStorage.removeItem("UserScript-Username");
|
|
902
906
|
localStorage.removeItem("UserScript-Password");
|
|
903
907
|
location.href = "https://www.xmoj.tech/logout.php";
|
|
@@ -1308,13 +1312,8 @@ async function main() {
|
|
|
1308
1312
|
"ID": "ACMRank", "Type": "A", "Name": "比赛ACM排名,并且能下载ACM排名"
|
|
1309
1313
|
}, {"ID": "Discussion", "Type": "F", "Name": "恢复讨论与短消息功能"}, {
|
|
1310
1314
|
"ID": "MoreSTD", "Type": "F", "Name": "查看到更多标程"
|
|
1311
|
-
}, {
|
|
1312
|
-
"ID": "
|
|
1313
|
-
"Type": "A",
|
|
1314
|
-
"Name": "学术模式",
|
|
1315
|
-
"Children": [{"ID": "ApplyData", "Type": "A", "Name": "获取数据功能"}, {
|
|
1316
|
-
"ID": "AutoCheat", "Type": "A", "Name": "自动提交当年代码"
|
|
1317
|
-
}]
|
|
1315
|
+
}, {"ID": "ApplyData", "Type": "A", "Name": "获取数据功能"}, {
|
|
1316
|
+
"ID": "AutoCheat", "Type": "A", "Name": "自动提交当年代码"
|
|
1318
1317
|
}, {"ID": "Rating", "Type": "A", "Name": "添加用户评分和用户名颜色"}, {
|
|
1319
1318
|
"ID": "AutoRefresh", "Type": "A", "Name": "比赛列表、比赛排名界面自动刷新"
|
|
1320
1319
|
}, {
|
|
@@ -4230,7 +4229,7 @@ int main()
|
|
|
4230
4229
|
Content.value = Before + `` + After;
|
|
4231
4230
|
Content.dispatchEvent(new Event("input"));
|
|
4232
4231
|
} else {
|
|
4233
|
-
Content.value = Before + `![
|
|
4232
|
+
Content.value = Before + `![上传失败!` + ResponseData.Message + `]()` + After;
|
|
4234
4233
|
Content.dispatchEvent(new Event("input"));
|
|
4235
4234
|
}
|
|
4236
4235
|
});
|