xmoj-script 1.5.1 → 1.5.3
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/Update.json +22 -0
- package/XMOJ.user.js +3 -2
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -2788,6 +2788,28 @@
|
|
2788
2788
|
}
|
2789
2789
|
],
|
2790
2790
|
"Notes": "No release notes were provided for this release."
|
2791
|
+
},
|
2792
|
+
"1.5.2": {
|
2793
|
+
"UpdateDate": 1746264285564,
|
2794
|
+
"Prerelease": true,
|
2795
|
+
"UpdateContents": [
|
2796
|
+
{
|
2797
|
+
"PR": 796,
|
2798
|
+
"Description": "Clear session cookie on logout for better security"
|
2799
|
+
}
|
2800
|
+
],
|
2801
|
+
"Notes": "No release notes were provided for this release."
|
2802
|
+
},
|
2803
|
+
"1.5.3": {
|
2804
|
+
"UpdateDate": 1746271148834,
|
2805
|
+
"Prerelease": true,
|
2806
|
+
"UpdateContents": [
|
2807
|
+
{
|
2808
|
+
"PR": 798,
|
2809
|
+
"Description": "修复文字错误"
|
2810
|
+
}
|
2811
|
+
],
|
2812
|
+
"Notes": "No release notes were provided for this release."
|
2791
2813
|
}
|
2792
2814
|
}
|
2793
2815
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.5.
|
3
|
+
// @version 1.5.3
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -946,6 +946,7 @@ async function main() {
|
|
946
946
|
PopupUL.children[5].addEventListener("click", () => {
|
947
947
|
localStorage.removeItem("UserScript-Username");
|
948
948
|
localStorage.removeItem("UserScript-Password");
|
949
|
+
document.cookie = "PHPSESSID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; //This is how you remove a cookie?
|
949
950
|
location.href = "https://www.xmoj.tech/logout.php";
|
950
951
|
});
|
951
952
|
Array.from(PopupUL.children).forEach(item => {
|
@@ -1382,7 +1383,7 @@ async function main() {
|
|
1382
1383
|
"Name": "将网站中所有“小明”和“我”关键字替换为“高老师”,所有“小红”替换为“徐师娘”,所有“小粉”替换为“彩虹”,所有“下海”、“海上”替换为“上海” (此功能默认关闭)"
|
1383
1384
|
}]
|
1384
1385
|
}, {
|
1385
|
-
"ID": "AutoLogin", "Type": "A", "Name": "
|
1386
|
+
"ID": "AutoLogin", "Type": "A", "Name": "在需要登录的界面自动跳转到登录界面"
|
1386
1387
|
}, {
|
1387
1388
|
"ID": "SavePassword", "Type": "A", "Name": "自动保存用户名与密码,免去每次手动输入密码的繁琐"
|
1388
1389
|
}, {
|