Sind das nur Schreibfehler?
userChrom.js
.uc.jc
wenn dann:
userChrome.js und uc.js
Sind das nur Schreibfehler?
userChrom.js
.uc.jc
wenn dann:
userChrome.js und uc.js
Sorry, das waren Schreibfehler.
Sind korrekt benannt.
Sind korrekt benannt.
Ok.
Teste bitte mal dieses Restart-Skript:
// Restart_Firefox.uc.js
// RestartFirefoxButtonM.uc.js
// v. 0.8
// Source file https://www.camp-firefox.de/forum/thema/126132/?postID=1093563#post1093563
// Source file https://www.camp-firefox.de/forum/thema/139338/?postID=1271880#post1271880
// Linksklick if (event.button == 0)
// Mittelklick if (event.button == 1)
// Rechtsklick if (event.button == 2)
(function() {
if (location.href !== 'chrome://browser/content/browser.xhtml') return;
try {
CustomizableUI.createWidget({
id: 'restart-button2a',
type: 'custom',
defaultArea: CustomizableUI.AREA_NAVBAR,
onBuild: function(aDocument) {
var toolbaritem = aDocument.createXULElement('toolbarbutton');
let props = {
id: 'restart-button2a',
class: 'toolbarbutton-1 chromeclass-toolbar-additional',
label: 'Neustart',
tooltiptext: 'Neustart (inkl. SkriptCache Löschen)',
// Hier wird die Hintergrundfarbe und die Iconfarbe direkt gesetzt
//style: 'background-color: #FF5733; color: white;'
//style: 'color: #f60000;',
};
for (let p in props)
toolbaritem.setAttribute(p, props[p]);
// Pfad zum Profilordner
let ProfilePath = Services.dirsvc.get("ProfD", Ci.nsIFile).path.replace(/\\/g, "/");
// Pfad in den entsprechenden Unterordner
let IconPath = '/chrome/icons/';
// Name & Dateiendung des anzuzeigenden Symbols!
let ButtonIcon = "reload.pn";
// Erstelle ein img-Element, um zu überprüfen, ob die Grafik geladen werden kann
let img = new Image();
img.src = "file:" + ProfilePath + IconPath + ButtonIcon;
img.onload = function() {
// Wenn die Grafik geladen werden kann, setze das listStyleImage
toolbaritem.style.listStyleImage = 'url("' + ("file:" + ProfilePath + IconPath + ButtonIcon) + '")';
// toolbaritem.style.fill = 'red'; // Hier wird die Iconfarbe direkt gesetzt
};
img.onerror = function() {
// Wenn die Grafik nicht geladen werden kann, verwende das Fallback-Icon
toolbaritem.style.listStyleImage = 'url("chrome://global/skin/icons/reload.svg")';
toolbaritem.style.fill = 'red'; // Hier wird die Iconfarbe direkt gesetzt
};
return toolbaritem;
}
});
} catch(e) { };
document.getElementById('restart-button2a').addEventListener('click', event => {
// rechte Maus Neustart
if (event.button == 2) {
Services.startup.quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit);
}
// linke Maus Neustart mit Löschung des Start-Caches
if (event.button == 0) {
event.preventDefault();
Services.appinfo.invalidateCachesOnRestart();
Services.startup.quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit);
}
// Mittelklick
if (event.button == 1) {
// event.preventDefault();
// Services.appinfo.invalidateCachesOnRestart();
// Services.startup.quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit);
openTrustedLinkIn("about:config", "tab");
}
});
let sss = Components.classes["@mozilla.org/content/style-sheet-service;1"].getService(Components.interfaces.nsIStyleSheetService);
let uri = Services.io.newURI("data:text/css;charset=utf-8," + encodeURIComponent(`
#restart-button2a.toolbarbutton-1.chromeclass-toolbar-additional image.toolbarbutton-icon {
width: 32px !important;
height: 32px !important;
}
`), null, null);
sss.loadAndRegisterSheet(uri, sss.AUTHOR_SHEET);
})();
Alles anzeigen
Sollte das auch nicht funktionieren, dann passt etwas an deinen Vorbereitungen nicht.
So sieht das mit dem Skript aus:

