Spoof or disable the Page Visibility API

妖精的绣舞 提交于 2019-12-12 07:50:52

问题


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:


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.



来源:https://stackoverflow.com/questions/18928417/spoof-or-disable-the-page-visibility-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!