Recently Facebook added a feature that if I play a video and switch to another tab or a different program from chrome, the video stops playing.
Is there a way to force it to keep playing?
I use Chrome and I don't have flash.
This is not enough to disable that feature:
document.addEventListener('visibilitychange', function(e){ e.stopPropagation(); e.preventDefault(); return false;
}) 4 3 Answers
I just enabled uBlock origin on Facebook again and now I can play videos in the background.
Seriously Facebook, what the hell?
2Here's another simple workaround to execute in the dev console:
document.onblur = null
document.onvisibilitychange = null I developed chrome extension for this :)