Skip to content

Instantly share code, notes, and snippets.

@rdkls
Created March 6, 2020 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdkls/f0f544c73d359798e51d07f27a7ef520 to your computer and use it in GitHub Desktop.
Save rdkls/f0f544c73d359798e51d07f27a7ef520 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Whitelist AWS Console Service list
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Show only selected services in the AWS Web Console Services menu
// @author rdkls
// @match https://*console.aws.amazon.com/*
// @match https://*.console.aws.amazon.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var whitelistedServices = [
"AWS Organizations",
"EC2",
"VPC",
"Systems Manager",
"ECR",
"ECS",
"Lambda",
"S3",
"RDS",
"DynamoDB",
"VPC",
"Route 53",
"CodeBuild",
"CodePipeline",
"AWS Organizations",
"CloudWatch",
"CloudTrail",
"Config",
"Systems Manager",
"Trusted Advisor",
"Control Tower",
"AWS Compute Optimizer",
"QuickSight",
"IAM",
"GuardDuty",
"AWS Cost Explorer",
"QuickSight"
];
// Remove non-whitelisted menu items
Array.from(document.getElementsByClassName('service-link')
).filter(e => {
return !whitelistedServices.includes(e.innerText.trim());
}).map(e =>
e.remove()
);
// Remove the headings with icons e.g. "Compute" etc
Array.from(document.getElementsByClassName('awsc-header')
).map(e => {
e.remove();
});
/*
As of 2020-03-06 full list is:
[
"AWS Organizations",
"EC2",
"VPC",
"AWS AppConfig",
"Systems Manager",
"Console Home",
"EC2",
"Lightsail",
"ECR",
"ECS",
"EKS",
"Lambda",
"Batch",
"Elastic Beanstalk",
"Serverless Application Repository",
"AWS Outposts",
"EC2 Image Builder",
"S3",
"EFS",
"FSx",
"S3 Glacier",
"Storage Gateway",
"AWS Backup",
"RDS",
"DynamoDB",
"ElastiCache",
"Neptune",
"Amazon Redshift",
"Amazon QLDB",
"Amazon DocumentDB",
"Managed Cassandra Service",
"AWS Migration Hub",
"Application Discovery Service",
"Database Migration Service",
"Server Migration Service",
"AWS Transfer for SFTP",
"Snowball",
"DataSync",
"VPC",
"CloudFront",
"Route 53",
"API Gateway",
"Direct Connect",
"AWS App Mesh",
"AWS Cloud Map",
"Global Accelerator",
"CodeStar",
"CodeCommit",
"CodeBuild",
"CodeDeploy",
"CodePipeline",
"Cloud9",
"X-Ray",
"AWS RoboMaker",
"AWS IQ",
"Support",
"Managed Services",
"Amazon Managed Blockchain",
"Ground Station",
"Amazon Braket",
"AWS Organizations",
"CloudWatch",
"AWS Auto Scaling",
"CloudFormation",
"CloudTrail",
"Config",
"OpsWorks",
"Service Catalog",
"Systems Manager",
"AWS AppConfig",
"Trusted Advisor",
"Control Tower",
"AWS License Manager",
"AWS Well-Architected Tool",
"Personal Health Dashboard",
"AWS Chatbot",
"Launch Wizard",
"AWS Compute Optimizer",
"Elastic Transcoder",
"Kinesis Video Streams",
"MediaConnect",
"MediaConvert",
"MediaLive",
"MediaPackage",
"MediaStore",
"MediaTailor",
"Elemental Appliances & Software",
"Amazon SageMaker",
"Amazon CodeGuru",
"Amazon Comprehend",
"Amazon Forecast",
"Amazon Fraud Detector",
"Amazon Kendra",
"Amazon Lex",
"Amazon Machine Learning",
"Amazon Personalize",
"Amazon Polly",
"Amazon Rekognition",
"Amazon Textract",
"Amazon Transcribe",
"Amazon Translate",
"AWS DeepLens",
"AWS DeepRacer",
"Amazon Augmented AI",
"Athena",
"EMR",
"CloudSearch",
"Elasticsearch Service",
"Kinesis",
"QuickSight",
"Data Pipeline",
"AWS Data Exchange",
"AWS Glue",
"AWS Lake Formation",
"MSK",
"IAM",
"Resource Access Manager",
"Cognito",
"Secrets Manager",
"GuardDuty",
"Inspector",
"Amazon Macie",
"AWS Single Sign-On",
"Certificate Manager",
"Key Management Service",
"CloudHSM",
"Directory Service",
"WAF & Shield",
"AWS Firewall Manager",
"Artifact",
"Security Hub",
"Detective",
"AWS Amplify",
"Mobile Hub",
"AWS AppSync",
"Device Farm",
"Amazon Sumerian",
"Step Functions",
"Amazon EventBridge",
"Amazon MQ",
"Simple Notification Service",
"Simple Queue Service",
"SWF",
"AWS Cost Explorer",
"AWS Budgets",
"AWS Marketplace Subscriptions",
"Amazon Connect",
"Pinpoint",
"Simple Email Service",
"Alexa for Business",
"Amazon Chime",
"WorkMail",
"WorkSpaces",
"AppStream 2.0",
"WorkDocs",
"WorkLink",
"IoT Core",
"FreeRTOS",
"IoT 1-Click",
"IoT Analytics",
"IoT Device Defender",
"IoT Device Management",
"IoT Events",
"IoT Greengrass",
"IoT SiteWise",
"IoT Things Graph",
"Amazon GameLift",
"Alexa for Business",
"Amazon Augmented AI",
"Amazon Braket",
"Amazon Chime",
"Amazon CodeGuru",
"Amazon Comprehend",
"Amazon Connect",
"Amazon DocumentDB",
"Amazon EventBridge",
"Amazon Forecast",
"Amazon Fraud Detector",
"Amazon GameLift",
"Amazon Kendra",
"Amazon Lex",
"Amazon Machine Learning",
"Amazon Macie",
"Amazon Managed Blockchain",
"Amazon MQ",
"Amazon Personalize",
"Amazon Polly",
"Amazon QLDB",
"Amazon Redshift",
"Amazon Rekognition",
"Amazon SageMaker",
"Amazon Sumerian",
"Amazon Textract",
"Amazon Transcribe",
"Amazon Translate",
"API Gateway",
"Application Discovery Service",
"AppStream 2.0",
"Artifact",
"Athena",
"AWS Amplify",
"AWS App Mesh",
"AWS AppConfig",
"AWS AppSync",
"AWS Auto Scaling",
"AWS Backup",
"AWS Budgets",
"AWS Chatbot",
"AWS Cloud Map",
"AWS Compute Optimizer",
"AWS Cost Explorer",
"AWS Data Exchange",
"AWS DeepLens",
"AWS DeepRacer",
"AWS Firewall Manager",
"AWS Glue",
"AWS IQ",
"AWS Lake Formation",
"AWS License Manager",
"AWS Marketplace Subscriptions",
"AWS Migration Hub",
"AWS Organizations",
"AWS Outposts",
"AWS RoboMaker",
"AWS Single Sign-On",
"AWS Transfer for SFTP",
"AWS Well-Architected Tool",
"Batch",
"Certificate Manager",
"Cloud9",
"CloudFormation",
"CloudFront",
"CloudHSM",
"CloudSearch",
"CloudTrail",
"CloudWatch",
"CodeBuild",
"CodeCommit",
"CodeDeploy",
"CodePipeline",
"CodeStar",
"Cognito",
"Config",
"Control Tower",
"Data Pipeline",
"Database Migration Service",
"DataSync",
"Detective",
"Device Farm",
"Direct Connect",
"Directory Service",
"DynamoDB",
"EC2",
"EC2 Image Builder",
"ECR",
"ECS",
"EFS",
"EKS",
"Elastic Beanstalk",
"Elastic Transcoder",
"ElastiCache",
"Elasticsearch Service",
"Elemental Appliances & Software",
"EMR",
"FreeRTOS",
"FSx",
"Global Accelerator",
"Ground Station",
"GuardDuty",
"IAM",
"Inspector",
"IoT 1-Click",
"IoT Analytics",
"IoT Core",
"IoT Device Defender",
"IoT Device Management",
"IoT Events",
"IoT Greengrass",
"IoT SiteWise",
"IoT Things Graph",
"Key Management Service",
"Kinesis",
"Kinesis Video Streams",
"Lambda",
"Launch Wizard",
"Lightsail",
"Managed Cassandra Service",
"Managed Services",
"MediaConnect",
"MediaConvert",
"MediaLive",
"MediaPackage",
"MediaStore",
"MediaTailor",
"Mobile Hub",
"MSK",
"Neptune",
"OpsWorks",
"Pinpoint",
"QuickSight",
"RDS",
"Resource Access Manager",
"Route 53",
"S3",
"S3 Glacier",
"Secrets Manager",
"Security Hub",
"Server Migration Service",
"Serverless Application Repository",
"Service Catalog",
"Simple Email Service",
"Simple Notification Service",
"Simple Queue Service",
"Snowball",
"Step Functions",
"Storage Gateway",
"SWF",
"Systems Manager",
"Trusted Advisor",
"VPC",
"WAF & Shield",
"WorkDocs",
"WorkLink",
"WorkMail",
"WorkSpaces",
"X-Ray"
]
*/
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment