Skip to content

Commit 82480fd

Browse files
authored
Merge pull request #821 from XMOJ-Script-dev/boomzero/nav
修复工具栏
2 parents 1df6609 + 4408f99 commit 82480fd

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

Update.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,17 @@
29252925
}
29262926
],
29272927
"Notes": "No release notes were provided for this release."
2928+
},
2929+
"1.9.1": {
2930+
"UpdateDate": 1753443057292,
2931+
"Prerelease": true,
2932+
"UpdateContents": [
2933+
{
2934+
"PR": 821,
2935+
"Description": "修复工具栏"
2936+
}
2937+
],
2938+
"Notes": "No release notes were provided for this release."
29282939
}
29292940
}
29302941
}

XMOJ.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name XMOJ
3-
// @version 1.9.0
3+
// @version 1.9.1
44
// @description XMOJ增强脚本
55
// @author @XMOJ-Script-dev, @langningchen and the community
66
// @namespace https://github/langningchen
@@ -922,7 +922,7 @@ async function main() {
922922
hideDropdownItems();
923923
}
924924
});
925-
} 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 != "个人中心") {
925+
} else if (document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul") != undefined && document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul > li:nth-child(2)").innerText != "个人中心") {
926926
let PopupUL = document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul");
927927
PopupUL.style.cursor = 'pointer';
928928
PopupUL.innerHTML = `<li class="dropdown-item">修改帐号</li>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xmoj-script",
3-
"version": "1.9.0",
3+
"version": "1.9.1",
44
"description": "an improvement script for xmoj.tech",
55
"main": "AddonScript.js",
66
"scripts": {

0 commit comments

Comments
 (0)