欺骗或禁用Page Visibility API [英] Spoof or disable the Page Visibility API

查看:154
本文介绍了欺骗或禁用Page Visibility API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

页面可见性API( https://developer.mozilla .org / en-US / docs / Web / Guide / User_experience / Using_the_Page_Visibility_API )开始常用于在标签未对焦时暂停强制性视频广告。

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.

是否有任何Chrome或Firefox扩展或隐藏选项来禁用或欺骗API,以便在广告播放时可以做其他事情吗?

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 ?

谢谢

推荐答案

我给你写了一个扩展,就是这样做。

I wrote you an extension that will do just that.

此处可用

我在此页面

存储库这里

如果您有任何疑问,请告诉我。

Let me know if you have any questions.

这篇关于欺骗或禁用Page Visibility API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