File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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 => {
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments