Skip to content

Instantly share code, notes, and snippets.

@Warrenn
Created January 29, 2021 16:20
Show Gist options
  • Save Warrenn/6b876e16d4885bad25f42cd6503dc454 to your computer and use it in GitHub Desktop.
Save Warrenn/6b876e16d4885bad25f42cd6503dc454 to your computer and use it in GitHub Desktop.
Makes AWS automatically do a push on DUO
// ==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