xmoj-script 1.2.55 → 1.2.57
Sign up to get free protection for your applications and to get access to all the features.
- package/Update/AutoLabel.js +3 -2
- package/Update.json +22 -0
- package/XMOJ.user.js +11 -5
- package/package.json +1 -1
- package/sitemap.xml +10 -2
package/Update/AutoLabel.js
CHANGED
@@ -3,7 +3,8 @@ import * as github from '@actions/github';
|
|
3
3
|
const Octokit = github.getOctokit(process.argv[2]);
|
4
4
|
const TrustedUsers = [
|
5
5
|
"boomzero",
|
6
|
-
"PythonSmall-Q"
|
6
|
+
"PythonSmall-Q",
|
7
|
+
"ptsq-bot"
|
7
8
|
];
|
8
9
|
const LabelList = [
|
9
10
|
"addon-script",
|
@@ -142,7 +143,7 @@ let NewData = Data.replaceAll(/(\/-?good first issue)|\/[A-Za-z_-]+/g, (match) =
|
|
142
143
|
return match;
|
143
144
|
});
|
144
145
|
|
145
|
-
if (User === "PythonSmall-Q") {
|
146
|
+
if (User === "boomzero" || User === "ptsq-bot" || User === "PythonSmall-Q") {
|
146
147
|
if (RemoveLabel("needs-triage")) {
|
147
148
|
AddLabel("investigating");
|
148
149
|
Milestone = LatestMilestone;
|
package/Update.json
CHANGED
@@ -2431,6 +2431,28 @@
|
|
2431
2431
|
}
|
2432
2432
|
],
|
2433
2433
|
"Notes": "No release notes were provided for this release."
|
2434
|
+
},
|
2435
|
+
"1.2.56": {
|
2436
|
+
"UpdateDate": 1723956966458,
|
2437
|
+
"Prerelease": true,
|
2438
|
+
"UpdateContents": [
|
2439
|
+
{
|
2440
|
+
"PR": 704,
|
2441
|
+
"Description": "登录界面优化"
|
2442
|
+
}
|
2443
|
+
],
|
2444
|
+
"Notes": "No release notes were provided for this release."
|
2445
|
+
},
|
2446
|
+
"1.2.57": {
|
2447
|
+
"UpdateDate": 1723968698208,
|
2448
|
+
"Prerelease": true,
|
2449
|
+
"UpdateContents": [
|
2450
|
+
{
|
2451
|
+
"PR": 712,
|
2452
|
+
"Description": "更改个人中心一栏鼠标指针样式"
|
2453
|
+
}
|
2454
|
+
],
|
2455
|
+
"Notes": "No release notes were provided for this release."
|
2434
2456
|
}
|
2435
2457
|
}
|
2436
2458
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.57
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -878,11 +878,17 @@ async function main() {
|
|
878
878
|
}
|
879
879
|
if (UtilityEnabled("ResetType")) {
|
880
880
|
if (document.querySelector("#profile") != undefined && document.querySelector("#profile").innerHTML == "登录") {
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
881
|
+
let PopupUL = document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul");
|
882
|
+
PopupUL.innerHTML = `<li class="dropdown-item">登录</li>`;
|
883
|
+
PopupUL.children[0].addEventListener("click", () => {
|
884
|
+
location.href = "https://www.xmoj.tech/loginpage.php";
|
885
|
+
});
|
886
|
+
let parentLi = document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li");
|
887
|
+
document.addEventListener("click", (event) => { if (!parentLi.contains(event.target) && PopupUL.style.display === 'block') {hideDropdownItems();}});
|
888
|
+
}
|
889
|
+
else if (document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul > li:nth-child(3) > a > span") != undefined && document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul > li:nth-child(3) > a > span").innerText != "个人中心") {
|
885
890
|
let PopupUL = document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul");
|
891
|
+
PopupUL.style.cursor = 'pointer';
|
886
892
|
PopupUL.innerHTML = `<li class="dropdown-item">修改帐号</li>
|
887
893
|
<li class="dropdown-item">个人中心</li>
|
888
894
|
<li class="dropdown-item">短消息</li>
|
package/package.json
CHANGED
package/sitemap.xml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
3
3
|
<url>
|
4
|
-
<loc>https://xmoj-bbs.
|
5
|
-
<lastmod>2024-
|
4
|
+
<loc>https://xmoj-bbs.me/</loc>
|
5
|
+
<lastmod>2024-08-15T23:16:10+08:00</lastmod>
|
6
|
+
</url>
|
7
|
+
<url>
|
8
|
+
<loc>https://support.xmoj-bbs.me/</loc>
|
9
|
+
<lastmod>2024-08-16T23:16:10+08:00</lastmod>
|
10
|
+
</url>
|
11
|
+
<url>
|
12
|
+
<loc>https://docs.xmoj-bbs.me/</loc>
|
13
|
+
<lastmod>2024-08-16T23:16:10+08:00</lastmod>
|
6
14
|
</url>
|
7
15
|
</urlset>
|