Spoof or disable the Page Visibility API [closed]

2019-03-25 16:22发布

The Page Visibility API ( https://developer.mozilla.org/en-US/docs/Web/Guide/User_experience/Using_the_Page_Visibility_API ) starts to be commonly used to pause mandatory video advertisements when the tab in 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 Chrome or Firefox extension or hidden option to disable or spoof the API, so one can do something else while the ad is playing ?

Thanks

1条回答
一纸荒年 Trace。
2楼-- · 2019-03-25 17:00

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.

查看更多
登录 后发表回答