Automatically pause YouTube HTML5 videos when they appear.
< 脚本YouTube HTML5 AutoPause的反馈
Fix for the new player
I found a fix for the new Youtube player, which has been enabled since August 2015:
Change the line with var buttons to this:
var buttons
var buttons = document.querySelectorAll('.ytp-play-button[aria-label="Pause"]');
Thanks! I have applied a simpler version of your suggested fix in version 0.1.1 of this script. Enjoy!
登录以发表回复。
Fix for the new player
I found a fix for the new Youtube player, which has been enabled since August 2015:
Change the line with
var buttons
to this:var buttons = document.querySelectorAll('.ytp-play-button[aria-label="Pause"]');