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

Added Block Focus Option #8

Closed rachitkataria13 closed 3 years ago

rachitkataria13 commented 3 years ago

Was useful for me to block in a certain webpage which used to add anomaly to the page when triggering focus without blur first and its completely optional to enable if but I may have left it enabled by default. change that if you wish and sorry, Its not such a big feature.

image

To check you can use the following JavaScript on any website with jQuery.

var i = 0;
$(window).focus(function() {
    i++;
    console.log(i);
});
$(window).blur(function() {
    console.log("Tabbed Out");
});