Auto Picture-in-Picture when switching tabs (only if video is playing)
< 脚本 Auto PiP on Tab Switch 的反馈
Hi! Thanks for the comment.
I 've considered both of your suggestions:
1. The script now checks that the video is actually playing before enabling Picture-in-Picture (PiP) — this prevents the 'NotAllowedError` error.
2. Added the setting `ONLY_WHEN_PLAYING = true'. If the video is **paused**, PiP ** will not turn on** (by default).
Thanks for the helpful feedback! If you have any more ideas, I'll be happy to add
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Hello there!
Script is perfect, except two things:
1) You need to press the pause/play button for the script to work. Without this, NotAllowedError appears in the console. I understand that these are Google Chrome security policies, but if it is possible to bypass this, it would be wonderful.
2) The script works even if the video is paused. I don't think it should work like that, or at least this function should be optionable.