xmoj-script 1.1.11 → 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/AddonScript.js +6 -5
- package/Update.json +11 -0
- package/XMOJ.user.js +3 -1
- package/package.json +1 -1
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
@@ -889,6 +889,17 @@
|
|
889
889
|
}
|
890
890
|
],
|
891
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."
|
892
903
|
}
|
893
904
|
}
|
894
905
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
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
|
@@ -17,6 +17,8 @@
|
|
17
17
|
// @grant GM_xmlhttpRequest
|
18
18
|
// @grant GM_setClipboard
|
19
19
|
// @grant unsafeWindow
|
20
|
+
// @grant GM_setValue
|
21
|
+
// @grant GM_getValue
|
20
22
|
// @homepage https://www.xmoj-bbs.tech/
|
21
23
|
// @supportURL https://github.com/XMOJ-Script-dev/XMOJ-Script
|
22
24
|
// @connect api.xmoj-bbs.tech
|