A high-performance, lightweight, and tab-isolated floating stopwatch designed to persist seamlessly across page reloads and protect against DOM destruction.
- Tab-Isolated State: Tracks time metrics independently per browser tab using
sessionStorage. - Resilient Architecture: Implements a targeted
MutationObserverthat automatically redeploys the Shadow DOM container if hostile site scripts purge the element, without causing layout-invalidation feedback loops.
- Install a userscript manager such as Tampermonkey or Violentmonkey.
- Copy and paste the script code into your manager, or click install from the Greasy Fork interface.
- Navigate to any web protocol target to initialize the UI.
The interface mounts silently at the root level of the target page document.
- Start / Pause: Initiates or halts the ticking engine.
- Lap / Reset: Calculates intervals dynamically when active, or completely purges historical states and resets time differentials back to zero when paused.
- Close Button: Dismisses the primary stopwatch card container and exposes the floating action button (FAB).
- A minimalist circle overlay (
⏱) appears at the bottom-right corner of the view when the panel is closed. Clicking it restores the full card geometry instantly.
Access your userscript manager icon menu to trigger global automation parameters directly:
⏱ Toggle Stopwatch- Force toggles the current viewport display state.✨ Toggle FAB- Toggles the persistent visibility of the floating action button entirely based on your layout workspace preferences.