Last active
October 31, 2023 16:17
-
-
Save ericboehs/9c74c74aab80eec5940c7cbd64cb4884 to your computer and use it in GitHub Desktop.
Sidekiq Env Highlighter
This file contains hidden or 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 Sidekiq Environment Highlighter | |
// @description Changes navbar color based on which Sidekiq env you're viewing | |
// @match *://*.va.gov/sidekiq* | |
// @run-at document-ready | |
// ==/UserScript== | |
if (document.URL.includes("staging-api.va.gov/sidekiq")) { | |
document.getElementsByClassName("navbar-default")[0].style.backgroundColor = "peachpuff"; | |
} else if (document.URL.includes("dev-api.va.gov/sidekiq")) { | |
document.getElementsByClassName("navbar-default")[0].style.backgroundColor = "lightblue"; | |
} else if (document.URL.includes("api.va.gov/sidekiq")) { | |
document.getElementsByClassName("navbar-default")[0].style.backgroundColor = "pink"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adjust your domains appropriately.
Production:
Staging:

Dev:
