Stop automatic video play in Firefox

For embeded videos you can set media.autoplay.enabled to false in about:config.

For flash-players you can either disable automatic flash loading/start with some addon or use custom addons/greasemonkey scripts to disable each specific player's autoplay. For example: http://userscripts.org/scripts/show/13333


With the release of Firefox 63, the media.autoplay.enabled option no longer affects automatic video:

The preference media.autoplay.enabled is not listed anymore and it seems to have been removed as of Firefox 63. If you set it and right-click on it to reset it, you will notice that it is removed automatically on restart; that's a clear indicator that the preference is no longer supported.

This option has been replaced by several potential configurations, most notably media.autoplay.default:

  1. Within a new Firefox tab, enter about:config
  2. If necessary, click the button labeled I accept the risk!
  3. Search for media.autoplay.default
  4. To allow autoplay by default, set it to 0
  5. To block autoplay by default, set it to 1
  6. To be prompted for each domain, set it to 2

Update

Following the release of Firefox 66, the same option that was previously available in the about:config interface is now built into the default Options page:

Firefox Block Media Autoplay

Checking that box will automatically set media.autoplay.default to 1 within the about:config interface. However, in order to completely stop media autoplay you will want to adjust the following settings, also:

  • Change media.autoplay.allow-muted to false
  • Change media.autoplay.enabled.user-gestures-needed to false

Sources:
Allow or block media autoplay in Firefox
Firefox gets improved autoplay blocking soon
'media.autoplay.enabled' setting no longer stops video auto-play (version 63.0)