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 CHANGED
@@ -1,10 +1,11 @@
1
- if (localStorage.getItem("UserScript-ImportantNotice-20231015") == null) {
2
- let InputValue = prompt("警告!警告!警告!请仔细阅读以下内容!请检查你是否安装了两个脚本! 如果是, 请删除一个. 如果你已经明白了这些内容,那么请在下方输入“我已知晓”并点击确定。");
3
- if (InputValue != "我已知晓") {
4
- alert("您输入的内容不正确!请重新安装用户脚本!安装指南在https://www.seanoj.edu.eu.org/#Install。");
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-ImportantNotice-20231015", "true")
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.11
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {