fix(firefox): youtube profile now works
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
# nativeMessagingHosts = [pkgs.pywalfox-native];
|
# nativeMessagingHosts = [pkgs.pywalfox-native];
|
||||||
|
|
||||||
profiles = {
|
profiles = {
|
||||||
|
youtube = import ./profiles/youtube.nix {inherit pkgs myConfig;};
|
||||||
hakase = {
|
hakase = {
|
||||||
search.force = true;
|
search.force = true;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
@@ -80,8 +81,6 @@
|
|||||||
"network.trr.mode" = 2; # Use DoH with system fallback
|
"network.trr.mode" = 2; # Use DoH with system fallback
|
||||||
"network.trr.uri" = "https://dns.quad9.net/dns-query";
|
"network.trr.uri" = "https://dns.quad9.net/dns-query";
|
||||||
};
|
};
|
||||||
|
|
||||||
youtube = import ./profiles/youtube.nix {inherit pkgs myConfig;};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
name = "YouTube";
|
name = "YouTube";
|
||||||
search.force = true;
|
search.force = true;
|
||||||
search.default = "ddg";
|
search.default = "ddg";
|
||||||
|
extensions.force = true;
|
||||||
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
ublock-origin
|
ublock-origin
|
||||||
bitwarden
|
bitwarden
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
"browser.newtabpage.activity-stream.system.showSponsored" = false;
|
"browser.newtabpage.activity-stream.system.showSponsored" = false;
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
"extensions.autoDisableScopes" = 0; # Enable extensions by default
|
||||||
|
|
||||||
# --- Homepage & Navigation ---
|
# --- Homepage & Navigation ---
|
||||||
"browser.startup.homepage" = "https://youtube.com";
|
"browser.startup.homepage" = "https://youtube.com";
|
||||||
@@ -58,6 +60,61 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
userChrome = ''
|
userChrome = ''
|
||||||
#nav-bar { visibility: collapse !important; }
|
/* --- 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;
|
||||||
|
opacity: 0 !important;
|
||||||
|
transition: transform 0.2s ease, opacity 0.2s ease !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;
|
||||||
|
opacity: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Hide specific bars --- */
|
||||||
|
|
||||||
|
/* Hide Navigation Bar (Address Bar) COMPLETELY */
|
||||||
|
#nav-bar {
|
||||||
|
visibility: collapse !important;
|
||||||
|
height: 0px !important;
|
||||||
|
min-height: 0px !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !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;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user