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 buttonsto this:var buttons = document.querySelectorAll('.ytp-play-button[aria-label="Pause"]');