xmoj-script 1.1.9 → 1.1.12
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/.github/workflows/Prerelease.yml +2 -2
- package/.github/workflows/Release.yml +2 -6
- package/AddonScript.js +6 -5
- package/Update.json +61 -0
- package/XMOJ.user.js +7 -4
- package/package.json +1 -1
@@ -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@
|
48
|
+
- uses: actions/upload-pages-artifact@v3
|
49
49
|
with:
|
50
50
|
path: .
|
51
|
-
- uses: actions/deploy-pages@
|
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@
|
46
|
+
- uses: actions/upload-pages-artifact@v3
|
51
47
|
with:
|
52
48
|
path: .
|
53
|
-
- uses: actions/deploy-pages@
|
49
|
+
- uses: actions/deploy-pages@v4
|
package/AddonScript.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
if (localStorage.getItem("UserScript-
|
2
|
-
let InputValue = prompt("
|
3
|
-
if (InputValue != "
|
4
|
-
alert("
|
1
|
+
if (localStorage.getItem("UserScript-2024newyear") == null) {
|
2
|
+
let InputValue = prompt("小明的OJ增强脚本开发组祝您新年快乐!输入2024确认");
|
3
|
+
if (InputValue != "2024") {
|
4
|
+
alert("小明的OJ增强脚本开发组祝您新年快乐!");
|
5
5
|
window.location.href = "https://www.seanoj.edu.eu.org/#Install";
|
6
6
|
}
|
7
7
|
else {
|
8
|
-
localStorage.setItem("UserScript-
|
8
|
+
localStorage.setItem("UserScript-2024newyear", "true")
|
9
9
|
}
|
10
10
|
}
|
11
|
+
//happy 2024 new year
|
package/Update.json
CHANGED
@@ -839,6 +839,67 @@
|
|
839
839
|
}
|
840
840
|
],
|
841
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上报和主页按钮"
|
892
|
+
},
|
893
|
+
"1.1.12": {
|
894
|
+
"UpdateDate": 1704017187302,
|
895
|
+
"Prerelease": true,
|
896
|
+
"UpdateContents": [
|
897
|
+
{
|
898
|
+
"PR": 329,
|
899
|
+
"Description": "增加权限"
|
900
|
+
}
|
901
|
+
],
|
902
|
+
"Notes": "No release notes were provided for this release."
|
842
903
|
}
|
843
904
|
}
|
844
905
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.12
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
7
|
-
// @match
|
8
|
-
// @match
|
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,10 @@
|
|
18
17
|
// @grant GM_xmlhttpRequest
|
19
18
|
// @grant GM_setClipboard
|
20
19
|
// @grant unsafeWindow
|
20
|
+
// @grant GM_setValue
|
21
|
+
// @grant GM_getValue
|
22
|
+
// @homepage https://www.xmoj-bbs.tech/
|
23
|
+
// @supportURL https://github.com/XMOJ-Script-dev/XMOJ-Script
|
21
24
|
// @connect api.xmoj-bbs.tech
|
22
25
|
// @connect challenges.cloudflare.com
|
23
26
|
// @connect cppinsights.io
|