Skip to content

Commit 3255413

Browse files
Merge pull request #797 from XMOJ-Script-dev/dev
sync: dev to extern-contrib
2 parents 69b4bdd + 506378a commit 3255413

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

Update.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,6 +2788,17 @@
27882788
}
27892789
],
27902790
"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."
27912802
}
27922803
}
27932804
}

XMOJ.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name XMOJ
3-
// @version 1.5.1
3+
// @version 1.5.2
44
// @description XMOJ增强脚本
55
// @author @XMOJ-Script-dev, @langningchen and the community
66
// @namespace https://github/langningchen
@@ -946,6 +946,7 @@ async function main() {
946946
PopupUL.children[5].addEventListener("click", () => {
947947
localStorage.removeItem("UserScript-Username");
948948
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?
949950
location.href = "https://www.xmoj.tech/logout.php";
950951
});
951952
Array.from(PopupUL.children).forEach(item => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xmoj-script",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "an improvement script for xmoj.tech",
55
"main": "AddonScript.js",
66
"scripts": {

0 commit comments

Comments
 (0)