Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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