xmoj-script 1.5.1 → 1.5.2

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 CHANGED
@@ -2788,6 +2788,17 @@
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."
2791
2802
  }
2792
2803
  }
2793
2804
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.5.1
3
+ // @version 1.5.2
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 => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {