Dynamic Personal Greeting Message (DPGM) (CEST)

Show a greeting message based on the time of day in CEST, also it's in a modern style too! :D

Autor
Emree.el
Instalări zilnice
0
Total instalări
0
Rating-uri
0 0 0
Versiune
1.0
Creat
23-05-2024
Actualizat
23-05-2024
Licență
MIT
Se aplică pe
Toate site-urile

Shows a modern grey box in the middle of the screen when you enter any site, with a personal greeting.
Based on any time of the day.

Script only happens once per domain (would still work on same domain if new tab is opened.)

THIS IS IN CENTRAL EUROPEAN SUMMER TIME (CEST) !!!!

SO IF YOU LIVE OUTSIDE OF EUROPE, THIS SCRIPT's DYNAMIC CHANGER WOULD BE WRONG IN YOUR TIMEZONE.
You can try tweaking the script to ensure it will work in your timezone.


ALSO, change my name to your name in the script or else it'll greet you with my name lmao.

(To do this you look for the lines: ) !!!!
( return "Good morning, Emree"; )
( } else if (hours < 18) { )
( return "Good afternoon, Emree"; )
( } else { )
( return "Good evening, Emree"; )

(And you change "Emree" to "Your name")


This script works on every single site. If you wanna change it:

// @match *://*/*

to

// @match your link