1. Nachrichten
  2. Forum
    1. Unerledigte Themen
    2. Forenregeln
  3. Spenden
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. camp-firefox.de
  2. Büssen

Beiträge von Büssen

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 5. Juni 2023 um 20:46
    Zitat von milupo

    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!!

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 30. Mai 2023 um 21:54

    Datei main.js

    Code
    // 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();
    Alles anzeigen

    Datei config.js

    Code
    // 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);
    }
    Alles anzeigen
  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 30. Mai 2023 um 21:25

    Werde ich machen, vielen Dank!

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 30. Mai 2023 um 20:35

    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.

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 30. Mai 2023 um 20:19
    Zitat von 2002Andreas

    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.

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 30. Mai 2023 um 19:22

    Auch nach Löschung des Scriptcaches und Neustart. tut sich nichts.

    Werde weiter suchen und weitere Überprüfungen starten.

    Habe erst mal vielen Dank!

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 30. Mai 2023 um 18:09
    Zitat von 2002Andreas

    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.

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 29. Mai 2023 um 13:35

    2002Andreas Sage vorerst mal vielen Dank für deine Hilfe.

    Muss aber gleich zum 19-ten Geburtstag meiner Enkelin.

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 29. Mai 2023 um 13:23
    Code
    (function(){
    var tabbar = document.getElementById("TabsToolbar");
    tabbar.parentNode.parentNode.appendChild(tabbar);
    })()

    Ist das damit gemeint

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 29. Mai 2023 um 13:04
    Zitat von 2002Andreas
    Zitat von Büssen

    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.

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 29. Mai 2023 um 12:52

    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!

  • Eintrag in der Menüleiste / doDatClock.uc.js

    • Büssen
    • 29. Mai 2023 um 12:33

    Hallo,,

    seit geraumer Zeit funktioniert das Script "doDatClock.uc.js" im Nightly nicht mehr.

    CSS
    (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
    Alles anzeigen
  • Der Glückwunsch-Thread

    • Büssen
    • 12. April 2023 um 17:15

    Auch dir, lieber Boersenfeger sage ich vielen Dank für die Glückwünsche.

    Es wird Zeit, dass du bald in Rente gehst. :)

  • Der Glückwunsch-Thread

    • Büssen
    • 12. April 2023 um 14:45

    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 :?:

  • Der Glückwunsch-Thread

    • Büssen
    • 11. Februar 2023 um 11:16

    Hallo Boersenfeger

    Alles Gute zum Geburtstag und weiterhin prächtige Gesundheit..

  • Der Glückwunsch-Thread

    • Büssen
    • 2. Oktober 2022 um 10:50

    Herzlichen Glückwunsch zum Geburtstag Horstmann

  • Der Glückwunsch-Thread

    • Büssen
    • 2. September 2022 um 09:29

    Guten Morgen edvoldi ,

    zu deinem heutigen Geburtstag wünsche ich alles Gute!

    Bleibe gesund und dem Forum noch lange verbunden. :thumbup:

  • Der Glückwunsch-Thread

    • Büssen
    • 13. August 2022 um 09:43

    Hallo milupo, meinen herzlichsten Glückwunsch zum heutigen Geburtstag.

    Alles Gute, Glück und Zufriedenheit für die Zukunft. :thumbup:

  • Der Glückwunsch-Thread

    • Büssen
    • 29. Juli 2022 um 09:36

    Guten Morgen Road-Runner,

    sende Dir einen herzlichen Glückwunsch zum Geburtstag,

    verbunden mit weiterer Lebensfreude, Gelassenheit und guter Gesundheit.

  • Der Glückwunsch-Thread

    • Büssen
    • 28. Juli 2022 um 09:29

    Guten Morgen AngelOfDarkness,

    darf ich freundlicherweise noch einen herzlichen Glückwunsch zum Geburtstag nachreichen.

    Alles Gute weiterhin!

Unterstütze uns!

Jährlich (2025)

101,9 %

101,9% (662,48 von 650 EUR)

Jetzt spenden
  1. Kontakt
  2. Datenschutz
  3. Impressum
Community-Software: WoltLab Suite™
Mastodon