xmoj-script 1.2.34 → 1.2.35
Sign up to get free protection for your applications and to get access to all the features.
- package/Update.json +11 -0
- package/XMOJ.user.js +5 -3
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -2124,6 +2124,17 @@
|
|
2124
2124
|
}
|
2125
2125
|
],
|
2126
2126
|
"Notes": "No release notes were provided for this release."
|
2127
|
+
},
|
2128
|
+
"1.2.35": {
|
2129
|
+
"UpdateDate": 1723008839982,
|
2130
|
+
"Prerelease": true,
|
2131
|
+
"UpdateContents": [
|
2132
|
+
{
|
2133
|
+
"PR": 651,
|
2134
|
+
"Description": "prevent RE"
|
2135
|
+
}
|
2136
|
+
],
|
2137
|
+
"Notes": "No release notes were provided for this release."
|
2127
2138
|
}
|
2128
2139
|
}
|
2129
2140
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.35
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -263,8 +263,10 @@ let GetUsernameHTML = async (Element, Username, Simple = false, Href = "https://
|
|
263
263
|
HTMLData += `<span class="badge ms-2" style="background-color: ${BadgeInfo.BackgroundColor}; color: ${BadgeInfo.Color}">${BadgeInfo.Content}</span>`;
|
264
264
|
}
|
265
265
|
}
|
266
|
-
document.getElementById(ID)
|
267
|
-
|
266
|
+
if (document.getElementById(ID) !== null) {
|
267
|
+
document.getElementById(ID).innerHTML = HTMLData;
|
268
|
+
document.getElementById(ID).getElementsByTagName("a")[0].appendChild(document.createTextNode(Username));
|
269
|
+
}
|
268
270
|
} catch (e) {
|
269
271
|
console.error(e);
|
270
272
|
if (UtilityEnabled("DebugMode")) {
|