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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
akket0r
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.0.5
建立日期
2025-07-07
更新日期
2025-07-07
尺寸
4.9 KB
授權條款
MIT
腳本執行於
所有網站

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.