Skip to content

Commit

Permalink
Merge pull request #310 from XMOJ-Script-dev/easter-egg
Browse files Browse the repository at this point in the history
Add an Easter egg
  • Loading branch information
boomzero authored Dec 19, 2023
2 parents 7dada97 + 0a2ea70 commit 2e698e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,17 @@
}
],
"Notes": "Hello, release notes! test 测试"
},
"1.1.5": {
"UpdateDate": 1702993420758,
"Prerelease": true,
"UpdateContents": [
{
"PR": 310,
"Description": "Add an Easter egg"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
3 changes: 2 additions & 1 deletion XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 1.1.4
// @version 1.1.5
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -448,6 +448,7 @@ else {
document.body.innerHTML = String(document.body.innerHTML).replaceAll("海上", "上海");
document.body.innerHTML = String(document.body.innerHTML).replaceAll("小红", "徐师娘");
document.body.innerHTML = String(document.body.innerHTML).replaceAll("小粉", "彩虹");
document.body.innerHTML = String(document.body.innerHTML).replaceAll("提交上节课的代码", "自动提交当年代码");
document.body.innerHTML = String(document.body.innerHTML).replaceAll("高老师们", "我们");
document.body.innerHTML = String(document.body.innerHTML).replaceAll("自高老师", "自我");
document.title = String(document.title).replaceAll("小明", "高老师");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xmoj-script",
"version": "1.1.4",
"version": "1.1.5",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down

0 comments on commit 2e698e6

Please sign in to comment.