YouTube HTML5 AutoPause

Automatically pause YouTube HTML5 videos when they appear.

< Opiniones de YouTube HTML5 AutoPause

Pregunta o comentario

§
Publicado: 04/08/2015

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"]');

sunakuAutor
§
Publicado: 02/10/2016
Editado: 02/10/2016

Thanks! I have applied a simpler version of your suggested fix in version 0.1.1 of this script. Enjoy!

Publicar respuesta

Inicia sesión para responder.

长期地址
遇到问题?请前往 GitHub 提 Issues。