xmoj-script 1.1.8 → 1.1.9
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 +39 -0
- package/XMOJ.user.js +2 -2
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -800,6 +800,45 @@
|
|
800
800
|
}
|
801
801
|
],
|
802
802
|
"Notes": "No release notes were provided for this release."
|
803
|
+
},
|
804
|
+
"1.1.9": {
|
805
|
+
"UpdateDate": 1703253440322,
|
806
|
+
"Prerelease": false,
|
807
|
+
"UpdateContents": [
|
808
|
+
{
|
809
|
+
"PR": 300,
|
810
|
+
"Description": "Add Docs"
|
811
|
+
},
|
812
|
+
{
|
813
|
+
"PR": 300,
|
814
|
+
"Description": "Add Docs"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
"PR": 301,
|
818
|
+
"Description": "改变更新架构"
|
819
|
+
},
|
820
|
+
{
|
821
|
+
"PR": 302,
|
822
|
+
"Description": "Update allowed tags in PurifyHTML function to allow the tag"
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"PR": 305,
|
826
|
+
"Description": "add release notes (#303)"
|
827
|
+
},
|
828
|
+
{
|
829
|
+
"PR": 310,
|
830
|
+
"Description": "Add an Easter egg"
|
831
|
+
},
|
832
|
+
{
|
833
|
+
"PR": 312,
|
834
|
+
"Description": "fix release notes"
|
835
|
+
},
|
836
|
+
{
|
837
|
+
"PR": 315,
|
838
|
+
"Description": "修复无法在某些页面检查登录状态"
|
839
|
+
}
|
840
|
+
],
|
841
|
+
"Notes": "No release notes were provided for this release."
|
803
842
|
}
|
804
843
|
}
|
805
844
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.9
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -37,7 +37,7 @@ const AdminUserList = ["zhuchenrui2", "shanwenxiao", "admin", "shihongxi"];
|
|
37
37
|
|
38
38
|
let PurifyHTML = (Input) => {
|
39
39
|
return DOMPurify.sanitize(Input, {
|
40
|
-
"ALLOWED_TAGS": ["a", "b", "blockquote", "br", "code", "dd", "del", "div", "dl", "dt", "em", "h1", "h2", "h3", "h4", "h5", "h6", "h7", "h8", "hr", "i", "img", "ins", "kbd", "li", "ol", "p", "pre", "q", "rp", "rt", "ruby", "s", "samp", "strike", "strong", "sub", "sup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "tt", "ul", "var"],
|
40
|
+
"ALLOWED_TAGS": ["a", "b", "big", "blockquote", "br", "code", "dd", "del", "div", "dl", "dt", "em", "h1", "h2", "h3", "h4", "h5", "h6", "h7", "h8", "hr", "i", "img", "ins", "kbd", "li", "ol", "p", "pre", "q", "rp", "rt", "ruby", "s", "samp", "strike", "strong", "sub", "sup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "tt", "ul", "var"],
|
41
41
|
"ALLOWED_ATTR": ["abbr", "accept", "accept-charset", "accesskey", "action", "align", "alt", "axis", "border", "cellpadding", "cellspacing", "char", "charoff", "charset", "checked", "cite", "clear", "color", "cols", "colspan", "compact", "coords", "datetime", "dir", "disabled", "enctype", "for", "frame", "headers", "height", "href", "hreflang", "hspace", "ismap", "itemprop", "label", "lang", "longdesc", "maxlength", "media", "method", "multiple", "name", "nohref", "noshade", "nowrap", "prompt", "readonly", "rel", "rev", "rows", "rowspan", "rules", "scope", "selected", "shape", "size", "span", "src", "start", "summary", "tabindex", "target", "title", "type", "usemap", "valign", "value", "vspace", "width"]
|
42
42
|
});
|
43
43
|
}
|