Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mwarkentin/924d18bd229766ea8a2b677a0eac270c to your computer and use it in GitHub Desktop.
Save mwarkentin/924d18bd229766ea8a2b677a0eac270c to your computer and use it in GitHub Desktop.
A Tampermonkey script to replace various AWS console service names with acronyms, so they take up less space in the shortcuts bar.
// ==UserScript==
// @name AWS UI scrubber
// @namespace https://github.com/jamesinc
// @version 1.0
// @description Make AWS Console shortcuts take up less space
// @author James Ducker
// @match https://*.console.aws.amazon.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
var replaceLabel = function ( item ) {
switch (item.innerHTML) {
case "AWS Glue":
item.innerHTML = "Glue";
break;
case "CloudFormation":
item.innerHTML = "CFN";
break;
case "CloudWatch":
item.innerHTML = "CW";
break;
case "Elastic Container Service":
item.innerHTML = "ECS";
break;
case "Database Migration Service":
item.innerHTML = "DMS";
break;
case "Lambda":
item.innerHTML = "λ";
break;
case "Relational Database Service":
item.innerHTML = "RDS";
break;
case "Route 53":
item.innerHTML = "R53";
break;
case "Simple Email Service":
item.innerHTML = "SES";
break;
case "Simple Notification Service":
item.innerHTML = "SNS";
break;
case "Simple Queue Service":
item.innerHTML = "SQS";
break;
case "Amazon Redshift":
item.innerHTML = "Red";
break;
case "CodePipeline":
item.innerHTML = "CP";
break;
case "GuardDuty":
item.innerHTML = "GD";
break;
case "AWS Cost Explorer":
item.innerHTML = "💸"
}
};
document.querySelectorAll(".service-label").forEach( replaceLabel );
window.dispatchEvent( new Event("resize") );
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment