This file contains hidden or 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
function waitForElement(selector, fallbackSelector) { | |
"use strict"; | |
return new Promise((resolve, reject) => { | |
if (document.querySelector(selector)) { | |
return resolve(document.querySelector(selector)); | |
} | |
const observer = new MutationObserver((mutations) => { | |
if (document.querySelector(selector)) { |
This file contains hidden or 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 AWS IAM Identity Center | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @author Jakub Lanski | |
// @description Confirm login in AWS IAM Identity Center. | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=aws.amazon.com | |
// @match https://*.awsapps.com/start/* | |
// @require https://gist.github.com/jaklan/2fb5d31797e0dc320d1450119e14f463/raw | |
// ==/UserScript== |