Blog post

Disable autoplay in Firefox

It can be useful to disable autoplay in new Firefox tabs, since we are not always interested in immediately hearing or watching whatever was opened in the background. Chrome already behaves more like that by default, only autoplaying when the tab gets focus.

To disable background autoplay in Firefox, set these 3 variables in the about:config section:

Variable 1

media.block-play-until-visible

Variable 2

media.block-autoplay-until-in-foreground

Variable 3

media.block-play-until-document-interaction

All 3 are boolean values and they should all be set to True.

After that, Firefox will stop automatically playing media in every background tab. :)