https://addons.mozilla.org/en-US/firefox/addon/autoplay-togg...
That doesn't always work. Some videos don't play at all (even when clicked) and some others play automatically anyway (rare, but it happens).
I saw some other post where a guy hand edits tens of thousands of entries in his hosts file... yeah dude what an amazing use of time.
As for the hosts file, a hand-edited file works great, and you don't have to do thousands of entries on your own. You can find some great examples all over the web, then tune them to your own needs, saving a lot of time. For example, there are at least two out there for Windows 10 users to block all communication with Microsoft's servers, avoiding any telemetry and tracking by the OS. If your router is smart enough, you can even upload your hosts file to it to block any device on your network from getting ads and being tracked.
Can you specify how? I was doing this when I didn't have enough RAM for the Youtube player with latest Firefox and it's not what I personally felt. The current player has size options (larger or full-screen), annotations and comments can be disabled (e.g. with Adblock lists). In the end it's always having the video canvas in front of your eyes. Maybe integration with a tiling WM?
> I'd imagine it could even be automated trivially, by calling youtube-dl via a browser plugin, or by writing a script to pass YouTube URLs to with a simple GUI thrown together in FLTK or TCL/TK.
Existing means for VLC integration aren't that bad either.
For me it was because Firefox on OpenBSD, even on a modern, fast system (quad core AMD64 with 8GB RAM), is so slow and stuttery with any streaming video it was too painful. Using youtube-dl and playing it via mplayer worked much better, and you can customize mplayer's controls to mimic YouTube's if you like (though I never bothered).
VLC is another great option, it's designed for streaming so yes that would be a great alternative. I personally don't use VLC on non-Windows OSes except on Haiku.
If the current web works well for you then great, but it would be naive to think that it fits everyone's use case (Even more so to label what they need to do as "insane").
I do this because the YouTube website (when the player is present) is too slow for my device. It adds about 5 seconds, nothing terrible.
#!/bin/bash
url=`xsel`
notify-send "Downloading - $url"
youtube-dl -o - "$url" -f 43 | mplayer -
Whatever is in your default xsel buffer gets streamed to mplayer, if you bind it a keyboard shortcut (I use alt+shift+y (for Youtube)).Makes life a lot more convenient :)
It also automatically doesn't download things you already have, so it can be used periodically to sync the list if you want.
It only really matters if you expect videos to go down, but I also have my small collection of "videos that were obviously going to be taken down".
I think because of its name people also don't realize that youtube-dl works for LOTS of other sites and it's relatively easy to add new sites in as well.
Not me. I usually open a few tabs at the same time and have to stop every video manually. That's pretty annoying. I wish it didn't have autoplay.
As @ben_bai pointed out above it works that way on Chromium.
Unfortunately, this isn't available for devices with a monopolized browser. (iOS)
Google's and MS's operating systems don't monopolize the browser. I'm not sure if Mozilla is even making an OS anymore. The only OS in this day and age which doesn't let you implement your own browser engine is iOS.
additionally the dom.audiochannel.mutedByDefault and media.default_volume settings may also be useful if you want slightly different behavior.
If you want a more blunt tool you can also use content blockers to block media content until you opt into it for a particular site.
> I know there are plugins than can somewhat do this, but no solutions are universal or great.
How so? There are about a dozen FF addons covering different use-cases like muting inactive tabs or all tabs but a designated one. If none of them meet your particular expectations that might also indicate that everyone wants something different and it is difficult for browser vendors to cover all expectations. Maybe you should modify an existing addon instead to do what you want.