Skip to content

Instantly share code, notes, and snippets.

@gustavomdsantos
Created January 10, 2024 20:52
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 gustavomdsantos/e8b3a3e1f34ff0e44d463f8c4086c0c8 to your computer and use it in GitHub Desktop.
Save gustavomdsantos/e8b3a3e1f34ff0e44d463f8c4086c0c8 to your computer and use it in GitHub Desktop.
"Welcome Google Chat" Banner Remover - User JS for Greasemonkey / Tampermonkey.
// ==UserScript==
// @name Welcome Google Chat Remover
// @version 0.1
// @description Removes Google Chat's Welcome banner that is annoying.
// @author Gustavo Moraes (gustavomdsantos@pm.me)
// @match https://mail.google.com/*
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAtFBMVEUAAAAAjjMArUcHiDMYkj4ArEcAqklcuXUArEdcunQArEfSGAlbuXRauXQwsldbuXQCp0SQSx8ArEcAlTgArUcArUf/AAA+fjSpMBF2SxyRWzHYLBtEq2JFZyXHQSkArUgArEdbuXQAgy3/AAAmbyXxBgLYFAYPeimkLg9ZVR1LXB+GPRWWNRIWnUE7ZCJlTxtuShmwKA3HHAniEQb3BAF6ll53RhjAIw3BRyx4WyZqqGqoYj30Jb7kAAAAIHRSTlMAwO/NwOcnj46Fu/zERg3i3M7IwaxVJOjm4d/W0s7DeW4xDSwAAAFLSURBVEjH7ZLXcsIwEEUXQg3GdNITe6+N6c3U5P//K4NGGUlDkfUczpMf7rGvd5d0/HIjvIVXJxMvtGEa9dCKZwjV0I4hlP+h0H/bXg5tD1tD8L+6jyda2Lw8nFN4BX50oVQMJM/AkM8YAgejUjf4IzeKMYjYIKphs3g3hLwSOBogHrHGWLyiYAiBJogCU5WfAKuEbwq8ANaRrLMGdswWgecp4rF4iJHO2S5wsgImzDtgn7BFkCyB9V5YWQTZRvTKLCwAYJdZSE6zFRPNJojtyZ1lEUYxapFcw2ZpF6bqAsWzRRC3pk5DXON1oaP31v9HCQ1DaOqT0SemhLIuzPbAkhVq7bVvmfd8XTgiferkzvlI8VkV1ImMLxxnwUVmrT5pBHYqdBfs9ByFNl0T8pdoVvwrQrFEmXDNk2ueXPPkmifXPOUd89Qrtl3yv7GOzOXGBbxjAAAAAElFTkSuQmCC
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
function removeWelcomeBanner (jNode) {
$(".aB7")[0].remove();
$(".bgt").css("margin-bottom", "auto");
}
waitForKeyElements (".aB7", removeWelcomeBanner);
})();
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment