Code Monkey home page Code Monkey logo

fuk-u-teams's Introduction

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.

fuk-u-teams's People

Contributors

bnz-0 avatar

Stargazers

 avatar

Watchers

 avatar

fuk-u-teams's Issues

Make Teams be more responsive from the changes made by the script

Now if you force the status from the dropdown of the script, Teams may decide to ignore that and only after several seconds notice that the status is changed or that you have put a new note.

This of course doesn't happen when you pass through the Teams gui and hopefully there is a function to call to force Teams notice that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.