Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sheldonhull/73f4064c03f71fc2403cce15a212c0af to your computer and use it in GitHub Desktop.
Save sheldonhull/73f4064c03f71fc2403cce15a212c0af to your computer and use it in GitHub Desktop.
Larger Security Group selector (AWS RDS and Elasticache / tested with Tampermonkey)
// ==UserScript==
// @name Larger SG Selector
// @namespace http://ryotarai.info/
// @version 0.1
// @description Why is it too small?
// @author Ryota Arai
// @match https://*.console.aws.amazon.com/*
// @grant none
// ==/UserScript==
window.setInterval(function() {
var all = document.querySelectorAll('.gwt-ListBox');
for (var i = 0; i < all.length; i++) {
var regex = /(-vpc-sg-slctbx$|-security-grps?-multi-slct-bx$)/;
var elm = all[i];
if (elm.id.match(regex) && elm.style.height != "1000px") {
elm.style.height = "1000px";
}
}
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment