- Firefox-Version
- Firefox v102
- Betriebssystem
- Windows 10
Das Skript erkennt automatisch den Anwendungstyp (Release, Beta, ESR...), die Version und die Bitrate von Firefox
JavaScript
// AppAuto_menubar.uc.js
// automatically detected app name and version for Firefox menu bar
(async id => {
var ucs = {
esr: "ESR",
beta: "Beta",
release: "Release",
nightly: "Nightly",
aurora: "DevEdition",
default: "Unbraindead", // ?
};
var arr = [
Services.appinfo.name,
"v" + AppConstants.MOZ_APP_VERSION_DISPLAY,
`(${Services.appinfo.is64Bit ? 64 : 32}-bit)`
];
var uc = ucs[AppConstants.MOZ_UPDATE_CHANNEL];
uc && arr.splice(1, 0, uc);
document.getElementById(id).setAttribute("version", arr.join(" "));
})("main-menubar");
Alles anzeigen
In Verbindung mit css anwenden
CSS
/* AppAuto_menubar.css */
/* automatically detected app name and version for Firefox menu bar */
#main-menubar::after {
display: inline-flex;
content: attr(version);
flex-direction: row;
align-items: center;
padding-inline-start: 16px;
font-weight: bold !important;
color: rgba(90%, 90%, 90%, .9) !important;
}
#main-menubar {
font-size: 15px !important;
}
Alles anzeigen