brian-girko / always-active

Pretend a webpage is in its active state even if not
https://webextension.org/listing/always-active.html
75 stars 12 forks source link

Update inject.js #13

Closed uttufy closed 3 years ago

uttufy commented 3 years ago

This PR will make hasFocus() to return 'true' all the time.

brian-girko commented 3 years ago

@uttusharma thanks!

uttufy commented 3 years ago

I am pointing out an issue that this PR is causing. Some site functionality will be affected like incase of google docs. I know you are working on whitelist feature that would resolve this issue.

Thanks for making this extension.

brian-girko commented 3 years ago

This is an aggressive extension and causes issues with different websites. If you are on Chrome, only enable it for the websites that are needed. Or you can have two browsing profiles to isolate this extension. Anyhow, it seems like blocking the "blur" event was responsible for Google Docs issues. In the latest release, I added a policies object that can optionally disable event blocking per hostname.