Skip to content

Commit

Permalink
fix #409 (#413)
Browse files Browse the repository at this point in the history
* fix #409 (@langningchen do it this way...)

* 1.1.36

* Update version info to 1.1.36

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
boomzero and github-actions[bot] authored Jan 31, 2024
1 parent 2930e25 commit 4d9849e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,17 @@
}
],
"Notes": "No release notes were provided for this release."
},
"1.1.36": {
"UpdateDate": 1706680652574,
"Prerelease": true,
"UpdateContents": [
{
"PR": 413,
"Description": "fix #409"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
9 changes: 6 additions & 3 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 1.1.35
// @version 1.1.36
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -546,8 +546,11 @@ if (location.host != "www.xmoj.tech") {

await Promise.all(promises);
};

loadResources();
if (location.pathname == "/submitpage.php") {
await loadResources();
} else {
loadResources();
}
document.querySelector("nav").className = "navbar navbar-expand-lg bg-body-tertiary";
document.querySelector("#navbar > ul:nth-child(1)").classList = "navbar-nav me-auto mb-2 mb-lg-0";
document.querySelector("body > div > nav > div > div.navbar-header").outerHTML = `<a class="navbar-brand" href="https://www.xmoj.tech/">${UtilityEnabled("ReplaceXM") ? "高老师" : "小明"}的OJ</a><button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbar"><span class="navbar-toggler-icon"></span></button>`;
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.1.35",
"version": "1.1.36",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down

0 comments on commit 4d9849e

Please sign in to comment.