Floating Stopwatch

Tab-isolated stopwatch for any website

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Aŭtoro
quantavil
Ĉiutagaj instaloj
1
Tutaj instaloj
3
Ratings
0 0 0
Versio
1.1
Kreita
2026/06/13
Ĝisdatigita
2026/06/13
Size
14,9 kb
Licenco
MIT
Aplikiĝas al
Ĉiuj retejoj

Floating Stopwatch

A high-performance, lightweight, and tab-isolated floating stopwatch designed to persist seamlessly across page reloads and protect against DOM destruction.

Features

  • Tab-Isolated State: Tracks time metrics independently per browser tab using sessionStorage.
  • Resilient Architecture: Implements a targeted MutationObserver that automatically redeploys the Shadow DOM container if hostile site scripts purge the element, without causing layout-invalidation feedback loops.

Installation

  1. Install a userscript manager such as Tampermonkey or Violentmonkey.
  2. Copy and paste the script code into your manager, or click install from the Greasy Fork interface.
  3. Navigate to any web protocol target to initialize the UI.

Usage and Interface Controls

The interface mounts silently at the root level of the target page document.

Core Mechanics

  • 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).

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.

Tampermonkey Menu Commands

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.