Skip to content

Instantly share code, notes, and snippets.

@kenske
Created May 8, 2018 16:48
Show Gist options
  • Save kenske/adb342a9df7547ad1ecb5a892410a77b to your computer and use it in GitHub Desktop.
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.
// ==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