You will need to install a user script manager extension to install this script.
Userscript for the AWS Console to identify the current AWS account more easily. Supports individual accounts as well as AWS access portal.
The script shows the name of the current account in the "search" input field in the menu bar. It also changes the color of the menu bar based on rules in the script. The default rules color the menu bar green or red when the account name contains "dev" or "prod", respectively.
For more details, see https://github.com/mdenburger/userscript-identify-aws-console