Created
August 6, 2024 13:59
-
-
Save avoidik/cb474c2a9e691ed56d7d987c32517e2f to your computer and use it in GitHub Desktop.
Tampermonkey script to suppress Amazon Q annoyances
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 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