11

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;
})
shinzou
  • 554

3 Answers3

8

I just enabled uBlock origin on Facebook again and now I can play videos in the background.

Seriously Facebook, what the hell?

shinzou
  • 554
4

Here's another simple workaround to execute in the dev console:

document.onblur = null
document.onvisibilitychange = null
cfstras
  • 399