- Firefox-Version
- Firefox 136 Nightly
- Betriebssystem
- Windows 10
Moin, u.a. Code, abgelegt im CSSShadowOrdner, wird nicht ausgeführt. Die Tabs kleben am linken Seitenrand. Was ist verkehrt?
CSS
/* Tabs mittig */
#tabbrowser-tabs:not([overflow], [orient="vertical"]) .tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) {
margin-left: auto !important;
}
#tabbrowser-tabs:not([overflow], [orient="vertical"]) #tabbrowser-arrowscrollbox-periphery {
margin-right: auto !important;
}
Hier zur Sicherheit der Inhalt der userChromeShadow.css
Code
@import url("file:c:\Users\XXXX\AppData\Roaming\Mozilla\Firefox\Profiles\JGmdLxo1.Profil 1\chrome\CSSShadow\Tabs_mittig.css");
und der Inhalt der userChromeShadow.uc.js
Code
// userChromeShadow.uc.js by aborix
// 28.07.2022 FF104+ Fix: using PathUtils.join (Sören Hentzschel)
(async function() {
if (location != 'chrome://browser/content/browser.xhtml') return;
try {
let path = PathUtils.join(PathUtils.profileDir, 'chrome', 'userChromeShadow.css');
let cssIn = await IOUtils.readUTF8(path);
let sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
let uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(cssIn));
sss.loadAndRegisterSheet(uri, sss.AUTHOR_SHEET);
} catch(e) {
console.log("UserChromeShadow-Error: " + e.name + ': ' + e.message );
};
})();
Alles anzeigen
Ein weiteres Problem habe ich damit! Das Profil ist neu erstellt und die Profilbezeichnung lässt sich leider im Profilmanager nicht ändern. Der Name des Profils lautet JGmdLxo1.Profil 1. Ich habe das Gefühl, dass die Leerstelle im Namen nicht gemocht wird.
2. Fragen:
Ist der Code fehlerhaft?
Wie kann man ein Profil umbenennen?
Vielen Dank für eure Hinweise!