xmoj-script 1.1.4 → 1.1.5

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.
@@ -65,6 +65,7 @@ var NewJSFileContent = JSFileContent.replace(/@version(\s+)\d+\.\d+\.\d+/, "@ver
65
65
  writeFileSync(JSFileName, NewJSFileContent, "utf8");
66
66
  console.warn("XMOJ.user.js has been updated.");
67
67
 
68
+ execSync("git config pull.rebase false");
68
69
  execSync("git pull");
69
70
  execSync("git push origin --delete actions/temp || true");
70
71
  execSync("git checkout -b actions/temp");
@@ -80,6 +80,7 @@ writeFileSync(JSONFileName, JSON.stringify(JSONObject, null, 4), "utf8");
80
80
 
81
81
  console.warn("Update.json has been updated.");
82
82
 
83
+ execSync("git config pull.rebase false");
83
84
  execSync("git pull");
84
85
  execSync("git commit -a -m \"" + CommitMessage + "\"");
85
86
  execSync("git push -f");
package/Update.json CHANGED
@@ -728,6 +728,17 @@
728
728
  }
729
729
  ],
730
730
  "Notes": "Hello, release notes! test 测试"
731
+ },
732
+ "1.1.5": {
733
+ "UpdateDate": 1702993420758,
734
+ "Prerelease": true,
735
+ "UpdateContents": [
736
+ {
737
+ "PR": 310,
738
+ "Description": "Add an Easter egg"
739
+ }
740
+ ],
741
+ "Notes": "No release notes were provided for this release."
731
742
  }
732
743
  }
733
744
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.4
3
+ // @version 1.1.5
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -448,6 +448,7 @@ else {
448
448
  document.body.innerHTML = String(document.body.innerHTML).replaceAll("海上", "上海");
449
449
  document.body.innerHTML = String(document.body.innerHTML).replaceAll("小红", "徐师娘");
450
450
  document.body.innerHTML = String(document.body.innerHTML).replaceAll("小粉", "彩虹");
451
+ document.body.innerHTML = String(document.body.innerHTML).replaceAll("提交上节课的代码", "自动提交当年代码");
451
452
  document.body.innerHTML = String(document.body.innerHTML).replaceAll("高老师们", "我们");
452
453
  document.body.innerHTML = String(document.body.innerHTML).replaceAll("自高老师", "自我");
453
454
  document.title = String(document.title).replaceAll("小明", "高老师");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {