aa ok
Danke für die Erklärung
Beiträge von Son Goku
-
-
mhh warum verweist dann das Sript auf
ZitatC:\Users\xxx\AppData\Roaming\Mozilla\Firefox\Profiles\khkit97h.default
Code
Alles anzeigen(function () { if (location != 'chrome://browser/content/browser.xul') return; const buttonId = 'Profilordner'; const buttonLabel = 'Profil Button'; const buttonTooltiptext = ''; const buttonIcon = 'url(data:image/gif;base64,R0lGODlhEAAQAOZMAP/////MAF06AJhlAJNgAP//AP/lAP/UAJViAP/JANShAJRhAP/OAJRgAOy5AMaSAP/nAMyZAP/IAP/NAOazAP/RAMmVALaAAH5TAJNfAM2aAP/dT//XOv/KAOPOkMeRAP/nhOSxAOu4AP3KAOrTkv/nrv//1c6bAKdyAP/TAP/bPdWsMr6LA7iCALqGALiEAJNeAMCMAP/gcv/eYdGdAP/TEP/mgv/2y//gg/3JAP/ila97AP/aKsWPAJFbAJZgALeBAMiVAPC9AP/rOum2AHlQAP/4zP//z//jPpNdAP/LANixNP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAEwALAAAAAAQABAAAAefgEyCg4SFhoeFDQ0LjIiCCyU5IwEBBAiXCAOEBDohFBREIg6jQgibODQKqgonDz0fPkkwDQMEMhYRERpBMUsAv8C1Mw8uLUAXKwA2EgkJDJoEGy8swAAgCZQMz0wEKigkN8wJHZQBFZrcPDsAHErllBMT6AQ1HkYVKQf6++hMGUgAhhgYSBAChH4/TBwpwLAhw35MMAiYSLFiEUcYmQQCADs=)'; function buttonFunction() { Services.dirsvc.get('ProfD', Ci.nsIFile).launch(); }; var button = document.createElement('toolbarbutton'); button.id = buttonId; button.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional'); button.removable = 'true'; button.setAttribute('label', buttonLabel); button.setAttribute('tooltiptext', buttonTooltiptext); button.style.listStyleImage = buttonIcon; button.addEventListener('click', function (event) { if (event.button == 0) buttonFunction(); }); document.getElementById('navigator-toolbox').palette.appendChild(button); var toolbars = Array.slice(document.querySelectorAll('toolbar')); for (var i=0; i<toolbars.length; i++) { var currentset = toolbars[i].getAttribute('currentset'); if (currentset.split(',').indexOf(button.id) >= 0) { var j; if (i == 0) j = 1 else j = 0; toolbars[j].currentSet += ','+button.id; toolbars[i].currentSet = currentset; }; }; }) ();ZitatC:\Users\[Benutzername]\AppData\Local\Mozilla\Firefox\Profiles\[Profilname]\startupCache
bei folgendem Pfad habe ich 2 Profile obwohl ich nur eins habe das Standard ? -
wenn Haken drinn und ich öffne den Fux einmal sind die Icons verschoben.
Öffnen ich einen Link mit Strg+N bleiben die Icons so wie sie sollen und beim 3ten 4ten Fenster auch.Nur das erste geöffnete Fenster spinnt.
-
hat sich erledigt, mein Fehler
-
Zitat
Wenn du nach dem Start ein zweites Fenster öffnest, stimmen dort die Positionen? Stimmen sie in einem dritten Fenster?
ja dann stimmen die, aber nur wenn ich in den Haken in den Einstellungen bei Tabs -> "Statt neuem Fenster neuen Tab öffnen " raus nehmen.Wenn Haken drinn verschieben sich die Icons immer wieder.
[attachment=0]Unbenannt-2.png[/attachment]Das Script problem hat sich erledigt, wahr mein Fehler.
-
aa ok,
jetzt ist die AddOnleiste unter der Tableiste.passt jetzt.
-
Danke erstmal, aber wenn ich mich nicht irre ist das nur für die obere hälfte oim Firefox Fenster.
ich habe meine Tableiste komplett unten.
-
Hallo,
hier aus dem Forum habe ich 2 Scripte und zwarTableiste unter Inhalt
Code
Alles anzeigen(function() { if (location != 'chrome://browser/content/browser.xul') return; try { var vbox = document.createElement('vbox'); document.getElementById("navigator-toolbox").parentNode.insertBefore( vbox, document.getElementById("browser-bottombox")); vbox.appendChild(document.getElementById("TabsToolbar")); }catch(e) {} })();AddOnleiste
Code
Alles anzeigen(function() { if (location != 'chrome://browser/content/browser.xul') return; var tb = document.createElement('toolbar'); tb.id = 'new-toolbar'; tb.setAttribute('customizable', true); tb.setAttribute('mode', 'icons'); var vbox = document.createElement('vbox'); document.getElementById('navigator-toolbox').parentNode.insertBefore( vbox, document.getElementById('browser-bottombox')); vbox.appendChild(tb); CustomizableUI.registerArea('new-toolbar', {legacy: true}); })();Das Problem ist das die Tableiste unter der AddOnleiste ist und ich nicht weis wie man diese unter der Tableiste bekommen kann
Tableiste und dann AddOnleiste
-
aa ok, also braucht man nicht mehr wie voher den Ordner extra löschen wenn man was an den Scripten geändert hat ?
Das ist dann ja gut.
-
Hallo,
wo ist denn der Ordner für Scriptcache abgeblieben im Firefox 57 beta ?
[attachment=0]Unbenannt-2.png[/attachment] -
Versuche für die Adressleiste anstatt des bisherigen das folgende Codestück:
Code
Alles anzeigen// Adressleiste verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_urlbar-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_urlbar-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Adressleiste'); toolbaritem.setAttribute('flex', '1'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_urlbar-item').appendChild(document.getElementById('urlbar-container'));Hallo,
wieder zu Hause.jetzt habe ich mir die 57 beta geholt um das mal vernüftig zu testen und es klappt noch nicht ganz.
Die Adressleiste ist zwar oben aber die Icons rechts und Links verschieben sich andauernt.
ich habe mal ein Screenshot erstellt wie es im Anpassungsfenster und nach einem neustart aussieht.
[attachment=1]Unbenannt-1.png[/attachment]Das selbe ist bei Vor und Zurück Button.
kann man da nichts machen das die Icons sich nicht immer verschieben ?
[attachment=0]Unbenannt-4.png[/attachment] -
aa ok hat alles geklappt LZ sind wieder da.
Danke
-
Hallo,
ich hatte vergessen meine LZ zu Exportieren was mir nach neu install des Firefox aufgefallen ist.
Ich habe aber das Profil komplett gesichert von dem anderen Firefox.
Der alte Firefox ist mit Scripte eigene anpassungen und AddOns gewesen und der neue Aktuelle Version ist noch sozusagen nackt.was muß ich denn jetzt tuhen um die LZ aus dem alten Profil in den Aktuellen Firefox zu bekommen ?
kopieren des Profil Ordner geht ja nicht.
-
Hallo,
habe ich genau so gemacht wie in der Anleitung steht, habe sogar die Dateien runtergeladen und verwendet. Natülich habe ich das .txt am ende der Datei jewalls gelöscht.aber den Profil Ordner sehe ich trotzdem nicht im Anpassungsfenster ?
[attachment=1]Unbenannt-1.png[/attachment]inhalt des Scriptes
Code
Alles anzeigen(function () { if (location != 'chrome://browser/content/browser.xul') return; const buttonId = 'Profilordner'; const buttonLabel = 'Profil Button'; const buttonTooltiptext = ''; const buttonIcon = 'url(data:image/gif;base64,R0lGODlhEAAQAOZMAP/////MAF06AJhlAJNgAP//AP/lAP/UAJViAP/JANShAJRhAP/OAJRgAOy5AMaSAP/nAMyZAP/IAP/NAOazAP/RAMmVALaAAH5TAJNfAM2aAP/dT//XOv/KAOPOkMeRAP/nhOSxAOu4AP3KAOrTkv/nrv//1c6bAKdyAP/TAP/bPdWsMr6LA7iCALqGALiEAJNeAMCMAP/gcv/eYdGdAP/TEP/mgv/2y//gg/3JAP/ila97AP/aKsWPAJFbAJZgALeBAMiVAPC9AP/rOum2AHlQAP/4zP//z//jPpNdAP/LANixNP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAEwALAAAAAAQABAAAAefgEyCg4SFhoeFDQ0LjIiCCyU5IwEBBAiXCAOEBDohFBREIg6jQgibODQKqgonDz0fPkkwDQMEMhYRERpBMUsAv8C1Mw8uLUAXKwA2EgkJDJoEGy8swAAgCZQMz0wEKigkN8wJHZQBFZrcPDsAHErllBMT6AQ1HkYVKQf6++hMGUgAhhgYSBAChH4/TBwpwLAhw35MMAiYSLFiEUcYmQQCADs=)'; function buttonFunction() { Services.dirsvc.get('ProfD', Ci.nsIFile).launch(); }; var button = document.createElement('toolbarbutton'); button.id = buttonId; button.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional'); button.removable = 'true'; button.setAttribute('label', buttonLabel); button.setAttribute('tooltiptext', buttonTooltiptext); button.style.listStyleImage = buttonIcon; button.addEventListener('click', function (event) { if (event.button == 0) buttonFunction(); }); document.getElementById('navigator-toolbox').palette.appendChild(button); var toolbars = Array.slice(document.querySelectorAll('toolbar')); for (var i=0; i<toolbars.length; i++) { var currentset = toolbars[i].getAttribute('currentset'); if (currentset.split(',').indexOf(button.id) >= 0) { var j; if (i == 0) j = 1 else j = 0; toolbars[j].currentSet += ','+button.id; toolbars[i].currentSet = currentset; }; }; }) ();
[attachment=0]Unbenannt-2.png[/attachment] -
Hallo,
ich habe folgende Version runtergeladen
[attachment=0]Unbenannt-2.png[/attachment]
damit wollte ich einige Scripte ausprobieren und bin nach folgender Anleitung vorgegangenAnleitung in kurz form
Zitat
1. In den "Firefox Installationsordner" gehört die Datei "config.js" und "userChromeJS.js"2. In den "Firefox Installationsordner\defaults\pref" gehört die Datei "config-prefs.js"
3. In den "Profilordner\chrome" gehört die Datei "userChrome.js"
sollte der Ordner "chrome nicht vorhanden sein, einfach neu anlegen4. sowie die Datei eures Skripts wie zb. "irgendeiname.uc.js"
Inhalt der Dateien
Code
Alles anzeigen// userChromeJS.js // // kopieren nach -> Firefox Installationsordner /* ***** 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 userChromeJS utilities. * * The Initial Developer of the Original Code is * alta88 <alta88@gmail.com> * * Portions created by the Initial Developer are Copyright (C) 2014 * the Initial Developer. All Rights Reserved. * * Contributor(s): * * 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 ***** */ var EXPORTED_SYMBOLS = ["userChrome"]; /* ........ Utility functions ............................................... */ var userChrome = { path: null, dirToken: null, get loadOverlayDelay () { if (!this._loadOverlayDelay) this._loadOverlayDelay = 500; return this._loadOverlayDelay; }, set loadOverlayDelay(delay) { this._loadOverlayDelay = delay; }, get loadOverlayDelayIncr() { if (!this._loadOverlayDelayIncr) this._loadOverlayDelayIncr = 1600; return this._loadOverlayDelayIncr; }, set loadOverlayDelayIncr(delay) { this._loadOverlayDelayIncr = delay; }, import: function(aPath, aRelDirToken) { let file; this.path = aPath; this.dirToken = aRelDirToken; if (aRelDirToken) { // Relative file let absDir = this.getAbsoluteFile(aRelDirToken); if (!absDir) return; let pathSep = absDir.path.match(/[\/\\]/)[0]; file = absDir.path + (aPath == "*" ? "" : pathSep + aPath.replace(/[\/\\]/g, pathSep)); } else // Absolute file file = aPath; file = this.getFile(file); if (!file) return; if (file.isFile()) { if (/\.js$/i.test(file.leafName)) this.loadScript(file, aRelDirToken, null); else if (/\.xul$/i.test(file.leafName)) { let xul_files = []; xul_files.push(file); this.loadOverlay(xul_files, this.dirToken, null, this.loadOverlayDelay); // this.loadOverlayDelay = this.loadOverlayDelay + this.loadOverlayDelayIncr; } else this.log("File '" + this.path + "' does not have a valid .js or .xul extension.", "userChrome.import"); } else if (file.isDirectory()) this.importFolder(file); else this.log("File '" + this.path + "' is neither a file nor a directory.", "userChrome.import"); }, loadScript: function(aFile, aFolder, aRelDirToken) { setTimeout(function() { Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader) .loadSubScript(userChrome.getURLSpecFromFile(aFile), null, // defaults to the global object of the caller. userChrome.charSet); // log it userChrome.log(aRelDirToken ? ("[" + aRelDirToken + "]/" + (aFolder && aFolder != "*" ? aFolder + "/" : "") + aFile.leafName) : aFile.path, "userChrome.loadScript"); }, 0); }, // XXX: Due to bug 330458, an overlay must finish before another can be // called, otherwise neither are successful. Implementing an observer to // serialize is better left as a fix in the core bug. Here, settimout values // are set to minimize but there is no quarantee; overlay cdata (if any) // needs to consider overlay completions and logging does not strictly mean // an overlay has completed, rather that the overlay file has been invoked. loadOverlay: function(aFiles, aRelDirToken, aFolder, aDelay) { //userChrome.log(aDelay+" multiple import delay", userChrome.loadOverlay); // Increment multiple import delay this.loadOverlayDelay = this.loadOverlayDelay + this.loadOverlayDelayIncr; setTimeout(function() { if (aFiles.length > 0) { //userChrome.log(userChrome.loadOverlayDelay+" inter folder delay", userChrome.loadOverlay); // log it userChrome.log(aRelDirToken ? ("[" + aRelDirToken + "]/" + (aFolder && aFolder != "*" ? aFolder + "/" : "") + aFiles[0].leafName) : aFiles[0].path, "userChrome.loadOverlay"); document.loadOverlay(userChrome.getURLSpecFromFile(aFiles.shift()), null); setTimeout(arguments.callee, userChrome.loadOverlayDelay); } }, aDelay); }, // Include all files ending in .js and .xul from passed folder importFolder: function(aFolder) { let files = aFolder.directoryEntries .QueryInterface(Components.interfaces.nsISimpleEnumerator); let xul_files = []; while (files.hasMoreElements()) { let file = files.getNext().QueryInterface(Components.interfaces.nsIFile); if (/\.js$/i.test(file.leafName) && file.leafName != "userChrome.js") this.loadScript(file, this.path, this.dirToken); else if (/\.xul$/i.test(file.leafName)) { xul_files.push(file); } } if (xul_files.length > 0) this.loadOverlay(xul_files, this.dirToken, this.path); }, getFile: function(aPath, aRelDirToken) { try { let file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsIFile); file.initWithPath(aPath); // Bad file doesn't throw on initWithPath, need to test if (file.exists()) return file; this.log("Invalid file '" + this.path + (this.dirToken ? ("' or file not found in directory with token '" + this.dirToken) : "") + "' or other access error.", "userChrome.getFile"); } catch (e) { // Bad folder throws on initWithPath this.log("Invalid folder '" + this.path + (this.dirToken ? ("' or folder not found in directory with token '" + this.dirToken) : "") + "' or other access error.", "userChrome.getFile"); } return null; }, getAbsoluteFile: function(aRelDirToken) { try { let absDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get(aRelDirToken, Components.interfaces.nsIFile); return absDir; } catch (e) { this.log("Invalid directory name token '" + this.dirToken + "' or directory cannot be accessed.", "userChrome.getAbsoluteFile"); return null; } }, getURLSpecFromFile: Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) .getProtocolHandler("file") .QueryInterface(Components.interfaces.nsIFileProtocolHandler) .getURLSpecFromFile, /* Console logger */ log: function(aMsg, aCaller) { Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService) .logStringMessage(this.date + " userChromeJS " + (aCaller ? aCaller +": " : "") + aMsg); }, get dateFormat() { if (!this._dateFormat) this._dateFormat = "%Y-%m-%d %H:%M:%S"; return this._dateFormat; }, set dateFormat(format) { this._dateFormat = format; }, get date() { let date = new Date(); return date.toLocaleFormat(this.dateFormat); }, set charSet(val) { this._charSet = val; }, get charSet() { if (!this._charSet) this._charSet = "UTF-8"; // use "UTF-8". defaults to ascii if null. return this._charSet; } };Code// userChrome.js // // kopieren nach -> Profilordner\chrome // wenn Ordner "chrome" nicht vorhanden ist, einfach neu anlegen userChrome.import("*", "UChrm");Code// config-prefs.js // kopieren nach // Firefox Installationsordner\defaults\pref pref("general.config.obscure_value", 0); pref("general.config.filename", "config.js");leider funktionieren keine Scripte, selbst das Script mit dem Profilordner geht nicht.
habe ich was falsche gemacht oder was muß ich denn noch machen ?
-
@ aborix,
bis jetzt ja auch wenn ich den Cache Ordner lösche.bin erstmal ca 3 Wochen nicht in die nähe eines PCs, wer weis welche Version vom Fux offiziel raus ist.
Bitte keine eile.
-
ich habe gemerkt das wen nich den Bihtly 58 öfter auf und zu mache, sind die Vor Zück Button immer woanderes

[attachment=0]Unbenannt-4.png[/attachment] -
@ aborix
passt Danke
[attachment=0]Unbenannt-1.png[/attachment]jetzt müßte nur noch die Adressleiste Automatisch in der länge anpassbar sein so das der Leere platz von der Adressleiste genutzt wird.
erstmal Danke bis hier hin.
-
Hallo,
könnte man den Vor und Zurück Buttons nicht einzelnt zum Verschieben machen so das man noch ein Button dazwischen bekommen kan ?in meinen Fall möchte ich den Reload Button (Seite NeuLaden) dazwischen haben.
[attachment=0]Unbenannt-1.png[/attachment]ansonsten ein recht grosses Dank von meiner Seite.
Code
Alles anzeigen// Vor/Zurück-Schaltflächen verschiebbar try { CustomizableUI.createWidget({ id: 'ucjs_back-forward-item', type: 'custom', defaultArea: CustomizableUI.AREA_NAVBAR, onBuild: function(aDocument) { var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbaritem'); toolbaritem.id = 'ucjs_back-forward-item'; toolbaritem.className = 'chromeclass-toolbar-additional'; toolbaritem.setAttribute('label', 'Vor/Zurück'); return toolbaritem; } }); } catch(e) { }; document.getElementById('ucjs_back-forward-item').appendChild(document.getElementById('back-button')); document.getElementById('ucjs_back-forward-item').appendChild(document.getElementById('forward-button')); -
hehe nutze auch uBlock origin, ich meinte aber die Werbung die in den Videos kommt