A user script that adds Idle Detection support to Microsoft Teams' web client.
If you are using Microsoft Teams in a web browser, you might have come across this issue: Once you leave the tab or focus another application, Teams stops seeing you as active and will eventually set your status to "Away" despite you being active and working in other applications.
To prevent this, this user script adds support for the Idle Detection API to the web client. When the user is active and the screen is unlocked, the user script will regularly send events to the web client so your status stays on "Available".
- A web browser that supports the Idle Detection API.
- Tampermonkey or a similar browser extension to load/inject the user script.
Install the script via Tampermonkey, activate it and reload the Teams web client.
One time only, you need to click the Teams logo in the top bar. This will request permission to use the Idle Detector.
Once you grant the permission, you are good to go and the step does not need to be repeated unless you clear the site permissions for Microsoft Teams.