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.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
akket0r
Dnevne instalacije
0
Ukupno instalacija
1
Ocene
0 0 0
Verzija
1.0.5
Napravljeno
07. 07. 2025
Ažurirano
07. 07. 2025
Size
4,92 КБ
Licenca
MIT
Važi za
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.