feat(firefox): generalize youtube profile into modular web-app profile

- Renamed profiles/youtube.nix to profiles/web-app.nix.

- Refactored to accept id, name, and url as arguments.

- Added settings to force homepage on startup and new tabs.

- Disabled session restore and undo-close-tab for web-app profiles.
This commit is contained in:
kenji
2026-01-05 14:31:20 -06:00
parent e17b21ab69
commit ae7d017d2b
3 changed files with 162 additions and 45 deletions
+27 -44
View File
@@ -60,61 +60,44 @@
};
userChrome = ''
/* --- Floating Autohide Toolbox (Tabs Only) --- */
/* Take toolbox out of the document flow so web content is 100% height */
#navigator-toolbox {
position: fixed !important;
top: 0;
left: 0;
width: 100%;
z-index: 9999 !important;
background-color: var(--toolbar-bgcolor, #1c1b22) !important;
/* Start hidden */
transform: translateY(-100%) !important;
/* Hide the Navigation Bar by default */
#nav-bar {
height: 0px !important;
min-height: 0px !important;
overflow: hidden !important;
opacity: 0 !important;
transition: transform 0.2s ease, opacity 0.2s ease !important;
transition: height 0.3s ease, opacity 0.3s ease !important;
z-index: 100 !important;
}
/* Trigger zone */
#navigator-toolbox::after {
content: "";
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 10px;
z-index: 10000 !important;
}
/* Reveal when hovering */
#navigator-toolbox:hover {
transform: translateY(0) !important;
/* Show the Navigation Bar on hover over the navigator toolbox */
#navigator-toolbox:hover #nav-bar,
#nav-bar:focus-within {
height: 40px !important; /* Adjust based on your density settings */
min-height: 40px !important;
opacity: 1 !important;
}
/* --- Hide specific bars --- */
/* Hide Navigation Bar (Address Bar) COMPLETELY */
#nav-bar {
visibility: collapse !important;
/* Auto-hide Tabs Toolbar */
#TabsToolbar {
height: 0px !important;
min-height: 0px !important;
padding: 0 !important;
margin: 0 !important;
overflow: hidden !important;
opacity: 0 !important;
transition: height 0.3s ease, opacity 0.3s ease !important;
z-index: 100 !important;
}
/* Show Tabs Toolbar on hover over the navigator toolbox */
#navigator-toolbox:hover #TabsToolbar {
height: 30px !important; /* Adjust based on your tab height preference */
min-height: 30px !important;
opacity: 1 !important;
}
/* Hide Bookmarks Toolbar */
#PersonalToolbar { visibility: collapse !important; }
/* Hide Titlebar */
#titlebar { appearance: none !important; }
/* Ensure TabsToolbar looks okay on its own */
#TabsToolbar {
border: none !important;
background: transparent !important;
#PersonalToolbar {
visibility: collapse !important;
}
'';
}