aa ok hat alles geklappt LZ sind wieder da.
Danke
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
(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;
};
};
}) ();
Alles anzeigen
[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 vorgegangen
Anleitung 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
// 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;
}
};
Alles anzeigen
// userChrome.js
//
// kopieren nach -> Profilordner\chrome
// wenn Ordner "chrome" nicht vorhanden ist, einfach neu anlegen
userChrome.import("*", "UChrm");
// 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.
// 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'));
Alles anzeigen
hehe nutze auch uBlock origin, ich meinte aber die Werbung die in den Videos kommt
Hallo,
gibt es eigentlich ein AddOn oder UserScript das die Werbung in den Videos überspingt und man sofort das eigentlich Video sehen kann ?
passt und kann auch verschoben werden.
Danke.
EDIT:
wieviel Pixel darf das base64 Icon für den Nightly eigentlich sein ?
Hallo,
ich habe alle Skripte aus diesem Beitrag getestet und nur eins funktioniert fast perfekt im Aktuellen nightly
Nightly Version
57.0a1 (2017-09-18) (64-Bit)
Script was funktioniert bis auf den Smilie der lässt sich nicht verschieben.
könnte man das ändern ?
// Radio-Button fix 26
(function () {
if (location != 'chrome://browser/content/browser.xul') return;
const buttonId = 'radio-de-button';
const buttonLabel = 'radio.de';
const buttonTooltiptext = 'radio.de';
const buttonIcon = 'url(data:image/gif;base64,R0lGODlhEgASALMPAP//95v/GAIlCAQWBAQ1DMb/a97/rWveEFLWEJz/GAhrGAiUISG1If///wAAAP///yH5BAEAAA8ALAAAAAASABIAAAR18Mnpqp2YupN6KVUmOQzCJYWhGk5GlmcKzCy1MLBnzFb7WDnUztEotojGTUCILDYqTuMy0XRCjc8TslkhCASDAcJEjSYVizRufDhULQr0DVca90KOeHpO7/vyemp9dD4/cQoVe4qFI4eIDosiP4COIZIjdyIRADs=)';
function buttonFunction() {
gBrowser.selectedTab = gBrowser.addTab('http://www.radio.de/');
};
var button = document.createElement('toolbarbutton');
button.id = buttonId;
button.setAttribute('class', 'chromeclass-toolbar-additional');
button.setAttribute('label', buttonLabel);
button.setAttribute('tooltiptext', buttonTooltiptext);
button.style.listStyleImage = buttonIcon;
button.addEventListener('click', function (event) {
if (event.button == 0)
buttonFunction();
});
var PanelUIButton = document.getElementById('PanelUI-button');
PanelUIButton.parentElement.insertBefore(button, PanelUIButton.nextSibling);
}) ();
Alles anzeigen
Hallo,
Danke hat alles geklappt und es lag an das Leerzeichen vom hover.
habe ich total vergessen,
Danke hat geklappt.
Hallo
Danke,
jetzt habe ich kein hover mehr.
hier mal mein CSS für die Tab
#TabsToolbar {
background: trans !important;
position:fixed !important;
bottom:0 !important;
/* margin-bottom: 17px !important; */
max-width:1902px !important;
}
#tabbrowser-tabs > tab {
width:250px!important;
}
/* abstand links - Themen Compact Light */
.tabbrowser-tab:nth-child(1){
margin:0 0 0 -15px !important;
}
/* Alle Tabs Auflisten (kleiner Pfeil) */
#alltabs-button{
display:none;
}
/* Neuen Tab (kreuz) auch wenn leiste voll */
.tabs-newtab-button, #new-tab-button{
display:none;
}
/* wenn Tableiste voll - Pfeil links und rechts */
.scrollbutton-up, .scrollbutton-down {
background: #e87708!important;
}
/*HOVER:*/
#TabsToolbar .tab-background:hover {
border-top: 4px solid #00ff00!important;
background-color:#cccdcf !important;
}
/*SELECTED:*/
#TabsToolbar .tab-background[selected="true"] {
border-top: 4px solid #00ff00!important;
background-color:#cccdcf !important;
}
Alles anzeigen
Hallo,
ich habe peer css den hover Tab einen kleinen Strich in Grün (#00ff00) verpasst, naja dachte ich jedefalls.
ich habe aber 2 davpn ?
[attachment=0]Unbenannt-4.png[/attachment]
wie bekomme ich denn bei hover einmal ?
in der "userContent.css" klappt es.
ok Danke schön.
Hallo,
das klappt leider nicht.
firefox 55.0.3
und über chrome/css
Hallo,
in CTR gibt es eine möglichkeit die AddOn Detailseite zu ändern so das der unterteil oben ist.
wie bekommt man diesen teil nach oben ohne CTR ?
[attachment=0]Unbenannt-2.png[/attachment]
Danke aber jetzt weis ich wo es dran hängt,
Das ist der kleine Pfeil für "Alle Tabs Auflisten"
[attachment=0]Unbenannt-1.png[/attachment]
kann man den nicht irgendwie verschieben oder ausblenden ?