mini clock

simple clock for full screen mode

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
gnblizz
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
319
Βαθμολογίες
3 0 0
Έκδοση
2.02
Δημιουργήθηκε την
03/08/2015
Ενημερώθηκε την
15/09/2016
Μέγεθος
10 KB
Συμβατότητα
Συμβατό με Firefox
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

This user script inserts the system time in the upper right corner of the browser window.
This is especially useful in full screen mode, where the task bar clock is hidden.

To set the minimum width for the clock to appear, resize the browser window to that width and select "mini clock set min width" from the "user script commands" sub menu of the Greasemonkey or Tampermonkey menu.

Firefox: Other settings are available in the context menu of the time display.
Chromium: Other settings are available in the Tampermonkey menu too.

If you move the mouse pointer over the time display, the current date should appear (hopefully in human friendly form). Since I have no idea what is appropriate for your language/region, I could use some help here.
On my system, Firefox completely ignores the system settings for the date format and uses an outdated one from linked run time librarys instead.

In newer Firefox versions is it necessary to place the clock below the active FullScreenElement in the DOM and this script uses some tricks to do so. For other browser an absolute placement might be enough.

Firefox only:
To show in full screen mode, mini clock waits for the activation and moves itself below the active full screen element in the object tree. This works usually well for customized video player from frameworks. However, the video tag can be used directly, which causes several problems: The video tag cannot have visible children. When mini clock tries to replace the current full screen element with its own element, the full screen mode has to be deactivated first. Reactivating full screen mode will always fail with default user settings. But if it works, the screen will flicker during this procedure. The full screen button works no more like expected... That's why this feature is deactivated per default.
Before enabling mini clock for direct video tags, make sure the following user setting is in about:config
full-screen-api.allow-trusted-requests-only;false
After that, you enable "allow clock in video tag" in the context menu of the time display.
If you forgot to change this setting and try to activate the full screen mode, it will immediately deactivated and is not available for this video.

Only recently I found out, date +%R | osd_cat --pos=top --offset=40 --align=right --colour=green --outline=1 --font=-*-fixed-*-r-*-*-*-400-*-*-*-*-*-1 can pretty much do the same. (I had to install the xosd package first.) Now I wonder, why none of the fancy clocks for KDE uses a similar technique.

contact me with my user name + '@web.de'