Skip to content

Commit

Permalink
Merge pull request #712 from XMOJ-Script-dev/zhouyiqing0304-patch-2
Browse files Browse the repository at this point in the history
更改个人中心一栏鼠标指针样式
  • Loading branch information
PythonSmall-Q authored Aug 18, 2024
2 parents e74d995 + ae70d1b commit 04d6e4d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2442,6 +2442,17 @@
}
],
"Notes": "No release notes were provided for this release."
},
"1.2.57": {
"UpdateDate": 1723968698208,
"Prerelease": true,
"UpdateContents": [
{
"PR": 712,
"Description": "更改个人中心一栏鼠标指针样式"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
3 changes: 2 additions & 1 deletion XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 1.2.56
// @version 1.2.57
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -888,6 +888,7 @@ async function main() {
}
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 != "个人中心") {
let PopupUL = document.querySelector("#navbar > ul.nav.navbar-nav.navbar-right > li > ul");
PopupUL.style.cursor = 'pointer';
PopupUL.innerHTML = `<li class="dropdown-item">修改帐号</li>
<li class="dropdown-item">个人中心</li>
<li class="dropdown-item">短消息</li>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xmoj-script",
"version": "1.2.56",
"version": "1.2.57",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down

0 comments on commit 04d6e4d

Please sign in to comment.