Jetzt habe ich den Code von 2002Andreas da eingefügt auch das geht nicht.
Beiträge von AdminFox
-
-
2002Andreas Unter Ubuntu sind die gleichen Dateien wie in Windows 10 die ganzen Dateien sind nur aus diesem Forum.
Das in meiner userChrome.js stehen falsche Daten? wenn bei Dir was anderes steht.
-
Dort steht C:\Program Files\Mozilla Firefox\firefox.exe" Ausführen in C:\Program Files\Mozilla Firefox
-
milupo hier ist der Inhalt der userChrome.js.
Code
Alles anzeigen/* * userChromeJS * * The file userChrome.js 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-US/Add-ons/Code_snippets/File_I_O#Getting_files_in_special_directories * // 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 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: * Scripts are stored in a startup cache and loaded from it. * After a change in userChrome.js you heve to restart Firefox with clearing * this cache to make sure the changed file is read. * By default this applies to imported .js files too. You can bypass the cache * for these scripts with this statement BEFORE any import statement: * userChrome.ignoreCache = true; * */
-
AngelOfDarkness So jetzt habe ich ein neues Profil erstellt, gleich mehrere screenshots gemacht, eins verstehe ich nicht du sagtest kannst den korrekten Ordner nicht sehen aber der Pfad steht in der Leiste oben im Explorer, und auch unter Eigentschaften.
1. Firefox ein mal Blanko ohne Scripte, css.
[attachment=1]Frefox Blanko.JPG[/attachment]
2. Firefox mit Menüleiste/Extras.
[attachment=0]Menü.png[/attachment]
3. Mit dem RestarFirefox Script.
4. Mit userChrome.css
Es hat nichts gebracht wie man auf dem Bildern sieht.
-
AngelOfDarkness Ich hatte den Firefox ohne userChrome.css gestartet kann man im Bild oben sehen das Firefox anders aussieht als bei dem anderem Bild, den Scripcache hatte ich auch gelöscht. Nur unter c:\Programme.
Hier ist nun das Bild mit dem Profilnamen verstehe immer noch nicht was der damit zu tun hat.
Boersenfeger Das habe ich bereits probiert ohne erfolg im http://Post 3 https://viewtopic.php?f=16&t=126132&start=309
-
AngelOfDarkness ich die Dateien durch Deine ersetzt wieder ohne erfolg, mir fehlt leider das siebte Bild weiß nicht wechels du haben möchtest. Und ich hatte nur nur mein real Namen Kaschiert im vorigen post, jetzt habe ich nur den Anfangs Buchstaben gelassen.
1. [attachment=5]Firefox 62.jpg[/attachment]
2. [attachment=4]about-support.JPG[/attachment]
3. [attachment=3]chrome.JPG[/attachment]
4. [attachment=2]Default.JPG[/attachment]
5. [attachment=1]Prog Ordner.jpg[/attachment]
6. [attachment=0]userChromeJS.png[/attachment]
-
AngelOfDarkness hier sind die Bilder.
1. [attachment=4]about-support.JPG[/attachment]
2. [attachment=3]Firefox 62.jpg[/attachment]
3. [attachment=2]chrome.JPG[/attachment]
4. [attachment=1]Default.JPG[/attachment]
5. [attachment=0]main.JPG[/attachment]
-
AngelOfDarkness erst mal danke für die Mühe aber auch das hat nicht Funktioniert, die Schwebende Scrollbar taucht bei mir nicht auf siehe die Bilder.
Selbst die geänderten Einträge zeigte keine wirkungen.
1. [attachment=2]Firefox 62.png[/attachment]
2. [attachment=1]main.JPG[/attachment]
3. [attachment=0]Scrollbalken.JPG[/attachment]
-
Ich hatte die neue main.js jetzt noch mal ersetzt nach mehreren versuchen es hat wieder nicht Funktioniert.
1. [attachment=1]Main.JPG[/attachment]
2. [attachment=0]Scrollbalken.JPG[/attachment]
Der Balken wurde nicht smaller unter Windows 10.
In Ubuntu Funktioniert es mit der alten main.js
-
Die frage ist wo der fehler sein könnte wenn beiden neuen Profilen nur ein mal Funktionierte das Script.
-
Jetzt hatte ich 2 neue Profile erstellt, Firefox neugestartet beim ersten Start hat es Funktioniert da war der Scrollbalken smaller aber beim nächsten Start hat es bei beiden in neuen Profilen nicht mehr Funktioniert das heißt der fehler liegt wo anders oder am Script.
-
Das Script FloatingScrollbar.uc.js soll bei mir den Balken Smaller machen, mir ist es ein Rätsel warum es nicht geht In Windows 10, unter Ubuntu schon.
-
milupo ich hatte in post #16 nur nicht unter Ansicht den Haken Dateierweiterungen gesetzt siehe jetzt das Bild was ich grad gemacht habe nun mit gesetztem Haken bei der Dateierweiterungen.
[attachment=0]Unbenannt.JPG[/attachment]
-
Ja, ich nutze nur das eine Script für den Scrollbalken.
Dein Code Funktioniert nicht da wird erscheint kein Button.
[attachment=0]Button.JPG[/attachment]
-
Speravir ich habe den Scriptcache vor dem Neustart gelöscht, kein erfolg gehabt.
-
2002Andreas Ich habe den Firefox im abgesicherten Modus gestartet ohne erfolg.
AngelOfDarkness keine Ahnung was in der main.js drin stehen hier ist mal der eintrag.
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 ***** */ Cu.import("resource://gre/modules/FileUtils.jsm"); let UserChrome_js = { init: function() { Services.obs.addObserver(this, "final-ui-startup", false); }, // observer observe: function(aSubject, aTopic, aData) { switch (aTopic) { case "final-ui-startup": let path = OS.Constants.Path.profileDir; let ucFilePath = OS.Path.join(path, "chrome", "userChrome.js"); let ucFile = new FileUtils.File(ucFilePath); if (!ucFile.exists()) { let path = OS.Path.join(ucjsDirPath, "Readme.txt"); let readmeFile = new FileUtils.File(path); readmeFile.copyTo(ucFile.parent, "userChrome.js"); }; if (ucFile.exists() && ucFile.isFile()) { let path = OS.Path.join(ucjsDirPath, "utilities.js"); this.utilFileURI = OS.Path.toFileURI(path); this.ucFileURI = OS.Path.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();
Was das Datum angeht ich nutze auch das Tool Newfiletime.
-
Ich hatte den Eintrag in der config-prefs eingefügt zum dritten mal 2 mal gestern, heute hat nichts gebracht.
[attachment=0]Unbenannt.JPG[/attachment]
Lass Dich nicht von dem Datum irritieren im vorigen post.
-
2002Andreas die dateien liegen in den entsprechenden Ordner.
1. [attachment=2]Default&pref.JPG[/attachment]
2. [attachment=1]userChromeJS.JPG[/attachment]
3. [attachment=0]Chrome.JPG[/attachment]
AngelOfDarkness auch das hat nicht Funktioniert.
-
-----------------