13
votes

The Page Visibility API starts to be commonly used to pause mandatory video advertisements when the tab is not in focus.

This means you need to be watching the ad, if you switch tab or even have another app or menu covering the browser the ad will pause and prevent access to the content.

It is extremely annoying but I couldn't find a way to circumvent this.

Is there any way to disable or spoof the API, so one can do something else while the ad is playing?

1
Can't seem to defineProperty on document's webkitHidden. You'd need to get it into a scope where you have vard a custom document Object.Paul S.
Do you mean a Chrome extension can't disable it the Page Visibility API ?aberaud
An extension certainly can. See below.Wyatt
this is the firefox version of this add on addons.mozilla.org/en-US/firefox/addon/disable-page-visibilityuser14794939

1 Answers

16
votes

I wrote you an extension that will do just that.

Available here.

I tested it on this page.

Repository here.

Let me know if you have any questions.