Pretend that all browser windows are active by spoofing the visibility state event and more!
[Breaking Change] Version 0.4.0 and above.
The extension must now be enabled for each hostname individually. This adjustment enhances the extension's performance, as the always-active feature can disrupt websites. To activate it, open the page requiring the always-active feature in a browser tab and click the action button once. The page will refresh, and the action button will turn blue.
---
This extension protects against web pages tracking the activity state of the page. Some websites use this track to only offer services when the tab is active. By installing this extension a small script is injected into every webpage which overwrites the "document.visibilityState", and "document.hidden" properties to pretend the tab is always in the active state (document.visibilityState = 'visible' and document.hidden = false).
This is useful for the webpages that check your visibility state before loading resources like many music webpages. By installing this extension even if the page is opened in the background page, the player will start immediately like the page is loaded on an active tab.
Supported Trackings:
document.mozHidden (only on Firefox browser)
document.webkitHidden (only on Chromium browsers)
Supported Events:
1. visibilitychange
2. webkitvisibilitychange (only on Chromium browsers)
3. mozvisibilitychange (only on Firefox browser)
4. blur (some websites require the user to keep the tab focused)
5. mouseleave (some websites use this method to make sure the user pointer is inside the window)