xmoj-script 1.1.8 → 1.1.11

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.
@@ -45,7 +45,7 @@ jobs:
45
45
  files: XMOJ.user.js
46
46
  target_commitish: ${{ github.sha }}
47
47
  - uses: actions/configure-pages@v4
48
- - uses: actions/upload-pages-artifact@v2
48
+ - uses: actions/upload-pages-artifact@v3
49
49
  with:
50
50
  path: .
51
- - uses: actions/deploy-pages@v3
51
+ - uses: actions/deploy-pages@v4
@@ -23,10 +23,6 @@ jobs:
23
23
  - uses: actions/checkout@v4
24
24
  with:
25
25
  fetch-depth: 0
26
- - name: Publish to npm
27
- run: npm publish --provenance
28
- env:
29
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
30
26
  - name: Get version
31
27
  id: get_version
32
28
  run: node ./Update/GetVersion.js
@@ -47,7 +43,7 @@ jobs:
47
43
  projectName: xmoj-script
48
44
  directory: .
49
45
  - uses: actions/configure-pages@v4
50
- - uses: actions/upload-pages-artifact@v2
46
+ - uses: actions/upload-pages-artifact@v3
51
47
  with:
52
48
  path: .
53
- - uses: actions/deploy-pages@v3
49
+ - uses: actions/deploy-pages@v4
package/Update.json CHANGED
@@ -800,6 +800,95 @@
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."
842
+ },
843
+ "1.1.10": {
844
+ "UpdateDate": 1703254332078,
845
+ "Prerelease": false,
846
+ "UpdateContents": [
847
+ {
848
+ "PR": 300,
849
+ "Description": "Add Docs"
850
+ },
851
+ {
852
+ "PR": 300,
853
+ "Description": "Add Docs"
854
+ },
855
+ {
856
+ "PR": 301,
857
+ "Description": "改变更新架构"
858
+ },
859
+ {
860
+ "PR": 302,
861
+ "Description": "Update allowed tags in PurifyHTML function to allow the tag"
862
+ },
863
+ {
864
+ "PR": 305,
865
+ "Description": "add release notes (#303)"
866
+ },
867
+ {
868
+ "PR": 310,
869
+ "Description": "Add an Easter egg"
870
+ },
871
+ {
872
+ "PR": 312,
873
+ "Description": "fix release notes"
874
+ },
875
+ {
876
+ "PR": 315,
877
+ "Description": "修复无法在某些页面检查登录状态"
878
+ }
879
+ ],
880
+ "Notes": "No release notes were provided for this release."
881
+ },
882
+ "1.1.11": {
883
+ "UpdateDate": 1703923205023,
884
+ "Prerelease": true,
885
+ "UpdateContents": [
886
+ {
887
+ "PR": 327,
888
+ "Description": "优化用户体验"
889
+ }
890
+ ],
891
+ "Notes": "增加bug上报和主页按钮"
803
892
  }
804
893
  }
805
894
  }
package/XMOJ.user.js CHANGED
@@ -1,12 +1,11 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.8
3
+ // @version 1.1.11
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
7
- // @match http://*.xmoj.tech/*
8
- // @match https://*.xmoj.tech/*
9
- // @match http://116.62.212.172/*
7
+ // @match *://*.xmoj.tech/*
8
+ // @match *://116.62.212.172/*
10
9
  // @require https://cdn.bootcdn.net/ajax/libs/crypto-js/4.1.1/crypto-js.min.js
11
10
  // @require https://cdn.bootcdn.net/ajax/libs/codemirror/6.65.7/codemirror.min.js
12
11
  // @require https://cdn.bootcdn.net/ajax/libs/codemirror/6.65.7/mode/clike/clike.min.js
@@ -18,6 +17,8 @@
18
17
  // @grant GM_xmlhttpRequest
19
18
  // @grant GM_setClipboard
20
19
  // @grant unsafeWindow
20
+ // @homepage https://www.xmoj-bbs.tech/
21
+ // @supportURL https://github.com/XMOJ-Script-dev/XMOJ-Script
21
22
  // @connect api.xmoj-bbs.tech
22
23
  // @connect challenges.cloudflare.com
23
24
  // @connect cppinsights.io
@@ -37,7 +38,7 @@ const AdminUserList = ["zhuchenrui2", "shanwenxiao", "admin", "shihongxi"];
37
38
 
38
39
  let PurifyHTML = (Input) => {
39
40
  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"],
41
+ "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
42
  "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
43
  });
43
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.8",
3
+ "version": "1.1.11",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {