Skip to content

ayushmk7/ScreenCleanLock

Repository files navigation

ScreenCleanLock

A tiny static web app that locks your screen and keyboard so you can wipe your monitor without triggering clicks, scrolls, or keystrokes. No dependencies, no build step — just HTML, CSS, and vanilla JS.

Live: screencleanlock.vercel.app

How it works

  1. Click Lock. The page goes fullscreen and a black overlay covers the screen.
  2. While locked, clicks, scrolls, touches, and right-clicks are suppressed — safe to wipe the screen or keyboard.
  3. Hold Space for 2 seconds to unlock. A countdown shows how much longer to hold.
  4. Pressing Escape force-exits fullscreen (browsers don't let JS block this) — the app detects the fullscreen change and unlocks automatically, staying in sync with reality.

Run locally

No build step needed. Serve the directory with any static file server, e.g.:

npx serve .

Then open the printed local URL.

Test

node --test

Runs the unit tests in lockState.test.mjs using Node's built-in test runner.

Deploy

Deployed on Vercel as a static site (see vercel.json). Push to main and Vercel builds automatically, or deploy manually:

vercel --prod

Project structure

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors