How luaie/safeview works
SafeView is a browser extension that monitors video for rapid luminance changes and applies the user’s selected protection mode. The workflow runs from popup onboarding and settings, through frame sampling and flash detection, to a protection response; detected events are also reported to the extension background worker for badge and statistics updates. The README documents supported video sites and protection capabilities. Source excerpts show the sampler, detector, popup, and worker, but not how the page script is injected, so that handoff is marked unverified.
Main entry points: content.js Flash detector · popup.js Settings and controls · background.js Background worker · popup.html Popup interface
Components 11
Settings and UI
- Popup interface
popup.html - Settings and controls
popup.js
Video monitoring
- Frame sampler
page-script.js - Flash detector
content.js
Protection responses
- Protection modes
content.js - Warnings and HUD
content.js
Extension services
- Synced settings
- Background worker
background.js - Browser action badge
Other components
- User
- Supported video sites
Connections 12
- User → Popup interface: configures
README.md - Popup interface → Settings and controls: hosts controls
popup.js - Settings and controls → Synced settings: reads and writes
popup.js - Settings and controls → Flash detector: pushes settings
popup.js - Supported video sites → Frame sampler: provides video
README.md - Frame sampler → Flash detector: posts luminance
- Flash detector → Synced settings: loads settings
content.js - Flash detector → Protection modes: triggers response
content.js - Protection modes → Warnings and HUD: shows warnings
content.js - Flash detector → Background worker: reports events
content.js - Background worker → Browser action badge: updates badge
background.js - Settings and controls → Background worker: requests totals
popup.js