Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
Log in
Preview of Site Visibility Control

Site Visibility Control by 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 reviews)0 (0 reviews)
1 User1 User
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
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.
Developer comments
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.
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Optional permissions:

  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Copy add-on ID
Version
1.0.1
Size
18.13 KB
Last updated
a month ago (Oct 19, 2026)
Related Categories
  • Photos, Music & Videos
  • Tabs
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

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

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.