Skip to content

Instantly share code, notes, and snippets.

@ryotarai
Last active August 14, 2019 19:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryotarai/4b0091a02e77f14486b9 to your computer and use it in GitHub Desktop.
Save ryotarai/4b0091a02e77f14486b9 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