For Mac or MacBook users, we often encounter videos that automatically play when browsing the web. Although this can load the video in advance, sometimes we don’t want to watch it, so how should we disable it?
Take the Safari browser as an example. Apple provides a hidden debugging menu in Safari, which includes the option to disable automatic video playback. Here's how to enable this hidden debug menu and disable autoplay videos in macOS Sierra or earlier.
1. If Safari is already open, press Command + Q to force it to close.
2. Open the terminal window, the path is: Launchpad – Others – Terminal.
3. Enter the following command and press Enter to enable the Safari internal debugging menu.
defaults write com.apple.Safari IncludeInternalDebugMenu 1
4. Open the Safari browser and click the Debug option on the top menu bar .
5. Select Media Flags > Disallow Inline Video to disable the automatic video playback function.
If you want to hide the internal debugging menu, you can enter the following command in the terminal window to hide it:
defaults write com.apple. Safari IncludeInternalDebugMenu 0