YouTube Default Audio Track

Makes it possible to select the desired Audio Track played by default.

< 腳本YouTube Default Audio Track的回應

評論:正評 - 腳本一切正常

§
發表於:2024-06-21

I got the error "player.getAvailableAudioTracks is not a function", with GreaseMonkey on Firefox. It seems that the returned player object is a copy made at a certain point that isn't synced with the real object, no matter how much time I wait before calling getPlayer(), I get an object but without the YT properties, while calling getAvailableAudioTracks() totally works in console. I fixed it by editing getPlayer(), prepending "unsafeWindow." before "document.querySelector(...)". Otherwise it does its job fine, thanks for scratching this itch ;)

§
發表於:2024-12-16

Same error here, same fix. Thanks

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址