Created
October 25, 2021 09:06
-
-
Save philfry/b77b6078ef37e19555da87a0e8e2aa9c to your computer and use it in GitHub Desktop.
microsoft teams – remove nag screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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