Skip to content

Instantly share code, notes, and snippets.

@anevins12
Last active March 12, 2021 17:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anevins12/6d4c30800df981dccc36e26b908a7cad to your computer and use it in GitHub Desktop.
Save anevins12/6d4c30800df981dccc36e26b908a7cad to your computer and use it in GitHub Desktop.
Remove gifs & emojis from Microsoft Teams
// ==UserScript==
// @name Remove emojis & remove gifs
// @namespace http://tampermonkey.net/
// @include *://*teams.microsoft.com/*
// @version 0.1
// @grant none
// ==/UserScript==
(function() {
'use strict';
var styles,
stylesTag = document.createElement('style');
styles = '[class*="animated-emoticon"] { display: none; }';
styles += '.stopped-gif, .playing-gif { display: none !important; }';
// Add styles to tag
stylesTag.textContent = styles;
// Append tag to DOM
document.head.appendChild(stylesTag);
})();
@quamis
Copy link

quamis commented Jul 24, 2019

how should I use this?

@anevins12
Copy link
Author

This is only useful if you're viewing Microsoft Teams in your Web browser.

If you are viewing it in your browser;

  1. Install the Tampermonkey addon;
  2. Copy and paste this script into a new Tampermonkey script (in the addon dashboard).

@quamis
Copy link

quamis commented Jul 24, 2019 via email

@dsmiller95
Copy link

You can set up a script to inject ordinary javascript into the app. I set up a package to try to put more emojis in but you could use the same technique to do the opposite.
have a look at my repo: https://github.com/dsmiller95/microsoft-teams-emojifier

@quamis
Copy link

quamis commented Jul 29, 2019

@dsmiller95 - setting that up seems a little more complicated than what I would have wished for. I'll try using the web version and see how it works for a while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment