Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复高亮 #102

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@
"Description": "修复部分功能"
}
]
},
"1.0.210": {
"UpdateDate": 1696510135483,
"Prerelease": true,
"UpdateContents": [
{
"PR": 102,
"Description": "修复高亮"
}
]
}
}
}
6 changes: 3 additions & 3 deletions XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name XMOJ
// @version 1.0.209
// @version 1.0.210
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev and @langningchen and the community
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
// @match http://*.xmoj.tech/*
// @match http://116.62.212.172/*
Expand Down Expand Up @@ -4186,7 +4186,7 @@ int main()

let CodeElements = document.querySelectorAll("#PostReplies > div > div > div:nth-child(3) > pre > code");
for (let i = 0; i < CodeElements.length; i++) {
let ModeName = "text/plain";
let ModeName = "text/x-c++src";
if (CodeElements[i].className == "language-c") {
ModeName = "text/x-csrc";
}
Expand Down