- Firefox-Version
- 149
- Betriebssystem
- Linux Zorin
Ich benutze im Moment den Fuchs in Version 149.
Ich hatte ein Addon gefunden das nennt sich ganz einfach "Clock". Das zeigt mir im Firefox unten links oder rechts eine farblich änderbare und größenverstellbare Uhr. Hätte sie am liebsten in der Mitte...aber geht auch so. Allerdings ist sie auf allen Seiten und nicht nur auf Youtube. Der Link https://addons.mozilla.org/de/firefox/add…_content=search. Mir wurde damals geholfen mit diesem css:
@-moz-document domain("youtube.com") {
body > div:nth-child(n+1) > div:nth-child(n+1) > div:nth-child(n+2) {
margin-left: 650px !important;
display: block !important;
}
}
body > div:nth-child(n+1) > div:nth-child(n+1) > div:nth-child(n+2) {
display: none;
}
Das hat mir eine Uhr in die Mitte von Youtube gestellt.
Außerdem funktioniert meine Uhrzeit und Datumsanzeige in der Menüleiste auch nicht mehr:
// DateandClock.us.js
// Source file RE: Script Datum + Uhrzeit neben Menüleiste
// Source file Script für Datums- & Zeitanzeige
(function() {
function doDatClock() {
var timestr = new Date().toLocaleDateString( locale , options ).replace('um', '');
const blanks = ' - ';
let i = timestr.lastIndexOf(' ');
timestr = timestr.substring(0,i) + blanks + timestr.substring(i+1) + ' Uhr';
if( count == 1 ) {
var counter = new Date( 2000 * sec ).toISOString().substring( 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 language = 'de-DE'; // locale, e.g. 'de-DE' , 'en-US' , 'fr-FR'
var cssFontFamily = 'Segoe UI';
var cssColor = '#FF0000'; // Font Color
var css = 'padding-top: 2px !important; padding-left: 300px; color: ' + cssColor + '; font-family: ' + cssFontFamily + '; font-weight:400; font-size:16px; text-shadow: none; min-width: 665px;';
var options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
};
var sec = 0;
var locale = language || window.navigator.languages[0];
var position = document.getElementById('menubar-items');
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( count == 1 ) {
ClockLabel.addEventListener('dblclick', function() { sec = 0; });
}
window.setInterval( doDatClock , 1000 );
})();
Alles anzeigen
Ich habe davon leider keine Ahnung warum es in der 148 nochj funktioniert hat und in der 149 nicht mehr....
Edit 2002Andreas:
Text in Code-Block eingefügt.