xmoj-script 1.1.54 → 1.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Update.json +11 -0
- package/XMOJ.user.js +2 -2
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -1417,6 +1417,17 @@
|
|
1417
1417
|
}
|
1418
1418
|
],
|
1419
1419
|
"Notes": "No release notes were provided for this release."
|
1420
|
+
},
|
1421
|
+
"1.1.55": {
|
1422
|
+
"UpdateDate": 1712411916005,
|
1423
|
+
"Prerelease": true,
|
1424
|
+
"UpdateContents": [
|
1425
|
+
{
|
1426
|
+
"PR": 499,
|
1427
|
+
"Description": "add markdown support to short messages "
|
1428
|
+
}
|
1429
|
+
],
|
1430
|
+
"Notes": "No release notes were provided for this release."
|
1420
1431
|
}
|
1421
1432
|
}
|
1422
1433
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.55
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -3745,7 +3745,7 @@ int main()
|
|
3745
3745
|
ContentDiv.style.maxHeight = "500px";
|
3746
3746
|
ContentDiv.style.overflowX = "auto";
|
3747
3747
|
ContentDiv.style.overflowY = "auto";
|
3748
|
-
ContentDiv.innerHTML = PurifyHTML(Data[i].Content);
|
3748
|
+
ContentDiv.innerHTML = PurifyHTML(marked.parse(Data[i].Content));
|
3749
3749
|
let mediaElements = ContentDiv.querySelectorAll('img, video');
|
3750
3750
|
for (let media of mediaElements) {
|
3751
3751
|
media.style.objectFit = 'contain';
|