Created
January 29, 2021 16:20
-
-
Save Warrenn/6b876e16d4885bad25f42cd6503dc454 to your computer and use it in GitHub Desktop.
Makes AWS automatically do a push on DUO
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 | |
// @version 1.0 | |
// @description Makes AWS automatically do a push on DUO | |
// @match https://domain/console/ | |
// @grant GM_addStyle | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require http://static-file-cdn.s3-website.us-east-2.amazonaws.com/js/waitForKeyElements.js | |
// ==/UserScript== | |
waitForKeyElements ("#wdc_mfa", actionFunction); | |
function actionFunction (jNode) { | |
//-- DO WHAT YOU WANT TO THE TARGETED ELEMENTS HERE. | |
document.getElementById("wdc_mfacheckbox_div").style.display = "none"; | |
document.getElementById("wdc_mfacode_div").style.display = "none"; | |
document.getElementById("wdc_mfa").value = "push"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment