4 ms·
Any links to how to do this? My google-fu seems to be failing me. I'm assuming you somehow set things up so it automatically detects the page / content (based o
by ghufran_syed 11y ago
Any links to how to do this? My google-fu seems to be failing me. I'm assuming you somehow set things up so it automatically detects the page / content (based on the environment name or instance tags??) and changes the background?
- patio11 11y agoEasy way to do this in e.g. Rails: <body style="foo bar baz env-#{Rails.environment}"> Then use CSS like you would normally on body.env-production, body.env-development, etc.
- hobarrera 11y agoYou meant class, not style. But great tip though: <body class="foo bar baz env-#{Rails.environment}">
- mryan 11y agoOne way to do this is to look at the "awsc-login-display-name-account" div, which contains your account ID. You can then alter the look of the page (perhaps making the top header bright red) depending on which account ID is in use. Could make a nice Chrome extension...
- mateuszf 11y agoYou can use an extension like Greasemonkey, with a simple script which will extract aws account id and will apply some css based on it.
- eropple 11y agoI log into different Chrome profiles that style the same pages differently. Dumb and easy.