Created
February 15, 2019 00:17
-
-
Save AdrianAcala/f6f32a0e9e0cab7d1220e41ad84dd494 to your computer and use it in GitHub Desktop.
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 Auto Click Through AWS SAML | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Cause laziness runs the world. | |
// @author aacala | |
// @match https://signin.aws.amazon.com/saml | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$('input[type="radio"]').click(function(){ | |
if ($(this).is(':checked')) | |
{ | |
document.getElementById("signin_button").click(); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dax, you're right. I could have optimized it. I don't write Javascript every day or even every month so I didn't know off the top of my head how to get this going so I had to look it up. This worked great and for this use case, I believe done is better than good.