Skip to content

Tampermonkey script to force and keep an availability status in ms Teams (web version only)

License

Notifications You must be signed in to change notification settings

Bnz-0/fuk-u-teams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuk u teams 2.0

Tampermonkey script to force and keep an availability status in ms Teams (web version only)

Script working with teams 1.0 on branch teams-v1

Teams use some Windows api to know if you are AFK or not (like see if the mouse is moving), but in the browser version this (luckily) doesn't work. So teams ends up show an "away" status even if you are working hard, and maybe some colleagues decide to not contact you just because you "appear away" (which may sound like a feature but just focus on the fact that Teams lies to the others).

This script try to fix this problem letting you set the status and avoid automatic changes made by Teams.

Features

  • Force and keep the Teams availability status
  • Associate a custom note to a custom status
  • Support for the pinned notes (i.e. every one will see it if they try to message you)

Customization

To customize the statuses you have to modify this map inside the code:

const statusMap = {
    "Script Off": { "status": RESET },
    "Available": { "status": AVAILABLE },
    "Busy": { "status": BUSY },
    "DoNotDisturb": { "status": DO_NOT_DISTURB },
    "BeRightBack": { "status": BE_RIGHT_BACK },
    "Away": { "status": AWAY },
    "Offline": { "status": OFFLINE }
};

By default it contains all the Teams's statuses, but you can add other by simply specifying the "status" and a "note".

To show you an example, in my daily work I added those two custom status with some notes:

const statusMap = {
     // ...
    "Pausetta": {"status": BE_RIGHT_BACK, "note": "Pausetta caffè"},
    "Pranzo": {"status": AWAY, "note": pinned("Són anæto a mangiâ")}
};

Installation

Original author

The original script was "stolen" from this reddit post. Later, I add some feature starting from that snippet.

About

Tampermonkey script to force and keep an availability status in ms Teams (web version only)

Topics

Resources

License

Stars

Watchers

Forks