Mute football commercials on YT.TV

Works on YouTube TV. Turn on Closed Captions. When the captions disappear or move to the bottom of the screen, it is a commercial break, and volume is automatically set very low. Otherwise volume is returned to 100%.

Penulis
Ads suck
Pemasangan harian
0
Total pemasangan
3
Nilai
0 0 0
Versi
1.0
Dibuat
03 Desember 2023
Diperbarui
03 Desember 2023
Size
2,84 KB
Lisensi
MIT
Berlaku untuk

🔇 Automatically mute commercials on YouTube TV during football

Instructions:

  • ✅ Turn on closed captions
  • ✅ Browser tab cannot be in the background
  • ✅ Watching Football on YouTube TV
  • ❌ Otherwise, disable this script, or it will annoy you by muting randomly

How it works (in principle)

  • Closed captions are displayed at the top of the screen during games (because the scoreboard occupies the bottom while the game is on)
  • Closed captions do not appear during commercials (most of the time)
  • Therefore we can look at the closed caption location and content, to determine if the volume should be reduced (0.05) or muted (0.0) - this is up to you

It works on YouTube TV, but the same concept works even better on Amazon Thursday night football.

If some of the commercials have closed captions turned on, you can customize the "banned words" to help detect and mute these also. The closed captions are logged to the developer tools script console for this purpose.

Improvements needed

  • The closed caption box is hidden by the script (even if you want it on), but it flashes when the captions change. This is because the caption element is destroyed/recreated frequently, which resets the style. The script deals with this by checking every 10 ms.
  • If you try to set the volume manually, the script resets it
  • There's a short lag while closed captions disappear where the first commercial may be temporarily unmuted
  • There are also short breaks in dialog / delay before captions appear again where you may miss a few seconds of broadcast until the volume comes back
  • It does not check what you are watching.
  • If watching something OTHER THAN football, you will need to disable this script entirely or it will mess with the volume in unwanted ways

Advertisers

♥ Consider this script a protest supporting the growing number of people who are sensitive to overstimulation in the form of loud, repetitive ads. ♥

Think of ad blocking etc. as feedback on what's acceptable... sure, people want content, but they are forced to tolerate ads. Different people have different tolerance. If the ads aren't tolerable, people block/mute them, or pause the video and skip entirely. Or they stop watching or visiting the content. So do you penalize anti-ad behavior? Or perhaps make the ads more tolerable, maybe even allow a volume preference? Perhaps limit the number of impressions rather than display them relentlessly on every page? Let us (the consumers) come to you. Food for thought...