WINDOW_LOCKED_HUD

Locks the current browser window with a password-protected overlay. Press Ctrl + . to activate. If no password is set, you’ll be prompted to create one.

Author
akket0r
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
1.0.5
Created
2025-07-07
Updated
2025-07-07
Size
4.92 KB
License
MIT
Applies to
All sites

WINDOWS HUD LOCKER

A userscript that lets you lock your current browser window with a custom password via a keyboard shortcut.
Designed to act as a quick-access browser "lock screen" using localStorage and a minimal overlay interface.

🔐 Features

  • Lock the screen instantly using a keybind: Ctrl + .
  • Prompts to set a password on first use
  • Prevents interaction with the page until unlocked
  • Password is securely stored in localStorage
  • Customizable visuals and logic in script

🚀 How It Works

  1. Press Ctrl + . to activate the lock
  2. If no password is set yet — you'll be prompted to create one
  3. A translucent HUD overlay will appear, blocking the page
  4. Enter your password to unlock and restore interaction

🧠 Storage Keys

The script uses localStorage under the current domain:

  • LOCKED_WINDOW_HUD_PSWD — your custom password
  • LOCKED_WINDOW_HUD_PSWD_STATUS — current lock status (true / false)

You can view or clear them via browser DevTools:
Application tab → Local Storagehttps://your-site.com

⚙️ Customization

You can edit the script to change:

  • Password prompt text
  • Shortcut key (Ctrl + .)
  • HUD overlay styles (e.g. dark mode, blur)
  • Lock/unlock animations or sounds

🧑‍💻 Author

Developed by aket0r


Note: This is a visual lock. It’s not designed for strict security or access control — but rather as a quick privacy screen or attention blocker.