Skip to content

Instantly share code, notes, and snippets.

@alimertcakar
Created December 5, 2020 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alimertcakar/aaee661260aa0fecf0cecd62bd0485f7 to your computer and use it in GitHub Desktop.
Save alimertcakar/aaee661260aa0fecf0cecd62bd0485f7 to your computer and use it in GitHub Desktop.
Javascript Block Alt+Tab Logging
(
function () {
setTimeout(() => {
clearInterval(window.tekrarlayici);
window.tekrarlayici = setInterval(function (
) {
window.onblur = function () { document.title = "Please update Internet Explorer 9.0"; document.hidden = false; };
window.onfocus = function () { document.title = "Please update Internet Explorer 9.0" };
Object.defineProperty(document, 'hidden', { value: false, writable: false });
document.addEventListener('visibilitychange', function (e) {
document.title = "Please update Internet Explorer 9.0";
});
}, 100);
}, 1000);
}
)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment