Created
May 8, 2018 16:48
-
-
Save kenske/adb342a9df7547ad1ecb5a892410a77b to your computer and use it in GitHub Desktop.
Tampermonkey script that sets the AWS ECS cluster page to list view instead of card view.
This file contains 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 AWS ECS list view | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Default to list view on AWS ECS | |
// @author Kenneth Skertchly | |
// @match https://console.aws.amazon.com/ecs/home?region=us-east-1 | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.addEventListener('load', function() { | |
setTimeout(function(){ | |
var listButton = document.getElementsByClassName('card-button')[0].childNodes[0]; | |
listButton.click(); | |
}, 1000); | |
}, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment