Tip of the Week: Disable Auto-play Videos in Your Browser
- Quit Safari.
- Open Terminal (you can find it on your hard drive in Applications/Utilities).
- Enter the following commands. Each is a single line regardless of how they break on screen. If you aren't comfortable using Terminal, it's usually easier to copy and paste them:
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2RequiresUserGestureForMediaPlayback" -bool true
defaults write com.apple.Safari WebKitVideoPlaybackRequiresUserGesture -bool true
Quit Terminal. Open Safari and test with a website that has auto-playing videos. You can still play videos by clicking on them. To reverse the changes, quit Safari, open Terminal, and enter this command (again, it's a single line which you can copy and paste):
defaults write com.apple.Safari WebKitVideoPlaybackRequiresUserGesture -bool false
Quit Terminal, open Safari and test with a website that has auto-playing videos.
- Launch Firefox and type “about:config” (no quotes) in the address bar.
- Confirm that you will be careful if the notification comes up.
- In the search at the top type: media.auto
- Double-click on the line that starts media.autoplay.enabled.
You’ll see it change to “user set boolean false.” Auto-playing of videos is now turned off.
You can still play embedded videos by clicking on them. To reverse the change, repeat the steps above. You’ll see it change to “default boolean true” Auto-playing of videos is now on again.
- Launch Chrome and go to this URL: https://chrome.google.com/webstore/detail/disable-html5-autoplay/efdhoaajjjgckpbkoglidkeendpkolai?hl=en
- Click the Add to Chrome button.
- Click the Add Extension button.
The extension will disable autoplaying videos. You can still click on them to play. You can also turn the extension off and on if you want videos to autoplay again by clicking the red button at the end of the address bar. You can remove the extension completely by right-clicking on the red button (or hold down the control key and click on the red button) then select "Remove from Chrome…" in the pop-up menu.