Ja.
Sehe ich da richtig? Du hast oben im Menubar den Datum und die Uhrzeit drin? ![]()
Ja.
Sehe ich da richtig? Du hast oben im Menubar den Datum und die Uhrzeit drin? ![]()
Sehe ich da richtig?
Ja...schon ewig ![]()
schon ewig
Sieht gut aus ![]()
Sieht gut aus
Darum habe ich es ja auch ![]()
Ist ein Script:
(function() {
function doDatClock() {
var timestr = new Date().toLocaleDateString( locale , options );
const blanks = ' Es ist: ';
let i = timestr.lastIndexOf(',');
timestr = timestr.substring(0,i) + blanks + timestr.substring(i+1);
if( count == 1 ) {
var counter = new Date( 1000 * sec ).toISOString().substr( 11 , 8 ); // .replace(/^[0:]+/, '') // if you want to replace zeroes and colons
timestr = timestr + ' (' + counter + ')';
sec++;
}
ClockLabel.setAttribute( 'value', timestr );
}
var count = 0; // if you don't want a counter set this to zero
var agent = 1; // if you just want the clock set this to zero
var language = 'de-DE'; // locale, e.g. 'de-DE' , 'en-US' , 'fr-FR'
var personalText = ' > designed by Andreas <'; // your personal text here
var cssColor = 'white'; // Font Color
var css = 'padding-top: 3px !important; padding-left: 0px; color: ' + cssColor + '; font-weight: 600; text-shadow: none; width: 295px; margin-right:90px;';
var cssA = 'margin-left:17px; width: auto;';
var options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
};
var sec = 0;
var locale = language || window.navigator.languages[0];
var position = document.getElementById('ExtraConfigMenu-button');
var ClockLabel = document.createXULElement('label');
ClockLabel.setAttribute('id', 'statusbar-clock-display');
ClockLabel.setAttribute('class', 'statusbarpanel-text');
ClockLabel.setAttribute('style', css);
position.parentNode.insertBefore(ClockLabel, position.nextSibling);
if( agent == 1 ) {
var AgentLabel = document.createXULElement('label');
AgentLabel.setAttribute('id', 'statusbar-agent-display');
AgentLabel.setAttribute('class', 'statusbarpanel-text');
AgentLabel.setAttribute('style', css + cssA);
var FFstr = window.navigator.userAgent.split(' ');
var FF = FFstr[FFstr.length-1].replace( '/' , ' ' );
var gAppInfo = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).QueryInterface(Ci.nsIXULRuntime);
var text = "Firefox > " + gAppInfo.version + personalText;
AgentLabel.setAttribute( 'value', text );
position.parentNode.insertBefore(AgentLabel, position.nextSibling);
}
if( count == 1 ) {
ClockLabel.addEventListener('dblclick', function() { sec = 0; });
}
window.setInterval( doDatClock , 1000 );
})();
Alles anzeigen
Hatte ich schon vor rund 10 Jahren.
So jetzt:
So jetzt:
![]()
2002Andreas hab deine Code als Datum_Zeit_im_Menubar.uc.js gespeichert und FF neugestartet und wollte sie für mich anpassen, aber zeigt nichts an. ![]()
Code als Datum_Zeit_im_Menubar.uc.js gespeichert
Ich habe nur Uhr.uc.js
Evtl. passt das mit den _ nicht ![]()
den _ nicht
Umgenannt in DatumZeitImMenubar.uc.js funkt immer noch nicht.
Hast du denn die Menüleiste aktiv?
Button etc. eintragen.
var position = document.getElementById('ExtraConfigMenu-button');
hier? und wie? ![]()
hier? und wie?
Ja, siehe Beitrag Nr. 29
Beitrag Nr. 29
Jetzt muss ich es nurnoch etwas runterschieben die Schrift und anpassen. ![]()
var position = document.getElementById('ExtraConfigMenu-button');
Zur Erläuterung: Andreas verwendet - wie ich auch - das Skript ExtraConfigMenu.uc.js. Das Symbol dieses Skripts hat die ID ExtraConfigMenu-button. Andreas hat sich dafür entschieden, das Symbol seine Datum-Uhrzeit-Skripts hinter dieses Symbol zu setzen.
2002Andreas Du kannst doch nicht so einfach herumschieben. Jetzt war mein Beitrag doppelt.
![]()
Ist egal.
Schon wieder Geschichte. ![]()
2002Andreas muss ich mit den paddings in Zeilen 22 und 23 rumspielen, damit der Text etwas unten ist und etwas entfernter vom "Menü-Hilfe"?
in Zeilen 22 und 23 rumspielen
Ja.
Ja.
Danke.