Das kann ich noch anbieten: rechtsbündig in der Menüleiste mit und ohne Titelleiste.
Für mich ist es perfekt
![]()
Vielen, vielen Dank dafür.
Und hier mit "meinen" Anpassungen.
JavaScript
// DateandClock.us.js
// Source file https://www.camp-firefox.de/forum/thema/122763-script-datum-uhrzeit-neben-men%C3%BCleiste/?postID=1182704#post1182704
// Source file https://www.camp-firefox.de/forum/thema/135820-script-f%C3%BCr-datums-zeitanzeige/?postID=1217043#post1217043
// Source file https://www.camp-firefox.de/forum/thema/135820-script-f%C3%BCr-datums-zeitanzeige/?postID=1217068#post1217068
(function() {
if (!window.gBrowser){ return; }
function doDatClock() {
let date = new Date();
let timestr = date.toLocaleDateString( locale, { weekday: "long", year: "numeric", month: "long", day: "numeric"} ) +
' - ' + date.toLocaleTimeString( locale, { hour: '2-digit', minute: '2-digit' } ) +
' Uhr';
ClockLabel.setAttribute( 'value', timestr );
}
let language = 'de-DE'; // locale, e.g. 'de-DE' , 'en-US' , 'fr-FR'
let cssFontFamily = 'Segoe UI';
let cssColor = '#FFA500'; // Font Color
let css = 'color: ' + cssColor + '; font-family: ' + cssFontFamily + '; font-weight:400; font-size:14px; text-shadow: none; min-width: 50px;; padding-top: 2px; padding-left: 30px; margin-top: 0px; margin-left: 0px; margin-right: 0px;margin-bottom: 0px; padding-right: 15px;';
let locale = language || window.navigator.languages[0];
let position = document.querySelector("toolbar#toolbar-menubar spacer");
position.style.MozBoxOrdinalGroup = "1";
let ClockLabel = document.createXULElement('label');
ClockLabel.setAttribute('id', 'titlebar-clock-display');
ClockLabel.setAttribute('class', 'titlebarpanel-text');
ClockLabel.setAttribute('style', css);
ClockLabel.style.MozBoxOrdinalGroup = "1000";
position.parentNode.insertBefore(ClockLabel, position.nextSibling );
window.setInterval( doDatClock , 100 );
})();
Alles anzeigen
Und das Ergebnis will ich Euch auch nicht vorenthalten.