brian-girko / always-active Goto Github PK
View Code? Open in Web Editor NEWPretend a webpage is in its active state even if not
Home Page: https://webextension.org/listing/always-active.html
Pretend a webpage is in its active state even if not
Home Page: https://webextension.org/listing/always-active.html
After the recent update, it seems that the extension is off by default unless the user explicitly lists which websites it should be enabled on. IMO, the extension would be most useful if it was "always active" unless disabled via a blacklist. It seems that there is currently no way to restore the original functionality where the extension is enabled on all websites. I have tried using wildcards to no avail.
Works well for me but I would like an option to make my browser think I'm on full screen when i leave a page.
Is this possible by overwriting the document.fullscreenElement event?
Current behaviour:
Microsoft Teams
is not focused, status changes to Away
Expected behaviour:
Microsoft Teams
status should stay Online
even if browser tab/window is in the background for long periods of timeSteps to reproduce the problem:
Microsoft Teams
in a tab or separate windowOnline
Away
and switch back to Online
as soon as you reopen ithttps://loot.tv/ seems to work around the fix somehow. The site itself was working fine without any helping extension for quite a while. Maybe two or three days ago they changed some code and since then I don't get ads there anymore. I was told that others get ads when they had the tab focused, so I thought this extension would help me.
I don't know if signing up is necessary, but creating a new account is free.
I'm using Vivaldi 6.2.3105.47, which is based on Chrome 116.
As we are aware, blocking these APIs breaks some websites, so we need to allow some events to pass.
For example, hovering many elements on youtube shows a tooltip, and the tooltip will never disappear, unless we allow mouseleave like so:
"www.youtube.com": [
"mouseleave"
]
However, while we need to allow mouseleave for the individual elements within the page (div
s), in order to enjoy the functionality of things like tooltips, we don't need to allow it for elements such as window
, document
, html
, body
, etc. etc., since they rarely offer any real functionality besides tracking.
I wonder if we could provide an element selector as a filter for allowing events to pass?
For example, something like:
"www.youtube.com": [
"mouseleave" : {
"body *"
}
]
Would allow mouseleave events for elements within the body
, so tooltips could work, but at the same time, block everything from the body
up, so not allow the site to know when we're in another tab. Allowing multiple selectors will allow users to be very specific with their compromise between privacy and functionality.
I believe you can test this without signing up - but creating an account is free.
The animations during AI chat will pause when the window is not active, so they are using a mechanism this extension doesn't handle.
Ever since updating to v0.2.4, Twitch now has issues with displaying Channel Points and View Count, often showing "NaN".
If you go to a Twitch stream with the extension active, at first everything will appear fine, but then when it tries to do a live update of the numbers, it seems to be a 75/25 (in favor of error) chance of showing "NaN" instead of the actual number.
I have not had this issue with v0.2.3, and I have confirmed this is linked to this extension, because it stops happening if I disable this extension. I could not find anything useful in the devtools error log.
Is there a way I can downgrade back to v0.2.3, or do you have any idea what changes in v0.2.4 would have caused this? I haven't changed any of the extension's settings since the update.
Thanks, and sorry to bother about this again.
123
I'm noticing that if the window I'm trying to keep active is completely behind another window, it continues to be throttled. As soon as just a tiny fraction of the background window becomes visible, it begins to function normally again. Is there any way to get a fully backgrounded window to behave as though it's active and visible?
Can you add an option to only enable on specific websites? Not all websites I want to be active
When we are in another tab, Bing Chat stops generating the response, only when we return to the tab does it continue to generate the response
This doesn't work as I thought it would.
For this to work properly,
At edge://discards, the visibility of all tabs must be visible.
But this extension cannot make it visible.
Could it be possible to have a Firefox Android support ?
This extension doesn't work in meet.google.com website. Google meet displays the request join dialogue only when the visibilityState is not "hidden" and this extension was not able to bypass this website. Please find a fix for this.
This is a feature request and bug fix in one.
Some pages will initially load, but will wait before critical operations like laying out the page or loading assets, until the page is visible. For these pages we need to allow the visibility API and friends to pass, and this continues for the entire lifetime of the page - but we only really needed that one event, to kick things off.
If this addon fired a single synthetic event of each type it would later block, once the page is loaded, then we could keep a lot more sites blocked.
This also helps in general, to avoid a failure mode, where for example the site thinks the page is visible, since document.visibilityState == true
, but never learns it is visible because no visibilityChange
event was ever received, so there's this element that can logically be both 'visible' and 'not visible' at the same time, or neither visible nor invisible, according to entirely legitimate code. (this exact scenario broke the very popular Dark Reader addon (they provided a workaround at their end, to not check visibility))
Although it's always nice, I'm not even sure this needs to be optional. Firstly, it's fixing a bug, but secondly; At the moment, we gain privacy by giving no data on page visibility via events, and false data via variables, but I'd say there's even greater privacy in providing false data on page visibility via events, as well.
First of all, thanks for making the addon!
I tried finding my own solution around the internet but nothing that I found worked together with greasemonkey and javascript code.
Your addon works perfectly but I want to disable 1 feature which is the "mouseleave" option.
Many sites has menu's that appear and disappear on hovering but with your addon, the menu appears and does not disappear.
I don't want to disable the addon. I just want this one thing disabled and not the rest.
I hope you can make a options page where we can enable/disable the features.
If there is a system how to collect logs. I can send you.
I'm using Ubuntu chrome.
I have v0.2.3, and have it limited to only access twitch.tv as this is the site I need it to work on. It has been working great to prevent their onblur bandwidth downgrade system that 9/10 times breaks streams.
But now my flavor of chromium is bugging me to update the extension, and that the addon now requires "Read and change all your data on all websites". If I upgrade can I revert back to twitch only? If not, why does the extension now require access to all sites?
Thanks!
I noticed this while playing a video in the background. Normally, when the video ends, cards are shown to recommend other videos.
When the video plays while tab is in the background, the video ends, but the page waits until the tab is foreground again before showing those cards. It can clearly detect that the tab is not visible and when it became visible again.
Happy to help with this if there's anything I can do!
Website tells me to focus even when extension is enabled, its called faucetcrypto
Websites detect this extension and block entry. so can you make this extension invisible to websites. the website i am talking about is neocolabs, thank you.
Please add mouseLeave event blinder too. some websites check if mouse is on the page or not
var i = 0;
var blur = false;
window.onfocus = function (ev) {
if (i > 0 && !blur) {
console.log("onFocus() but never called onBlur()")
} else {
i++;
console.log("onFocus: tab is active");
}
};
window.onblur = function (ev) {
blur = true;
console.log("onBlur: tab is inactive");
};
This Javascript can detect Always-Active. If onFocus is called, but onBlur was not, then wouldn't that imply something fishy is going on and that the user did indeed lose focus of the window?
Hello,
It seems this doesn't block .isActive states, as tested here:
https://jsbin.com/puhelonuco/edit?html,js,output
Please allow changing it to active
The vitero system (https://www.vitero.de/de/) does still know. if you are in the session or not. I was not able to find the events.
This is Fox Sports/ESPN/etc in Australia, so a pretty big site. I notice that when I do not have the tab in the foreground, videos will not play. As soon as I switch to the tab, the video starts.
Fantastic extension, very helpful for use on domains that abuse visibilitychange
detection, however many sites make good valid use of this event, so it would be nice if by default it was allowed, then this extension only became active for troublesome websites.
This site detects the focus event: http://www2.stat.duke.edu/~cc248/jsphylosvg/js/yui/tests/event/tests/manual/window-focus-test.html
This disease is spreading. Sites are using the method described in #18.
This addon may hide changes to page visibility, but does not ever make the page 'visible' in the first place. So, now netflix considers itself invisible until I click on it and it suddenly 'comes to life'. This is correct on netflix's part, this addon breaks the browser's compliance to HTML spec.
Please, please, please, could we just have it fire that visibilitychange event so pages behave normally and can't spy on us? This addon is so great but it breaks so often because of this simple oversight.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.