/noplay

🛑 Video autoplay blocked, for good (Chrome Extension)

Primary LanguageJavaScriptMIT LicenseMIT

emitta

🛑 Video autoplay blocked, for good (Chrome Extension)

noplay is a Google Chrome extension. It aims to disable the autoplaying behavior of videos on your favorite websites.

How does it work ?

noplay removes the HTML5 autoplay attribute on the <video> and <audio> tags. It also listens to DOM changes with the MutationObserver API in order to prevent lazyloading new autoplaying videos.

noplay also deletes the autoplay=1 query string in the Youtube iframe videos.

⚠️ noplay tweaks video and iframe tags, but cannot prevent videos from being played programmatically.

👋 Your thoughts and ideas are welcome! Submit an issue here

What about Facebook or Twitter ?

Facebook, Twitter and probably other websites already allow disabling video autoplay in their settings. It was not worth implementing a solution for them.

Disable autoplay on Facebook:

Go to Settings > Videos > Video autoplay (No)

Disable autoplay on Twitter:

Go to Settings > Acessibility > Video autoplay (uncheck the box)

Installation

You can download the extension on the Google Chrome Web Store

Bug report

Report bugs by filing an issue

Contribute

Pull requests are welcome!

License

MIT © Dorian Camilleri