Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
Site Visibility Control 预览

Site Visibility Control 作者: SurgWaterfox

Keep selected websites seeing your page as visible when you switch tabs or minimize the browser. Helps stop sites like Twitch.tv from lowering video quality when you switch tabs or minimize the browser. Turn it on only for the websites you choose.

0(0 条评价)0(0 条评价)
2 个用户2 个用户
下载 Firefox 并安装扩展
下载文件

扩展元数据

关于此扩展
Control Page Visibility on websites you choose.

Site Visibility Control reports the page as visible and blocks visibility-change events on enabled websites. Every website starts disabled. Use the toolbar popup to enable an exact hostname, optionally include its subdomains, and remove saved rules. Your choices are saved across browser restarts.

How to use it:
1. Visit a website and open Site Visibility Control from the extensions menu.
2. Click “Enable for this website” and approve access to that hostname.
3. Reload the page to apply the change.
4. To turn it off, remove its rule and reload the page.

You can enable it only for Twitch or choose other websites.

Only the Page Visibility API is changed. Focus and blur detection, background timer throttling, system sleep, and other activity checks remain active. Embedded frames need their own matching hostname rule. Browser-protected pages cannot be changed.

Website access is requested separately for each enabled hostname. Site choices stay in local browser storage. There are no analytics, advertisements, remote scripts, accounts, or extension-initiated network requests.
开发者留言
This extension modifies Page Visibility API results and visibility events only on user-selected HTTP/HTTPS hostnames. No website is selected by default.

All executable code is readable in the XPI. There are no dependencies, build tools, minification, transpilation, bundling, eval, or remote scripts. Packaging consists only of ZIP compression.

Permissions:
- activeTab reads the current URL when the user opens the popup.
- storage saves selected hostname patterns locally.
- scripting registers the content script at document_start.
- Optional host permissions are requested for individual user-selected hostnames.

visibility.js uses Gecko’s wrappedJSObject/exportFunction bridge to expose constant visibility getters to page scripts. It overrides document and Document.prototype getters and stops visibilitychange events with capturing listeners.

To test: enable an ordinary website, approve permission, and reload. While the tab is in the background, page scripts should read document.hidden as false and document.visibilityState as "visible". Visibility-change callbacks should be suppressed. An unselected hostname should retain normal behavior. Remove the rule and reload to restore native behavior.

Automated syntax and logic checks passed. Real Firefox/Waterfox end-to-end testing could not be completed in the preparation environment. No website account or testing credentials are required.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

可选权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 复制附加组件 ID
版本
1.0.1
大小
18.13 KB
上次更新
1 个月前 (2026年10月19日)
相关分类
  • 照片、音乐和视频
  • 标签页
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。