diff --git a/Update.json b/Update.json index 9dedb106..0266fdbe 100644 --- a/Update.json +++ b/Update.json @@ -103,6 +103,16 @@ "Description": "修复部分功能" } ] + }, + "1.0.210": { + "UpdateDate": 1696510135483, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 102, + "Description": "修复高亮" + } + ] } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 41ef75df..506b2ddb 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -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/* @@ -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"; }