Beiträge von Büssen
-
-
Warum musst du den Wert laufend wieder umstellen
Bei mir ist der seit zig Versionen nicht mehr verändert worden.
Ich kannte vorher diesen Eintrag nicht. Als ich ihn dann aufgerufen hatte, stand er auf "false".
Ich stecke momentan nicht so tief in der Materie, habe mich eine Zeitlang nicht so sehr im Forum aufgehalten. Da meine Versionen eigentlich immer gut funktionierten, war ich wohl nicht so aufmerksam im Forum unterwegs!
-
Habe wieder die alten Werte, nachdem eben mein Release aufgespielt wurde, genommen, dann in der about:config den Wert auf true gestellt.
Da das Release FX 114 auch bei mir nicht mit den neuen Dateien funktionierte, bin ich wieder auf die vorherigen Dateien gewechselt.
Damit läuft nun auch der FX 114 wieder einwandfrei.
-
alles wieder wie gewünscht angezeigt.
Du kannst die beiden Anpassungen auch schon für die Release Version 113 machen.
Wenn die Änderung main.js und config.js für FX 113,0.2 durchgeführt und der Eintrag browser........... auf true gestellt wird, macht mein FX nicht das, was du sicher meinst, oder?
-
Hallo Büssen, das sind die beiden aktuellen Dateiversionen. Der Wurm muss also woanders drin sein.
War ein paar Tage unterwegs, habe erst heute mich wieder kümmern können.
Also, in der userChrome.js die main.js angepasst, dann die config.js geändert.
Dann den Tipp von Andreas mit dem Eintrag "browser.compactmodus.show" auf true gesetzt.
Damit war die Kuh vom Eis - es wurde alles wieder wie gewünscht angezeigt.
Ich danke allen Tippgebern!!
-
Datei main.js
Code
Alles anzeigen// main.js /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is the userChrome.js component. * * The Initial Developer of the Original Code is * Simon Bünzli <zeniko@gmail.com> * * Portions created by the Initial Developer are Copyright (C) 2007 * the Initial Developer. All Rights Reserved. * * Contributor(s): * alta88 <alta88@gmail.com> * aborix <www.camp-firefox.de/forum> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ const { FileUtils } = ChromeUtils.importESModule( 'resource://gre/modules/FileUtils.sys.mjs' ); let UserChrome_js = { init: function() { Services.obs.addObserver(this, "final-ui-startup", false); Services.obs.addObserver(this, "domwindowopened", false); }, // observer observe: function(aSubject, aTopic, aData) { switch (aTopic) { case "final-ui-startup": let path = PathUtils.profileDir; let ucFilePath = PathUtils.join(path, "chrome", "userChrome.js"); let ucFile = new FileUtils.File(ucFilePath); if (!ucFile.exists()) { let path = PathUtils.join(ucjsDirPath, "Readme.txt"); let readmeFile = new FileUtils.File(path); readmeFile.copyTo(ucFile.parent, "userChrome.js"); }; if (ucFile.exists() && ucFile.isFile()) { let path = PathUtils.join(ucjsDirPath, "utilities.js"); this.utilFileURI = PathUtils.toFileURI(path); this.ucFileURI = PathUtils.toFileURI(ucFilePath); // Services.obs.addObserver(this, "domwindowopened", false); }; Services.obs.removeObserver(this, "final-ui-startup"); break; case "domwindowopened": aSubject.addEventListener("load", this, {capture: true, once: true}); break; } }, // event listener for load handleEvent: function(aEvent) { let document = aEvent.originalTarget; let window = document.defaultView; if (document.location && document.location.protocol == "chrome:") { try { Services.scriptloader.loadSubScript(this.utilFileURI, window, "UTF-8"); Services.scriptloader.loadSubScript(this.ucFileURI, window, "UTF-8"); } catch (ex) { // script execution can be stopped with |throw "stop";| if (ex != "stop") { Cu.reportError(ex); } } }; } }; UserChrome_js.init();
Datei config.js
Code
Alles anzeigen// config.js try { Cu.importGlobalProperties(['PathUtils']); if (!Services.appinfo.inSafeMode) { let path = PathUtils.parent(PathUtils.xulLibraryPath); if (Services.appinfo.OS == 'Darwin') { // macOS path = PathUtils.join(PathUtils.parent(path), 'Resources'); } var ucjsDirPath = PathUtils.join(path, 'userChromeJS'); path = PathUtils.join(ucjsDirPath, 'main.js'); const mainFileURI = PathUtils.toFileURI(path); Services.scriptloader.loadSubScript(mainFileURI, this, 'UTF-8'); } } catch(e) { Cu.reportError(e); }
-
Werde ich machen, vielen Dank!
-
Was mir noch aufgefallen ist, das plötzlich auch mein Button "Extras Config Menü" nicht mehr vorhanden ist. Der wurde sonst im 'urlbar-container' angezeigt
Da scheint sich doch ein größerer Fehler eingeschlichen zu haben.
-
Es erstellt den blauen Button für Neustart.
Wird leider nicht erstellt. Was mir inzwischen noch aufgefallen ist: die Menüzeile und auch die Untertitel werden plötzlich in Englischer Sprache dargestellt.
-
Auch nach Löschung des Scriptcaches und Neustart. tut sich nichts.
Werde weiter suchen und weitere Überprüfungen starten.
Habe erst mal vielen Dank!
-
Klick bitte auf den Link in Beitrag Nr. 6
Habe die Dateien config.js und main.js im Installationsordner geändert.
Habe keine Änderung meines Anliegens bemerkt.
-
2002Andreas Sage vorerst mal vielen Dank für deine Hilfe.
Muss aber gleich zum 19-ten Geburtstag meiner Enkelin.
-
-
wird bei mir nichts angezeigt.
Funktionieren denn andere Skripte im Nightly?
Soweit ich das übersehen kann, habe ich keine Auffälligkeiten entdeckt.
Was mir nur jetzt auffällt: meine TAB-Leiste wird nicht mehr unterhalb der Lesezeichenleiste angezeigt.
-
Das ist schon sehr merkwürdig. Habe schon den Cache mehrfach gelöscht und mehrfach neu gestartet.
Auch wenn ich die Titelzeile ausblende, wird bei mir nichts angezeigt.
Wünsche noch restliche frohe Pfingsten!
-
Hallo,,
seit geraumer Zeit funktioniert das Script "doDatClock.uc.js" im Nightly nicht mehr.
CSS
Alles anzeigen(function() { function doDatClock() { var timestr = new Date().toLocaleDateString( locale , options ); const blanks = ' '; 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 = ' Nightly - alt > Dieter Büssen <'; // your personal text here var cssColor = 'blue'; // Font Color var css = 'padding-top: 4px !important; padding-left: 0px; color: ' + cssColor + '; font-weight: 600; text-shadow: none; width: 275px; margin-right:42px;'; var cssA = 'margin-left:68px; 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('helpMenu'); 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 text = "Firefox " + gAppInfo.version + personalText; // Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).QueryInterface(Ci.nsIXULRuntime); var text = "Firefox " + AppConstants.MOZ_APP_VERSION_DISPLAY + personalText; AgentLabel.setAttribute( 'value', text ); position.parentNode.insertBefore(AgentLabel, position.nextSibling); } if( count == 1 ) { ClockLabel.addEventListener('dblclick', function() { sec = 0; }); } window.setInterval( doDatClock , 1000 ); })(); Kann das jemand bestätigen oder nachvollziehen? Gruß D.Büssen
-
Auch dir, lieber Boersenfeger sage ich vielen Dank für die Glückwünsche.
Es wird Zeit, dass du bald in Rente gehst.
-
Vielen Dank für die lieben Glückwünsche zu meinem gestrigen Geburtstag.
Habe mich sehr darüber gefreut!
So jung kommen wir nicht wieder zusammen
-
Hallo Boersenfeger
Alles Gute zum Geburtstag und weiterhin prächtige Gesundheit..
-
Herzlichen Glückwunsch zum Geburtstag Horstmann