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.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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.