YouTube HTML5 AutoPause

Automatically pause YouTube HTML5 videos when they appear.

< 腳本YouTube HTML5 AutoPause的回應

提問/評論

§
發表於:2015-08-04

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

sunaku作者
§
發表於:2016-10-02
編輯:2016-10-02

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

發表回覆

登入以回覆