Ich bin kein Profi in der sache nur das problem ist ich probiere viel aus.
Zu meiner Frage ich hab mir
userChrome.js / uhrunddatumintitlebar installiert funzt soweit nun würde mich interessieren wie der code
aussehn würde wenn diese Uhr neben der Navi Leiste ist.
Danke schon mal

Frage zu user chrome Anpassung(erledigt)
-
Abendstern2010 -
28. Dezember 2013 um 18:06 -
Erledigt
-
-
Hallo und Willkommen hier im Forum.
Zitat von Abendstern2010nur das problem ist ich probiere viel aus.
Das ist doch kein Problem sondern eine gute Eigenschaft dann :klasse:Teste das bitte mal:
Code
Alles anzeigen/* ########## Statusbar - Uhr ####### */ function doDatUhr() { var days = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]; var months = ["Jan", "Feb", "März", "Apr", "Mai", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dez"]; var title = content.document.title; window.setTimeout("try{doDatUhr()}catch(ex){}", 1000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = " " + day + ", " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year + " "; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); var timestr = date + time + "" + " "; var status = document.getElementById("statusbar-clock-display"); status.setAttribute("value",timestr);} //var ClockStatus = document.getElementById("statusbar-display"); var ClockStatus = document.getElementById("search-container"); var ClockLabel = document.createElement("label"); ClockLabel.setAttribute("id", "statusbar-clock-display"); ClockLabel.setAttribute("class", "statusbarpanel-text"); ClockLabel.setAttribute("style", "padding-top: 6px; padding-left: 1px;color:yellow;font-weight:bold;text-shadow:none"); ClockStatus.parentNode.insertBefore(ClockLabel, ClockStatus.nextSibling); doDatUhr(); /* ########## Statusbar - Uhr ########## */
[Blockierte Grafik: http://www7.pic-upload.de/thumb/28.12.13/9n3qqdprr6f2.jpg]
Die Werte bzw. die Farbe vom Text kannst du dir ja anpassen dann.
Eingetragen habe ich dieses Script gleich in der Datei: userChrome.js
-
Irgendwie hat der Code das gegenteil bewirkt der in der Menue leiste ist weg und deiner ist auch nicht
zusehen. -
Hast du das Script: uhrunddatumintitlebar mal entfernt?
Du lässt dir die Suchleiste oben rechts anzeigen?
Wo hast du mein geändertes Script reinkopiert?
Du hast den Firefox nach der Änderung neu gestartet?
-
Das Script funktioniert hier einwandfrei.
Noch ein Beispiel, die Zeit und eigener Text in der Menüleiste:Code
Alles anzeigen/* ########## Statusbar - Uhr ####### */ function doDatUhr() { var days = ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]; var months = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]; var title = content.document.title; window.setTimeout("try{doDatUhr()}catch(ex){}", 1000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = " " + day + ", " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year + " "; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); var timestr = date + time + "" + " "; var text ="Mein Firefox "; var status = document.getElementById("statusbar-clock-display"); status.setAttribute("value", text + timestr);} //var ClockStatus = document.getElementById("statusbar-display"); var ClockStatus = document.getElementById("menubar-items"); var ClockLabel = document.createElement("label"); ClockLabel.setAttribute("id", "statusbar-clock-display"); ClockLabel.setAttribute("class", "statusbarpanel-text"); ClockLabel.setAttribute("style", "padding-top: 4px; padding-left: 1px;color:yellow;font-weight:bold"); ClockStatus.parentNode.insertBefore(ClockLabel, ClockStatus.nextSibling); doDatUhr(); /* ########## Statusbar - Uhr ########## */
[Blockierte Grafik: http://www7.pic-upload.de/thumb/28.12.13/ko91iieog34.png]
-
hier ist mein code
Code
Alles anzeigen/* * userChromeJS * * This file can be used to customize the functioning of Mozilla's user * interface. Usage and syntax follow below; for useful code snippets see * http://mozilla.zeniko.ch/userchrome.js.html. * * Examples: * setTimeout(function() { document.title = "A new title for every window" }, 2000); * * if (location == "chrome://browser/content/browser.xul") { * alert("Script loaded in main browser only"); * } * * // DOMi window * if (location == "chrome://inspector/content/inspector.xul") { * // Move Urlbar box to main toolbar * var tb = document.getElementById('bxURLBar'); * var el = document.getElementById('mbrInspectorMain'); * if (tb && el) el.appendChild(tb, el.firstChild); * } * * NOTE: userChromeJS includes an 'import' function to facilitate file management. * An absolute path or relative path with Directory name property token can be * used, as follows: * * // Single file (javascript .js or overlay .xul file) * userChrome.import("Full file path"); * userChrome.import("Relative file path", "Token"); * // All .js and .xul files in a folder will be loaded. * userChrome.import("Full file folder path"); * userChrome.import("Relative file folder path/name", "Token"); * userChrome.import("*", "Token"); * * NOTE: absolute windows files and folders must be have backslash escaped: * "C:\\Program Files\\Mozilla\\scripts\\myscript.js" * * Examples: * // Import script in [ProfileDir]/chrome/scripts/myscript.js * userChrome.import("scripts/myscript.js", "UChrm"); * // Import script in [Profiles]/scripts/myscript.js (share same script in * // multiple profiles * userChrome.import("scripts/myscript.js", "DefProfRt"); * // All .js or .xul in profile chrome directory * userChrome.import("*", "UChrm"); * // Import overlay * userChrome.import("C:\\Program Files\\Mozilla\\scripts\\myOverlay.xul"); * // Import everything in Desktop folder /scripts * userChrome.import("scripts", "Desk"); * // Perhaps the only thing you need in this file.. * if (location == "chrome://browser/content/browser.xul") { * userChrome.import("scripts", "DefProfRt"); * } * * NOTE: for a full listing of directory tokens see the two links found here: * https://developer.mozilla.org/en/Code_snippets/File_I%2f%2fO#Getting_special_files * // What's the path for a token? This will print it in the console.. * userChrome.log(userChrome.getAbsoluteFile("Desk").path, "getAbsoluteFile:'Desk'"); * * NOTE: userChromeJS includes a log function, invoked as follows: * userChrome.log("string1", ["string2"]) * Example: * userChrome.log("hello world!", "myscript.js"); * Results in a console message: * 2009-05-22 18:07:40 userChromeJS.js::myscript.js: hello world! * * NOTE: the date format for the userChrome.log console logger may be user defined: * Example: * userChrome.dateFormat = "%Y-%m-%d %H:%M:%S"; * * NOTE: the default charSet is "UTF-8"; for code using the 'import' or * 'importFolder' functions to manage files, the charSet for subscript loader * may be user defined, prior to calling the import or importFolder functions: * Example: * userChrome.charSet = "UTF-8"; * * NOTE: the following shortcuts are predefined: * Cc = Components.classes; * Ci = Components.interfaces; * Cr = Components.results; * Cu = Components.utils; * */ /* :::::::: Anzeige Dokument / WoTag/ Dat / Uhrzeit ::::::::::::::: */ /* ########## Statusbar - Uhr ####### */ function doDatUhr() { var days = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]; var months = ["Jan", "Feb", "März", "Apr", "Mai", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dez"]; var title = content.document.title; window.setTimeout("try{doDatUhr()}catch(ex){}", 1000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = " " + day + ", " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year + " "; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); var timestr = date + time + "" + " "; var status = document.getElementById("statusbar-clock-display"); status.setAttribute("value",timestr);} //var ClockStatus = document.getElementById("statusbar-display"); var ClockStatus = document.getElementById("search-container"); var ClockLabel = document.createElement("label"); ClockLabel.setAttribute("id", "statusbar-clock-display"); ClockLabel.setAttribute("class", "statusbarpanel-text"); ClockLabel.setAttribute("style", "padding-top: 6px; padding-left: 1px;color:yellow;font-weight:bold;text-shadow:none"); ClockStatus.parentNode.insertBefore(ClockLabel, ClockStatus.nextSibling); doDatUhr(); /* ########## Statusbar - Uhr ########## */
navi leiste habe ich wie hier
https://www.camp-firefox.de/forum/viewtopic.php?f=16&t=106490nach änderung hab ich neu gestartet
-
Zitat von Abendstern2010
navi leiste habe ich wie hier
Ok, dann kann er auch nicht funktionieren, weil die Uhrzeit neben der Suchleiste sein müsste, die du aber nicht hast.Teste es bitte mal mit diesem Code dann.
Code
Alles anzeigen/* :::::::: Anzeige Dokument / WoTag/ Dat / Uhrzeit ::::::::::::::: */ /* ########## Statusbar - Uhr ####### */ function doDatUhr() { var days = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]; var months = ["Jan", "Feb", "März", "Apr", "Mai", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dez"]; var title = content.document.title; window.setTimeout("try{doDatUhr()}catch(ex){}", 1000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = " " + day + ", " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year + " "; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); var timestr = date + time + "" + " "; var status = document.getElementById("statusbar-clock-display"); status.setAttribute("value",timestr);} //var ClockStatus = document.getElementById("statusbar-display"); var ClockStatus = document.getElementById("urlbar-container"); var ClockLabel = document.createElement("label"); ClockLabel.setAttribute("id", "statusbar-clock-display"); ClockLabel.setAttribute("class", "statusbarpanel-text"); ClockLabel.setAttribute("style", "padding-top: 6px; padding-left: 1px;color:yellow;font-weight:bold;text-shadow:none"); ClockStatus.parentNode.insertBefore(ClockLabel, ClockStatus.nextSibling); doDatUhr(); /* ########## Statusbar - Uhr ########## */
-
Danke Andreas so passt das super
Sorry das ich nich gleich alle infos gegeben hab.
Kann ich hier hier gleich noch eine Frage stellen-möchte gerne ein Bild als Startseite machen,hatte hier schon was gefunden aber irgendwie passt das net.
-
-
Zitat
Ich bin aber mal eine Weile offline jetzt.....gedulde dich bitte etwas.
Kein prob ,ich teste bzw mache neun Thread auf
-
-
Seit Firefox 27.0 und höher funktioniert dieser Code hier nicht mehr... bzw. läuft die Uhr nicht weiter...
Code
Alles anzeigen/* ########## Statusbar - Uhr ####### */ function doDatUhr() { var days = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]; var months = ["Jan", "Feb", "März", "Apr", "Mai", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dez"]; var title = content.document.title; window.setTimeout("try{doDatUhr()}catch(ex){}", 1000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = " " + day + ", " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year + " "; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); var timestr = date + time + "" + " "; var status = document.getElementById("statusbar-clock-display"); status.setAttribute("value",timestr);} //var ClockStatus = document.getElementById("statusbar-display"); var ClockStatus = document.getElementById("search-container"); var ClockLabel = document.createElement("label"); ClockLabel.setAttribute("id", "statusbar-clock-display"); ClockLabel.setAttribute("class", "statusbarpanel-text"); ClockLabel.setAttribute("style", "padding-top: 7px; padding-left: 8px;color:black;font-weight:bold;font-size: 15px;text-shadow:none"); ClockStatus.parentNode.insertBefore(ClockLabel, ClockStatus.nextSibling); doDatUhr(); /* ########## Statusbar - Uhr ########## */
Beim Start erscheint der Eintrag an gewohnter Stelle, die Uhrzeit läuft aber nicht voran...
[attachment=0]2014-02-06_112250.jpg[/attachment]
Ist das nur bei mir so? -
Hier funktioniert das Script noch einwandfrei.
-
Hallo Boersenfeger.
Genau das Problem habe ich auch. In allen Profilen. Keine Ahnung warum, aber die Uhr geht nicht weiter.
Dachte das wäre nur bei mir so.
Mfg.
Endor -
Dieses Script läuft hier in Fx 27 ohne Probleme:
Code
Alles anzeigenfunction doDatUhr() { var days = ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]; var months = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]; window.setTimeout("try{doDatUhr()}catch(ex){}", -80000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = day + " der " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); // var timestr = " >>>>> " + date + " " + time+ " Uhr <<<< "; var timestr = date + " " + time+ ""; var text =" Firefox 27 designed by Andreas "; document.title = text + timestr ; document.documentElement.setAttribute(text + timestr); } doDatUhr(); document.documentElement.setAttribute("titlemodifier", ""); document.documentElement.setAttribute("titlemenuseparator", "");
Und dieses habe ich im Nightly 29:
Code
Alles anzeigenfunction doDatUhr() { var days = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]; var months = ["Jan", "Feb", "März", "Apr", "Mai", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dez"]; var title = content.document.title; window.setTimeout("try{doDatUhr()}catch(ex){}", 1000 ); var D = new Date(); var day = days[D.getDay()]; var month = months[D.getMonth()]; var year = D.getFullYear(); var hour = D.getHours(); var minute = D.getMinutes(); var second = D.getSeconds(); var date = " " + day + ", " + (D.getDate() < 10 ? "0" +D.getDate() : D.getDate()) + ". " + month + " " + year + " "; var time = (hour < 10 ? "0" +hour : hour) + ":" + (minute < 10 ? "0" +minute : minute) + ":" + (second < 10 ? "0" +second : second); var timestr = date + time + "" + " "; var text ="Nightly >"; var status = document.getElementById("statusbar-clock-display"); status.setAttribute("value",text + timestr);} //var ClockStatus = document.getElementById("statusbar-display"); var ClockStatus = document.getElementById("helpMenu"); var ClockLabel = document.createElement("label"); ClockLabel.setAttribute("id", "statusbar-clock-display"); ClockLabel.setAttribute("class", "statusbarpanel-text"); ClockLabel.setAttribute("style", "padding-top: 6px; padding-left: 1px;color:yellow;font-weight:bold;text-shadow:none"); ClockStatus.parentNode.insertBefore(ClockLabel, ClockStatus.nextSibling); doDatUhr();
-
Habe beide Scripts ausprobiert, die vermaledeite Uhr will nicht laufen...
es liegt sicher an einem anderen Script oder einer Erweiterung... dann werde ich mal suchen...
BTW: Der Middleclick meiner Mouse öffnet keine Links in einem neuen Tab mehr... -
Mittelklick mit Maus funktioniert hier wie es soll.
Mfg.
Endor -
Deine Vermutung mit einer Erweiterung war ein Volltreffer.
Download Manager Tweak deaktiviert, Firefox neu gestartet, Uhr tut wieder.
So ein Mist
Mfg.
Endor -
Ja, das wollte ich auch grade vermelden... und nun?
Ich denke meine Maus ist hin... -
Entweder wir schreiben das dem Autor der Erweiterung oder Fragen
wir mal die Dunkle Seite. Was meinst Du? :wink:
Mfg.
Endor -