macOS: Disable Video Autoplay in Safari

Children cheering after disabling video autoplay

If you use Safari, you might be regularly annoyed by the tendency of certain sites to automatically play their videos when you vist the page. I know it bothers me, and yes, I’m looking at you, CNN. Thanks to the capable sleuthing of Mac Geek Gab listener Scott Barman, we can show you how to turn off video autoplay in Safari. This method works in macOS Sierra and OS X El Capitan, and probably other versions of OS X.

TMO reenactment of children cheering because they were able to disable video autoplay
You can also be this happy after you learn to disable video autoplay in Safari (Image Credit: StartupStockPhotos

Disable Video Autoplay in Safari

To disable video autoplay, you need to quit Safari completely. That means clicking Safari from the top left of the menu bar, and then Quit. Once that’s done, launch Terminal from Applications -> Utilities. In Terminal, type the following commands:

defaults write WebKitMediaPlaybackAllowsInline -bool false
defaults write -bool false

If you’re running the WebKit Technology Preview, you’ll also need to run these commands in Terminal:

defaults write WebKitMediaPlaybackAllowsInline -bool false
defaults write -bool false

That’s it. Start up Safari once again, and enjoy a life free of video autoplay.

Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Oldest Most Voted
Inline Feedbacks
View all comments

I just relax after see imvu credits are not here in your website


BUT! i now want to REVERT the terminal command because it’s kind of a pain in other places… so… PLEASE… what is the code to reverse the info above? thank you!


Whoa, thank you for the instant response. I’ll try it. I’m the kind of user that has no business trying anything in Terminal, it’s a frightening space for the layperson.



This is a great article. I wish that there was a way to vote this article “up” to make it easier for others to find.


Thank you so much. This is ridiculous CNN. It’s been a pain to shut off. This worked great!


How do I reset it now to original setting?
(Causing problems)


Well, does not work for me, with the new benefit of not being able to even stop the video using its own controls. I assume to reverse this I change the “false” flags to “true” ?
(Using 10.9.5)

Lee Dronick

Faxus, thanks for the Debug menu tip

Seeing as this story has evolved into a Safari wish list, can we:

1. Hide the fact that Safari is in Private mode? Some websites won’t let you in unless they can dump a ton of permanent cookies on you.

2. Block popup nags to sign up for newsletters?


You can also use the Debug menu for those who have enabled it
Defaults write IncludeInternalDebugMenu 1
(Or SafariTechnologyPreview)
Then Media Flags > Disallow Inline Video



Wow. This might actually make me reading again. Haven’t been there in over a year because of their stupid auto-play videos.


I tested this…and it works!

Well, at least today it works, until they find a way around it. I’m ok with advertisements as long as they don’t distract me from the content that I came for. If its inline with the content I’m reading ( i.e an ad inserted in-between paragraphs ) or animated or plays sounds that break my concentration from what I’m reading, then it’s a deal breaker. Silent, static ads that are outside of the “content zone” are ok with me.


Is there a way to kill GIF animation?

Please? PLEASE ??

Lee Dronick

It works! At least on a favorite website, and I am sure that it is universal.

This should be a Safari Extension

John Kelley

Yes! And thank you!!

Looking at you CNN!

Lee Dronick

Thank you!