Skip to content

Instantly share code, notes, and snippets.

@philfry
Created October 25, 2021 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philfry/b77b6078ef37e19555da87a0e8e2aa9c to your computer and use it in GitHub Desktop.
Save philfry/b77b6078ef37e19555da87a0e8e2aa9c to your computer and use it in GitHub Desktop.
microsoft teams – remove nag screen
// ==UserScript==
// @name remove r u still there
// @namespace http://tampermonkey.net/
// @version 0.2
// @description removes the "are you still there?" nag screen from teams
// @author Philippe Kueck
// @match https://teams.microsoft.com/_
// @icon https://www.google.com/s2/favicons?domain=microsoft.com
// @grant none
// ==/UserScript==
(new MutationObserver(nagcheck)).observe(document, {childList: true, subtree: true});
function nagcheck(changes, observer) {
if (document.querySelector('#ngdialog1')) {
console.log("removing 'are you still there?' nag screen");
var nagScreen = document.getElementById('ngdialog1');
nagScreen.parentNode.removeChild(nagScreen);
//observer.disconnect();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment