An extension for Chromium-based browsers that disables autoplay of HTML5 audio and video
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
LICENSE
README.md
background.js
content_script.js
manifest.json

README.md

Disable HTML5 Autoplay

A Google Chrome extension that disables autoplay of all HTML5 audio and video

This extension disables autoplay on all websites. Unlike others that simply pause the media or strip the autoplay attribute in HTML, this extension will also prevent JavaScript from playing the media. Furthermore, dynamically added media will be parsed by this extension.

When you enter a website, this extension will pause all media on the page. A green play icon will show up in the address bar. To allow all media to play, click this icon. If you do not click this icon, audio and video will not play.

After you click this icon, it will change into A yellow pause icon. In this mode, all media will be able to play. Clicking this button will pause any new media on the page and revert to A green play icon.

If the icon is not present in the address bar, that means there are no media on the page.

Installation

Install from Chrome Webstore

Install from source

  1. Download and unpack the source code:
  1. In chrome://extensions/, enable Developer mode
  2. Use "Load unpacked extension..." and select the folder containing the extension source code

TODO

  • Add website blacklisting xor whitelisting(?)
  • Add statistics for functions called during suspension(?)