Ich habe jetzt alles nochmal komplett neu gemacht. Firefox neu runtergeladen und portabel gemacht, mein Profil komplett gelöscht und neu angelegt und die Vorbereitungen gemacht.
Das Reset-Script funktioniert und auch MultiRowTabs.uc.js tut wieder wie gewohnt.
Die einzige Änderung zu vorher war, dass ich das Profil neu erstellt habe.
Verstehe ich zwar nicht, aber schön, dass es geht.
Vielen Dank für die Tipps ![]()
Eventuell hättest du noch ein funktionierendes Script für die Buttons Minimieren, Maximieren und Schließen?
Das vorhandene funktioniert nämlich nach wie vor nicht.
aber schön, dass es geht.
![]()
![]()
ein funktionierendes Script für die Buttons Minimieren, Maximieren und Schließen?
Das nutze ich nicht, von daher kann ich dir dabei leider nicht helfen.
Erstell bitte dafür mal einen neuen eigenen Thread, evtl. kann dir ein anderer User dann helfen.
funktionierendes Script für die Buttons Minimieren, Maximieren und Schließen?
Stell deines doch mal in einem neuen Thread rein, vielleicht kann man es ja reparieren.
Ich kann kein Deutsch, daher wurden diese Zeilen durch KI übersetzt. Die englische Version folgt danach.
============================
Hallo zusammen, ich bin der Entwickler des spekulativen Multi-Row-Tabs-Skripts MultiTabRows@Merci.chao.uc.js.
Zu den Zweifeln, die einige Leute oben erwähnt haben, hier die Gründe:
Ich bin nur zufällig auf diesen Diskussions-Thread gestoßen, und da ich auch kein Deutsch kann, entschuldige ich mich dafür, dass ich hier keine Antworten geben werde. Für Fragen und Diskussionen seid ihr herzlich eingeladen, mein Repository zu besuchen: https://github.com/Merci-chao/userChrome.js
============================
Hello folks, I'm the developer of the specious multi-row tabs script MultiTabRows@Merci.chao.uc.js.
As for the doubts some folks mentioned above, here are the reasons:
I just accidentally found this discussion thread, and I also don't know any German, so I'm sorry that I'm not going to have replies here. For questions and discussions, you are welcome to visit my repository: https://github.com/Merci-chao/userChrome.js/
こんにちは Merci chao
ここに投稿してくれて、本当にありがとう。
あなたの説明は、とてもわかりやすく、納得できるものです。ありがとうございます。
私の英語は完璧ではないし、日本語は言うまでもなく完璧ではないので、私も DeepL を使って翻訳しました。
ですから、今後、あなたに質問があるときは、あなたの
リポジトリを利用させていただきます。
Hello Merci chao
I think it's great that you got in touch here.
Your explanation is clear and understandable. Thank you.
And since my English, and especially my Japanese, are not perfect, I also used DeepL for translation.
So if I have any questions for you in the future, I will use your
repository.
Alles anzeigenこんにちは Merci chao
ここに投稿してくれて、本当にありがとう。
あなたの説明は、とてもわかりやすく、納得できるものです。ありがとうございます。私の英語は完璧ではないし、日本語は言うまでもなく完璧ではないので、私も DeepL を使って翻訳しました。
ですから、今後、あなたに質問があるときは、あなたの
リポジトリを利用させていただきます。
Hello Merci chao
I think it's great that you got in touch here.
Your explanation is clear and understandable. Thank you.And since my English, and especially my Japanese, are not perfect, I also used DeepL for translation.
So if I have any questions for you in the future, I will use your
repository.
Um... I'm not Japanese, and my native language is not English also...
Sorry for disappointing you. XD
I created the Japanese version of the page just because I know some Japanese and the Japanese folks generally not good at English, so, yeah, AI is great.
... I'm not Japanese, and my native language is not English also...
![]()
Okay, what is your native language, if I may ask?
Okay, what is your native language, if I may ask?
I speak Cantonese and write in Traditional Chinese. I come from Macau, which shares the same culture and a very similar historical background with Hong Kong.
Merci chao 哦,謝謝你提供這資訊。
AI翻譯器真是太棒了。![]()
I hope that's roughly correct?
Merci chao 哦,謝謝你提供這資訊。
AI翻譯器真是太棒了。
I hope that's roughly correct?
Yup, it's very clear and good to understand.
Yup, it's very clear and good to understand.
Fine. ![]()