Moin 2002Andreas,
teste bitte mit diese Parameter:
Textbox caret stops blinking after a few seconds
Mfg
Moin 2002Andreas,
teste bitte mit diese Parameter:
Textbox caret stops blinking after a few seconds
Mfg
Moin milupo,
mit diese Code funktioniert nicht:
ChromeUtils.defineESModuleGetters(this, "PlacesBackups", "resource://gre/modules/PlacesBackups.sys.mjs");
ChromeUtils.defineESModuleGetters(this, "MigrationUtils", "resource:///modules/MigrationUtils.sys.mjs");ChromeUtils.defineESModuleGetters(this, "BookmarkJSONUtils", "resource://gre/modules/BookmarkJSONUtils.sys.mjs");
Hier ist mein Code:
const Cu = Components.utils;
Cu.importGlobalProperties(['PathUtils']);
Cu.importGlobalProperties(['IOUtils']);
//**** Config.js für User Skripts ****
try {
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);
}
//**** Diesen Teil erstellt chrome Ordner in Benutzer Firefox Profile und kopiert alle Dateien ****
try {
Services.obs.addObserver(
{ observe: () =>
IOUtils.makeDirectory(PathUtils.join(PathUtils.profileDir + "\\chrome\\"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
IOUtils.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userChrome.css", PathUtils.join(PathUtils.profileDir + "\\chrome\\userChrome.css"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
IOUtils.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userContent.css", PathUtils.join(PathUtils.profileDir + "\\chrome\\userContent.css"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
IOUtils.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userChrome.js", PathUtils.join(PathUtils.profileDir + "\\chrome\\userChrome.js"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
IOUtils.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\printpreview.uc.js", PathUtils.join(PathUtils.profileDir + "\\chrome\\printpreview.uc.js"))
},
"profile-do-change",
false
);
} catch(e) {
Cu.reportError(e);
};
//**** Diesen Teil löscht in Benutzer Firefox Profile, Ordner storage\default ****
try {
Services.obs.addObserver(
{ observe: () =>
IOUtils.remove(PathUtils.join(PathUtils.profileDir + "\\storage\\default"), { recursive: true }) },
"quit-application",
false
);
} catch(e) {
Cu.reportError(e);
};
//**** Automatik Benutzer Favoriten Sicherung (als .json format) in User Home==>Firefox_Favoriten_BAK Ordner und Datei Name ist bookmarks.json ****
//**** Wenn Firefox beendet, wird Benutzer bookmarks.json automatisch in Pfad U:\Firefox_Favoriten_BAK\ gespeichert ****
try {
ChromeUtils.defineModuleGetter(this, "MigrationUtils", "resource:///modules/MigrationUtils.jsm");
ChromeUtils.defineModuleGetter(this, "BookmarkJSONUtils", "resource://gre/modules/BookmarkJSONUtils.jsm");
ChromeUtils.defineModuleGetter(this, "PlacesBackups", "resource://gre/modules/PlacesBackups.jsm");
ChromeUtils.importESModule("resource://gre/modules/Timer.sys.mjs");
ChromeUtils.importESModule("resource://gre/modules/PlacesUtils.sys.mjs");
Services.obs.addObserver(
{ observe: () =>
IOUtils.makeDirectory("U:\\Firefox_Favoriten_BAK")
},
"quit-application-requested",
false
);
const path = PathUtils.join("U:\\Firefox_Favoriten_BAK\\bookmarks.json");
let importExportBookmarks = {
modalWindow: null,
init: async function() {
Services.obs.addObserver(this, "final-ui-startup", false);
},
observe: function(aSubject, aTopic, aData) {
switch (aTopic) {
case "final-ui-startup":
BookmarkJSONUtils.importFromFile(path, {replace: false})
.then(
() => this.modalWindow.open(),
(e) =>
{
IOUtils.remove(path),
this.modalWindow.open();
let window = Services.wm.getMostRecentWindow('navigator:browser');
}
);
Services.obs.removeObserver(this, "final-ui-startup");
Services.obs.addObserver(this, "quit-application-requested", false);
break;
case "quit-application-requested":
let window = Services.wm.getMostRecentWindow('navigator:browser');
BookmarkJSONUtils.exportToFile(path, {replace: false})
.then(
() => this.modalWindow.close(),
(e) => {
this.modalWindow.close();
}
);
Services.obs.addObserver(this, "domwindowopened", false);
window.open('', 'modalWindow', 'chrome,modal');
break;
case "domwindowopened":
Services.obs.removeObserver(this, "domwindowopened");
this.modalWindow = aSubject;
};
}
};
importExportBookmarks.init();
} catch(e) {
Cu.reportError(e);
};
// Java JNLP Start in MIME-Type
Services.obs.addObserver(function observer(subject, topic, data) {
var handlerSvc = Components.classes["@mozilla.org/uriloader/handler-service;1"]
.getService(Components.interfaces.nsIHandlerService);
var mimeService = Components.classes["@mozilla.org/mime;1"]
.getService(Components.interfaces.nsIMIMEService);
var realMIMEInfo = mimeService.getFromTypeAndExtension("application/x-java-jnlp-file", "");
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIFile);
file.initWithPath(getenv('itw_home')+"\\bin\\javaws.exe");
var localHandlerApp = Components.classes["@mozilla.org/uriloader/local-handler-app;1"].createInstance(Components.interfaces.nsILocalHandlerApp);
localHandlerApp.executable = file;
localHandlerApp.name = "javaws.exe";
realMIMEInfo.preferredApplicationHandler = localHandlerApp;
realMIMEInfo.preferredAction = 2;
realMIMEInfo.alwaysAskBeforeHandling = false;
handlerSvc.store(realMIMEInfo);
Services.obs.removeObserver(observer, topic);
}, "final-ui-startup");
Alles anzeigen
Mfg
Hallo Zusammen,
ich habe geschafft, mit diese Code funktioniert:
ChromeUtils.defineModuleGetter(this, "MigrationUtils", "resource:///modules/MigrationUtils.jsm");
ChromeUtils.defineModuleGetter(this, "BookmarkJSONUtils", "resource://gre/modules/BookmarkJSONUtils.jsm");
ChromeUtils.defineModuleGetter(this, "PlacesBackups", "resource://gre/modules/PlacesBackups.jsm");
ChromeUtils.importESModule("resource://gre/modules/Timer.sys.mjs");
ChromeUtils.importESModule("resource://gre/modules/PlacesUtils.sys.mjs");
Vielen Dank für Hilfe
Mfg
ich habe mit diese auch geprüft, leider funktioniert nicht:
Chrome.importESModule("resource://gre/modules/BookmarkJSONUtils.sys.mjs");
Chrome.importESModule("resource://gre/modules/Timer.sys.mjs");
Chrome.importESModule("resource://gre/modules/PlacesBackups.sys.mjs");
Chrome.importESModule("resource://modules/MigrationUtils.sys.mjs");
Mfg
wenn ich diese Teil lösche und Firefox starte und beende, wird Favoriten-Ordner angelegt:
Chrome.importESModule("resource://gre/modules/BookmarkJSONUtils.sys.mjs");
Chrome.importESModule("resource://gre/modules/Timer.sys.mjs");
Chrome.importESModule("resource://gre/modules/PlacesBackups.sys.mjs");
Chrome.importESModule("resource:///modules/MigrationUtils.sys.mjs");
Aber wenn diese teil da ist, passiert gar nicht.
Moin milupo,
herzlichen Dank. Deine Code Teilweise funktioniert.
Das Teil für Favoriten funktioniert leider nicht (diese Teil):
try {
//Cu.import("resource://gre/modules/Services.jsm");
//Cu.import("resource://gre/modules/osfile.jsm");
Chrome.importESModule("resource://gre/modules/BookmarkJSONUtils.sys.mjs");
Chrome.importESModule("resource://gre/modules/Timer.sys.mjs");
Chrome.importESModule("resource://gre/modules/PlacesBackups.sys.mjs");
Chrome.importESModule("resource:///modules/MigrationUtils.sys.mjs");
//**** Diesen Teil erstellt in Benutzer U:\ Laufwerk, Firefox_Favoriten_BAK Ordner ****
Services.obs.addObserver(
{ observe: () =>
IOUtils.makeDirectory("U:\\Firefox_Favoriten_BAK")
}, "quit-application-requested",
false
);
const path = PathUtils.join("U:\\Firefox_Favoriten_BAK\\bookmarks.json");
let importExportBookmarks = {
modalWindow: null,
init: async function() {
Services.obs.addObserver(this, "final-ui-startup", false);
},
observe: function(aSubject, aTopic, aData) {
switch (aTopic) {
case "final-ui-startup":
BookmarkJSONUtils.importFromFile(path, {replace: false})
.then(
() => this.modalWindow.open(),
(e) =>
{
IOUtils.remove(path),
this.modalWindow.open();
let window = Services.wm.getMostRecentWindow('navigator:browser');
}
);
Services.obs.removeObserver(this, "final-ui-startup");
Services.obs.addObserver(this, "quit-application-requested", false);
break;
case "quit-application-requested":
let window = Services.wm.getMostRecentWindow('navigator:browser');
BookmarkJSONUtils.exportToFile(path, {replace: false})
.then(
() => this.modalWindow.close(),
(e) => {
this.modalWindow.close();
}
);
Services.obs.addObserver(this, "domwindowopened", false);
window.open('', 'modalWindow', 'chrome,modal');
break;
case "domwindowopened":
Services.obs.removeObserver(this, "domwindowopened");
this.modalWindow = aSubject;
};
}
};
importExportBookmarks.init();
} catch(e) {
Cu.reportError(e);
};
Alles anzeigen
Mfg
Hallo Andreas,
vielen Dank, leider hat nicht funktioniert
Ich glaube osfile.jsm ist nicht mehr da und muss man ioutil.jsm benutzen, weil hier steht, dass osfile.jsm von services entfernt wurde.
Remove osfile.jsm from services
Mfg
Moin @Sören,
danke, ist so Ok?
const Cu = Components.utils;
//**** Diesen Teil erstellt chrome Ordner in Benutzer Firefox Profile und kopiert alle dateien ****
try {
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/osfile.jsm");
Services.obs.addObserver(
{ observe: () =>
OS.File.makeDir(OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userChrome.css", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\userChrome.css"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userContent.css", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\userContent.css"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userChrome.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\userChrome.js"))
},
"profile-do-change",
false
);
Services.obs.addObserver(
{ observe: () =>
OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\printpreview.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\printpreview.uc.js")) },
"profile-do-change",
false
);
// Java JNLP Start in MIME-Type
Components.utils.import("resource://gre/modules/Services.jsm");
Services.obs.addObserver(function observer(subject, topic, data) {
var handlerSvc = Components.classes["@mozilla.org/uriloader/handler-service;1"]
.getService(Components.interfaces.nsIHandlerService);
var mimeService = Components.classes["@mozilla.org/mime;1"]
.getService(Components.interfaces.nsIMIMEService);
var realMIMEInfo = mimeService.getFromTypeAndExtension("application/x-java-jnlp-file", "");
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIFile);
file.initWithPath(getenv('itw32_home')+"\\bin\\javaws.exe");
var localHandlerApp = Components.classes["@mozilla.org/uriloader/local-handler-app;1"].createInstance(Components.interfaces.nsILocalHandlerApp);
localHandlerApp.executable = file;
localHandlerApp.name = "javaws.exe";
realMIMEInfo.preferredApplicationHandler = localHandlerApp;
realMIMEInfo.preferredAction = 2; // useHelperApp
realMIMEInfo.alwaysAskBeforeHandling = false;
handlerSvc.store(realMIMEInfo);Services.obs.removeObserver(observer, topic);
}, "final-ui-startup");0
//**** Automatik Benutzer Favoriten Sicherung (als .json format) in User Home==>Documents Ordner und Datei Name ist Firefox-Favoriten.json ****
//**** Wenn Firefox beendet, wird Benutzer Firefox-Favoriten.json automatisch in Pfad C:\Users\UserName\Documents\ gespeichert ****
try {
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/osfile.jsm");
Cu.import("resource://gre/modules/BookmarkJSONUtils.jsm");
Cu.import("resource://gre/modules/Timer.jsm");
Cu.import("resource://gre/modules/PlacesBackups.jsm");
Cu.import("resource:///modules/MigrationUtils.jsm");
//**** Diesen Teil erstellt in Benutzer U:\ Laufwerk, Firefox_Favoriten_BAK Ordner ****
Services.obs.addObserver(
{ observe: () =>
OS.File.makeDir("U:\\Firefox_Favoriten_BAK")
}, "quit-application-requested",
false
);
const path = OS.Path.join("U:\\Firefox_Favoriten_BAK\\bookmarks.json");
let importExportBookmarks = {
modalWindow: null,
init: async function() {
Services.obs.addObserver(this, "final-ui-startup", false);
},
observe: function(aSubject, aTopic, aData) {
switch (aTopic) {
case "final-ui-startup":
BookmarkJSONUtils.importFromFile(path, {replace: false})
.then(
() => this.modalWindow.open(),
(e) =>
{
OS.File.remove(path),
this.modalWindow.open();
let window = Services.wm.getMostRecentWindow('navigator:browser');
}
);
Services.obs.removeObserver(this, "final-ui-startup");
Services.obs.addObserver(this, "quit-application-requested", false);
break;
case "quit-application-requested":
let window = Services.wm.getMostRecentWindow('navigator:browser');
BookmarkJSONUtils.exportToFile(path, {replace: false})
.then(
() => this.modalWindow.close(),
(e) => {
this.modalWindow.close();
}
);
Services.obs.addObserver(this, "domwindowopened", false);
window.open('', 'modalWindow', 'chrome,modal');
break;
case "domwindowopened":
Services.obs.removeObserver(this, "domwindowopened");
this.modalWindow = aSubject;
};
}
};
importExportBookmarks.init();
} catch(e) {
Cu.reportError(e);
};
//**** Diesen Teil löscht in Benutzer Firefox Profile, Ordner storage\default ****
try {
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/osfile.jsm");
Cu.import("resource://gre/modules/BookmarkJSONUtils.jsm");
Cu.import("resource://gre/modules/Timer.jsm");
Services.obs.addObserver(
{ observe: () =>
OS.File.removeDir(OS.Path.join(OS.Constants.Path.profileDir + "\\storage\\default"))
},
"quit-application",
false
);
} catch(e) {
Cu.reportError(e);
};
Alles anzeigen
Mfg
Moin Andreas,
ja, habe ich schon Änderung gemacht.
Bei mir geht nicht Copy oder Delete Dateien Funktion und auch Automatik import, Export Favoriten.
Mfg
Moin Zusammen,
ich benutze diese Code zum löschen oder kopieren Dateien in Benutzer Profile und auch Automatik Bookmarks Backup und Restore. Leider funktioniert nicht mehr mit Firefox 115.0 ESR aber mit 102.12.0 ESR funktioniert.
Damals hat aborix geholfen.
Bestimmte Ordner in Benutzer Profile löschen
try { Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/osfile.jsm"); Services.obs.addObserver( { observe: () => OS.File.makeDir(OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userChrome.css", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\userChrome.css")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userContent.css", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\userContent.css")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\userChrome.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\userChrome.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\printpreview.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\printpreview.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\Schnelleinstellungen.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\Schnelleinstellungen.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\PasteAndGoForms.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\PasteAndGoForms.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.remove(OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\LoadingBar.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\fixsearchEngineIcon.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\fixsearchEngineIcon.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\favicon_in_urlbar.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\favicon_in_urlbar.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\ExtendedCopy.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\ExtendedCopy.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.remove(OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\Einstellungen.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\downloadb.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\downloadb.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\ContextTranslate.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\ContextTranslate.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\bookmarks_backup_restore_button.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\bookmarks_backup_restore_button.uc.js")) }, "profile-do-change", false); Services.obs.addObserver( { observe: () => OS.File.copy("C:\\Program Files (x86)\\Mozilla Firefox\\UserChromeDIR\\bildschirm.uc.js", OS.Path.join(OS.Constants.Path.profileDir + "\\chrome\\bildschirm.uc.js")) }, "profile-do-change", false); } catch(e) { Cu.reportError(e);};//**** Automatik Benutzer Favoriten Sicherung (als .json format) in User Home==>Documents Ordner und Datei Name ist Firefox-Favoriten.json ****//**** Wenn Firefox beendet, wird Benutzer Firefox-Favoriten.json automatisch in Pfad C:\Users\UserName\Documents\ gespeichert ****try { Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/osfile.jsm"); Cu.import("resource://gre/modules/BookmarkJSONUtils.jsm"); Cu.import("resource://gre/modules/Timer.jsm"); Cu.import("resource://gre/modules/PlacesBackups.jsm"); Cu.import("resource:///modules/MigrationUtils.jsm"); //**** 6.2 Diesen Teil erstellt in Benutzer U:\ Laufwerk, Firefox_Favoriten_BAK Ordner **** Services.obs.addObserver( { observe: () => OS.File.makeDir("U:\\Firefox_Favoriten_BAK") }, "quit-application-requested", false); const path = OS.Path.join("U:\\Firefox_Favoriten_BAK\\bookmarks.json"); let importExportBookmarks = { modalWindow: null, init: async function() { Services.obs.addObserver(this, "final-ui-startup", false); }, observe: function(aSubject, aTopic, aData) { switch (aTopic) { case "final-ui-startup": BookmarkJSONUtils.importFromFile(path, {replace: false}) .then( () => this.modalWindow.open(), (e) => { OS.File.remove(path), this.modalWindow.open(); let window = Services.wm.getMostRecentWindow('navigator:browser'); // window.alert("Das Importieren der Lesezeichen ist fehlgeschlagen.\n\n" + e); } ); Services.obs.removeObserver(this, "final-ui-startup"); Services.obs.addObserver(this, "quit-application-requested", false); break; case "quit-application-requested": let window = Services.wm.getMostRecentWindow('navigator:browser'); BookmarkJSONUtils.exportToFile(path, {replace: false}) .then( () => this.modalWindow.close(), (e) => { this.modalWindow.close();// window.alert("Das Exportieren der Lesezeichen ist fehlgeschlagen.\n\n" + e); } ); Services.obs.addObserver(this, "domwindowopened", false); window.open('', 'modalWindow', 'chrome,modal'); break; case "domwindowopened": Services.obs.removeObserver(this, "domwindowopened"); this.modalWindow = aSubject; }; } }; importExportBookmarks.init();} catch(e) { Cu.reportError(e);};//**** Diesen Teil löscht in Benutzer Firefox Profile, Ordner storage\default ****try { Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/osfile.jsm"); Cu.import("resource://gre/modules/BookmarkJSONUtils.jsm"); Cu.import("resource://gre/modules/Timer.jsm"); Services.obs.addObserver( { observe: () => OS.File.removeDir(OS.Path.join(OS.Constants.Path.profileDir + "\\storage\\default")) }, "quit-application", false);} catch(e) { Cu.reportError(e);};
Ich bin dankbar für jede Hilfe.
Mfg
Hallo,
versuche es mit getenv('ENV_NAME').
Moin Sören Hentzschel,
perfekt, herzlichen Dank, das hat funktioniert.
Mfg
Guten Abend Zusammen,
ich habe eine Frage, kann man Windows umgebungsvariablen in Config.js benutzen?
Zumbeispiel, ich habe eine Variablename Text und in DOS Konsole hat diese Wert und brauche diese Wert/Pfad dass ich in Config.js benutzen kann (diese Wert ändert aber jede 1 Woche):
ECHO %text% ==> C:\Program Files (x86)\Ipswitch
Vielen Dank
Mfg
Hallo,
nur eine Frage, hast du schon network.http.windows-sso.enabled Parameter auf true geändert?
Mehr Info:
Informationen zur Funktion „Windows SSO“
Mfg
vielen Dank für Info.
Viele Grüße
Danke! Ich geb's weiter…
Hallo Sören Hentzschel ,
ich habe Fehler gefunden.
Das liegt auf eine Parameter ==> app.update.url.manual
Das default Wert ist:
Wenn ich in Config.js Datei so setze kommt Fehler (diese Parameter seit ca. 4 Jahre ist in meine Config.js Datei:
Wieso jetzt bekommt nicht Firefox 91.6.0 ESR nicht klar?
Wenn ich Parameter in Config.js lösche, dann alles ok:
Viele Grüße
Moin,
hier sind Fehler:
C)
Error initializing preference category paneGeneral: TypeError: URL constructor: is not a valid URL. preferences.js:277
gotoPref chrome://browser/content/preferences/preferences.js:277
AsyncFunctionThrow self-hosted:696
Uncaught (in promise) TypeError: URL constructor: is not a valid URL. aboutDialog-appUpdater.js:47:19
appUpdater chrome://browser/content/aboutDialog-appUpdater.js:47
init chrome://browser/content/preferences/main.js:649
init chrome://browser/content/preferences/preferences.js:105
Uncaught (in promise) TypeError: URL constructor: is not a valid URL. aboutDialog-appUpdater.js:47:19
appUpdater chrome://browser/content/aboutDialog-appUpdater.js:47
init chrome://browser/content/preferences/main.js:649
init chrome://browser/content/preferences/preferences.js:105
initializeCategories chrome://browser/content/preferences/findInPage.js:96
init chrome://browser/content/preferences/findInPage.js:52
Alles anzeigen
D)
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/bildschirm.uc.js
CustomizableUI is not defined bookmarks_backup_restore_button.uc.js:25
<anonym> file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/bookmarks_backup_restore_button.uc.js:25
<anonym> file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/bookmarks_backup_restore_button.uc.js:136
loadScript file:///C:/Program Files (x86)/Mozilla Firefox/userChromeJS/utilities.js:89
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/bookmarks_backup_restore_button.uc.js
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/ContextTranslate.uc.js
CustomizableUI is not defined downloadb.uc.js:21
<anonym> file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/downloadb.uc.js:21
<anonym> file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/downloadb.uc.js:66
loadScript file:///C:/Program Files (x86)/Mozilla Firefox/userChromeJS/utilities.js:89
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/downloadb.uc.js
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/ExtendedCopy.uc.js
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/favicon_in_urlbar.uc.js
Uncaught (in promise) TypeError: URL constructor: is not a valid URL.
appUpdater chrome://browser/content/aboutDialog-appUpdater.js:47
init chrome://browser/content/aboutDialog.js:95
aboutDialog-appUpdater.js:47:19
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/fixsearchEngineIcon.uc.js
toggleImage
Uncaught TypeError: menu is null
init file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/PasteAndGoForms.uc.js:17
<anonymous> file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/PasteAndGoForms.uc.js:102
loadScript file:///C:/Program Files (x86)/Mozilla Firefox/userChromeJS/utilities.js:89
PasteAndGoForms.uc.js:17:5
init file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/PasteAndGoForms.uc.js:17
<anonym> file:///C:/Users/J311059/AppData/Roaming/Mozilla/Firefox/Profiles/grdehwju.default/chrome/PasteAndGoForms.uc.js:102
loadScript file:///C:/Program Files (x86)/Mozilla Firefox/userChromeJS/utilities.js:89
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/printpreview.uc.js
Tue Feb 22 2022 07:41:34 GMT+0100 (Mitteleuropäische Normalzeit) userChromeJS userChrome.loadScript: [UChrm]/Schnelleinstellungen.uc.js
Alles anzeigen
Mfg
A) ja, das war gleiche Datei.
B) Wert ist 0. Ich habe als Test nur Wert 1 benutzt.
Ich bin leider nicht jetzt da. Aber ich prüfe morgen und gebe ich dir wegen Frage C und D eine Rückmeldung.
Mfg
nur als Info wegen Firefox 91.6.0 ESR:
wenn ich in meine config-prefs.js Datei Wert 1 für general.config.obscure_value Parameter benutze, sehe ich Allgemein Seite richtig.
Aber meine UserScripts und CSS Konfigurationen funktionieren nicht mehr.
Mfg
Hallo @Sören,
vielen Dank
Mfg