Messenger Hide Chat List

Hide or show the Messenger chat list based on user interaction. Includes features for resizing and locking Chat list visibility.

Fra 21.08.2024. Se den seneste versjonen.

Forfatter
imxitiz
Vurderinger
0 0 0
Versjon
2.0
Lagd
14.08.2024
Oppdatert
21.08.2024
Size
11,8 kB
Lisens
GNU GPLv3
Gjelder

This script enhances the Facebook Messenger Web chat list with a dynamic resizing and chat list visibility lock feature. Initially, the chat list remains hidden, but it becomes visible when you hover over the sidebar. Upon first interaction, a red resize handle appears on the right side of the chat list. After you drag this handle to adjust the width, the handle turns transparent, indicating that resizing has occurred. The script saves your preferred width using localStorage, ensuring that your adjustments are retained across future sessions. Additionally, sessionStorage tracks whether the chat list has been resized at least once and active tracks the state of visibility. This setup provides a more personalized and efficient way to manage the chat list's size, and it's visibility while maintaining a clean interface.

⚠️ IMPORTANT: When locking the chat list, PLEASE REMEMBER THE EXACT PLACE WHERE YOU TRIPLE-CLICKED TO AVOID ISSUES. Losing track of this position may require logging out and logging back in to restore access. ⚠️

Triple Click Interactions:

  • Triple Click on the Left Sidebar:

    • First Time: The chat list will be set to always visible.
    • Second Time: Resets the visibility settings to the default behavior, where the chat list is hidden by default and shows up when the user hovers over it.
  • Triple Click on Any Other Place (not on the Left Sidebar):

    • The chat list will be locked and will only unlock when you click exactly on the same spot where you triple-clicked.
  • Clicking on the Left Sidebar or Any Other Place After Locking:

    • If you click on the sidebar or any other place after locking, or if you forget the exact locked position, you will need to log out and log back in to regain access to the sidebar.