Force Facebook to play videos in background tab

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?

2

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

document.onblur = null
document.onvisibilitychange = null

I developed chrome extension for this :)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like