Skip to content

Instantly share code, notes, and snippets.

@avoidik
Created August 6, 2024 13:59
Show Gist options
  • Save avoidik/cb474c2a9e691ed56d7d987c32517e2f to your computer and use it in GitHub Desktop.
Save avoidik/cb474c2a9e691ed56d7d987c32517e2f to your computer and use it in GitHub Desktop.
Tampermonkey script to suppress Amazon Q annoyances
// ==UserScript==
// @name Tame AmazonQ
// @namespace http://tampermonkey.net/
// @version 2024-08-06
// @description Tampermonkey script to suppress Amazon Q annoyances
// @author Anonymous
// @match https://docs.aws.amazon.com/*
// @grant none
// ==/UserScript==
(function () {
"use strict";
let observer = new MutationObserver((mutationRecords) => {
const popOver = document.querySelector(".floatingChatWindow-0-1-7.awsui-visual-refresh");
if (popOver) popOver.remove();
const emblemIcon = document.querySelector(".floatingChatContainer-0-1-1");
if (emblemIcon) emblemIcon.remove();
const popOverTour = document.querySelector("#floating-experience-feature-tour-popover");
if (popOverTour) popOverTour.remove();
});
observer.observe(document, { childList: true, subtree: true });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment