Skip to content

uditjain100/Browser-Video-Speed-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Video Speed Controller

Chrome Extension Manifest V3 JavaScript License

A lightweight Chrome/Brave extension to control video playback speed on any website using keyboard shortcuts — no UI, no settings, just press and go. Your preferred speed is remembered across tabs and browser restarts.


Features

  • Works on any website with a <video> element — YouTube, Netflix, Twitch, local files, etc.
  • Press Shift + > to increase speed in 0.25× steps, up to
  • Press Shift + < to decrease speed in 0.25× steps, down to 0.25×
  • Speed is persisted — closing a tab and opening a new video elsewhere picks up where you left off
  • Newly added videos (lazy-loaded players, SPA navigation) automatically get the saved speed applied
  • On-screen toast shows current speed after every press
  • Keypresses inside search bars and input fields are ignored

Keyboard Shortcuts

Shortcut Action
Shift + > Increase speed by 0.25× (max 5×)
Shift + < Decrease speed by 0.25× (min 0.25×)

> is Shift + . and < is Shift + , on a standard keyboard.


Speed Steps

0.25× → 0.5× → 0.75× → 1× → 1.25× → 1.5× → … → 5×


Installation (Developer Mode)

  1. Clone or download this repository:

    git clone https://github.com/uditjain100/Youtube-Shorts-Accelerator.git
  2. Open Chrome/Brave and go to chrome://extensions

  3. Enable Developer mode (top-right toggle)

  4. Click Load unpacked and select the project folder

  5. Open any page with a video and press Shift + > to start


How It Works

  • A content script (content.js) is injected into every page at load time
  • On load it reads the last saved speed from chrome.storage.local and applies it to any videos already on the page
  • A MutationObserver watches for dynamically added <video> elements and applies the saved speed immediately
  • Each video is hooked on loadedmetadata, canplay, play, and playing events — using setTimeout(0) to run after the page's own handlers, preventing sites from resetting the speed back to 1×
  • Shift + > / Shift + < keydown events are captured in the capture phase (before site handlers) and update both the active video and persistent storage

About

Universal video speed controller for any website — persistent speed memory, 0.25×–5× range, keyboard shortcuts only.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages