Automatically pause YouTube HTML5 videos when they appear.
< Feedback on 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"]');