Stop Auto-Play Videos from Annoying You in Your Browser on macOS

Auto-play videos suck. They use bandwidth, and their annoying sounds get in the way when you’re listening to music and open a web page. I happen to write for a website that uses them, and it annoys me to no end. (My editors have no control over those auto-play videos, alas.)

But you can stop auto-play videos from playing on a Mac. If you use Chrome or Firefox, it’s pretty simple, and the plugins below work both on macOS and Windows; if you use Safari, it’s a bit more complex, but it’s not that hard.

For Chrome: Get the Disable HTML5 Autoplay plugin. This blocks both video and audio from playing automatically.

For Firefox: Use FlashStopper.

For Safari, there used to be an excellent plugin called ClickToPlugin, but it is no longer being updated. So to turn off autoplay videos, you need to first work in Terminal. Quit Safari, then open Terminal (it’s in /Applications/Utilities). Paste this command into the window:

defaults write IncludeInternalDebugMenu 1

Press Return, and wait a few seconds.

Quit Terminal, then launch Safari again. You’ll see a new menu called Debug. To turn off autoplay videos, choose Debug > Media Flags > Disallow Inline Video. (Some people are reporting that choosing this option causes problems playing videos on YouTube. Try Video Needs User Action, if you have this issue. It seems to do more or less the same thing.)

I’m not sure if this still works to enable the Debug menu for Safari on Windows.

With all of these tools, you can still play video or audio; you just need to click the play buttons to do so. But you will no longer be annoyed by autoplay media.

If you want to hide the Safari Debug menu, just quit Safari, then run this command in Terminal:

defaults write IncludeInternalDebugMenu 0

H/t Richard Frisch.


• If you want to display the Debug menu in Safari Technology Preview, this is the command to run:

defaults write IncludeInternalDebugMenu 1

• Here are the direct commands to activate and deactivate this feature in Safari from Terminal, without displaying the Debug menu:

defaults write WebKitMediaPlaybackAllowsInline -bool false

defaults write WebKitMediaPlaybackAllowsInline -bool false

defaults write -bool false

defaults write -bool false

Thanks to zwaldowski for posting them.

• Thanks to a commenter, here’s a link to the Disable HTML5 Autoplay Plugin for Opera.

48 thoughts on “Stop Auto-Play Videos from Annoying You in Your Browser on macOS

  1. Video autoplay IS hostile to users. I have tried this solution and though it works, it turns the whole video experience into a kludge. I have given up on Safari and wont come back until auoplay can be easily and fully disengaged.

  2. one thing i’ve found is that youtube videos now open in fullscreen when you hit play. i found that if you choose “Video Needs User Action” from the drop down menu instead, it cures that, and the tendency of facebook videos to open fullscreen while still blocking autoplay…

    thank you so much! autoplay videos are a plague.

  3. Sigh…as others have said, the Media Flags sub-menu does not exist in Safari 9.1.2, which is the current version for OS X El Capitan.

    To make it worse, now launches not one, but two auto-play videos on each page. An ad-teaser, and then the main video. I’m surprised that my AdBlock Safari extension by BetaFish (donation paid) doesn’t address this.

  4. The Media Flags sub-menu does not exist in Safari 9.1.3 either. I have “Drawing/Compositing Flags”, then “Miscellaneous Flags” underneath which also leads nowhere.

    I have to disable AdBlock Safari before I’m “allowed” to watch videos on some sites. In the meantime, I’m subjected to forced downloads I don’t want while my data allowance gets eaten by these fiendish auto-play ads & videos.

    On a side note, I’m really fed up with various customer support staff telling me to download Google Chrome when their websites glitch with Safari… and YouTube has only gotten worse with Google’s takeover… but I digress.

  5. Thank you!! It also stops videos from shrinking and moving to another spot so that they stay on your screen as you scroll down the page!!!

  6. The ability to stop autoplay in Safari will be one of the new features in the High Sierra Mac OS update later this year.

  7. Great news! The brand-new latest version of Safari — 11.0 (12604. — which I just downloaded on Wednesday, September 20th — finally fixes the problem. No more autoplay!

  8. @Gene Davis

    it’s back to autoplay with safari 11, even though i’ve disabled it in the new preferences settings… grrrrrrrrrrrr 😡

Leave a Comment

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