21 responses

  1. Carmen
    July 12, 2017

    I’m having an issue with cpu activity spiking like mad when I go to some sites that seem to have a lot of auto loading things, mostly news sites. Will this take care of that problem?

    • Paul
      July 12, 2017

      It might, usually CPU spikes on web page load are due to things like video, flash, java, embedded widgets for polls and chat, full page takeover ads, animation, interactive features, etc. Try it out, it could make a difference.

  2. Chuk Brokenheimer
    July 12, 2017

    You can also disable inline video and autoplay by using defaults commands

    defaults write com.apple.Safari WebKitMediaPlaybackAllowsInline -bool false

    defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false

    Changing ‘false’ to ‘true’ would reverse thereby enabling inline video again.

  3. Bill G
    July 12, 2017

    Setting the “Video Needs User Action” flag from the same menu works for me.

  4. Ann Z
    July 12, 2017

    Well this didn’t work. I followed the directions then I clicked on the sample website in the article which has an auto play video on it … and … it auto played just fine. Any clues as to what I might have done wrong?

    Ann Z
    Washington DC

    • Squigglesworth
      July 13, 2017

      I was able to stop all autoplay video with inline video but I ended up choosing “Video Requires User Action” instead, which simply puts a play button on all videos rather than disabling them.

      Try that Ann. Both work for me, make sure you’re doing it properly.

  5. Marinecorpsvet
    July 12, 2017

    I like to use Safari Technology Preview. I’ve tried substituting that title in these Terminal commands but no workee. Any suggestions?

    • Torben
      July 13, 2017

      With Safari Technology Preview, the defaults command you have to write in Terminal is:

      defaults write com.apple.SafariTechnologyPreview WebKitMediaPlaybackAllowsInline -bool false

  6. Tony
    July 13, 2017

    Worked for me. Looks like those annoying advert vids have disappeared.
    Nice one!

  7. Michael
    July 13, 2017

    Question: Stops video from autoplaying, but will it still download the entire video in the background / cache ??
    (example a large multi Mb promotional video will not autoplay, but will it still download many Mb every time you visit the site??)

  8. nilesh
    July 13, 2017

    great tip.

  9. Jon
    July 14, 2017

    How do I then make the debug menu disappear from Safari?

  10. R. Taylor
    July 17, 2017

    Thanks Paul – works great but now when I do play a video, regardless of site, it opens in full screen. Can’t figure out how to play the video inline at it’s normal inline size.

  11. Bob Hogan
    July 18, 2017

    I believe that I read somewhere that High Sierra can or will turn off auto-play videos on websites. Very happy to hear that. I find it very difficult to read an article with a video playing right along side it. In the meantime, many thanks for the info about how to disable auto-play in previous versions of the os.

  12. Aeve
    July 22, 2017

    Hello Paul, I have the same issue as R. Taylor with video opening in full screen.

    I found this after searching for a fix for graphics card issues with 2010 MBP and large videos on some websites and 360 photos on Facebook crash my machine. gfxCardStatus mostly stops the switching of cards but the occasional videos still cause problems.

  13. Eric
    August 8, 2017

    Thank you, thank you, thank you for this greatly appreciated tip since we can no longer get away from the constant streaming of marketing crappola.

  14. Yodrak
    September 4, 2017

    My Debug menu does not have a Media Tags item. :-(

    OSx El Capitan, 10.11.6
    Safari Version 9.1.2 (11601.7.7)

  15. Harry
    September 12, 2017

    I do not see this sub menu at all. What version of Safari is this?

  16. Geno
    September 20, 2017

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

  17. Karen
    September 23, 2017

    The update has caused a website that I visit (with ads) to stop functioning. Sierra 10.12.6. I don’t see a debug menu in Terminal. How do I reverse/undo the stop auto-play?

    • Karen
      September 23, 2017

      Fixed it! Safari –> “Settings for this website” –> select auto-play preference for the website.

Leave a Reply

 

 

 

Back to top