I want to disable videos in Safari, as I have to pay for each byte downloaded. Some videos I may want to watch, but I want to decide whether I use my precious bandwidth, rather than have it automatically play. Is there any way to accomplish this?
This seems to work for me (macOS Sierra 10.12.2, Safari 10.0.2), courtesy of jeffreyv in an Apple Support thread:
In the Terminal, enter:
defaults write com.apple.Safari IncludeInternalDebugMenu 1
That enables the Debug menu in Safari. Then tick this menu item on:
Debug -> Media Flags -> Video Needs User Action
It appears to currently not be possible to do this in Safari. While a plugin could exist to do this, I'm currently unaware of any.
This article does a good job summarizing the other options you have (other browsers). Of the list, I'd choose Firefox as it supports what you're looking for natively, though there are extensions/plugins for Chrome and Opera.
It may also be important to note that these only look for the
<audio> tags. Other forms of media (big gifs, Java extensions etc.) which consume significant bandwidth may be able to slip through.
I have had a little (but not enough) luck adding the following to my /etc/hosts file:
## Autoplay videos 127.0.0.1 vp.nyt.com 127.0.0.1 nythlslive-i.akamaihd.net 127.0.0.1 ondemand.abcnews.com 127.0.0.1 newsy-limelightovp3.creatorcloud.netdna-cdn.com 127.0.0.1 player.hearstdigitalstudios.com 127.0.0.1 c.brightcove.com #Independent