Prevent Logout on LowEndTalk

Stops accidental logout on LowEndTalk by preventing access to the logout URL or similar variations using regex.

ของเมื่อวันที่ 01-12-2024 ดู เวอร์ชันล่าสุด

ผู้เขียน
Zyra
คะแนน
0 0 0
เวอร์ชัน
1.4
สร้างเมื่อ
01-12-2024
อัปเดตเมื่อ
01-12-2024
Size
1.25 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

Prevents users from accidentally logging out on the LowEndTalk website. It does this by blocking access to URLs that match the logout pattern using a regular expression. If the user tries to visit a logout page, the script redirects them to the homepage instead. Additionally, it listens for any changes in the URL or clicks on logout links, and prevents logout actions by showing an alert.