Back to projectsAutomation script

HTML5 Video Player Enhancements

HTML5 video userscript that adds precise playback-speed controls, presets, and a responsive on-screen indicator.

Context

Built as a generic enhancement for HTML5 video players rather than a script tied to one streaming site, focusing on a missing but highly repeated interaction: speed control.

Problem

Default HTML5 players often expose limited speed options and inconsistent shortcuts, which is frustrating for users who frequently adjust playback pace.

Solution

The script adds incremental speed changes, preset shortcuts, previous-speed toggling, a fade-out speed overlay, and dynamic video detection so controls remain available as players change on the page.

Key decisions

  • -Kept the feature set generic so the script works across multiple sites and browsers.
  • -Used an overlay indicator to make speed changes visible without opening controls.
  • -Added MutationObserver-based video detection to handle dynamic players.

Key features

  • -Incremental playback-speed controls
  • -Quick preset speeds and previous-speed toggling
  • -On-screen speed indicator with fade effect
  • -Fullscreen-aware positioning
  • -Dynamic video detection for changing pages

Results

  • -Extends a common browser primitive in a way users notice immediately.
  • -Shows a reusable enhancement pattern outside platform-specific scripting.
  • -Adds a more general-purpose tool to the automation catalog.

Stack

JavaScriptTampermonkeyHTML5 Video API

Links