Last active
February 14, 2020 02:32
-
-
Save taylor224/6f64f4dd9496d82650692b1cbf2725a2 to your computer and use it in GitHub Desktop.
Amazon aws Bulk SG IP add script
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
var script = document.createElement('script'); | |
script.onload = function() { | |
jQuery.noConflict(); | |
if (callback) { | |
callback(jQuery); | |
} | |
}; | |
script.src = "https://code.jquery.com/jquery-2.1.1.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
var iplist = ["13.210.202.182/32"]; | |
jQuery.each(jQuery("input[name='source']"), function(i,v) { jQuery(v).val(iplist[i]) }); | |
jQuery.each(jQuery("select[name='protocol']"), function (i,v) { jQuery(v).val('https'); }); | |
jQuery.each(jQuery("input[name='portRange']"), function(i,v) { jQuery(v).val('443') }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment