Created
August 13, 2020 21:10
-
-
Save mwarkentin/5a2216266aa9535b96d25f2070dac099 to your computer and use it in GitHub Desktop.
TamperMonkey to shorten AWS Service names in console
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 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 "AWS Cost Explorer": | |
item.innerHTML = "💸" | |
case "CodePipeline": | |
item.innerHTML = "CodeP" | |
case "Systems Manager": | |
item.innerHTML = "SSM" | |
} | |
}; | |
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