Created
December 5, 2020 16:04
-
-
Save alimertcakar/aaee661260aa0fecf0cecd62bd0485f7 to your computer and use it in GitHub Desktop.
Javascript Block Alt+Tab Logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
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