Identify development environment

Display an alert on your work environment for disambiguation

Δημιουργός
Deuchnord
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
1
Βαθμολογίες
0 0 0
Έκδοση
1.0.0
Δημιουργήθηκε την
19/02/2025
Ενημερώθηκε την
19/02/2025
Μέγεθος
2 KB
Άδεια
AGPL-3.0
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

Display an alert on your development environment, so you can make the difference between your preproduction and production, for instance.

How to configure your environments

Refresh any webpage, then open the values stored by the userscript (in Violentmonkey: open the script's code and select the Values tab). Then edit the environments value.

Each environment is a JSON object with the following attributes:

  • hostname: the domain name that matches the environment
  • name: the name displayed for that environment
  • background: the background color of the alert that will be displayed on the pages of the environment
  • textColor: the text color of the alert that will be displayed on the pages of the environment

Example

{
  "environments": [
    {
      "hostname": "example.com",
      "name": "Production",
      "background": "red",
      "textColor": "white"
    }
  ]
}