more firefox changes

This commit is contained in:
Sean Kovacs 2025-12-02 16:03:32 -05:00
commit 7e9ff827f8
Signed by: sckova
GPG key ID: 00F325187C68651A
4 changed files with 91 additions and 20 deletions

View file

@ -4,7 +4,7 @@
.tabbrowser-tab[selected="true"] .tab-background { .tabbrowser-tab[selected="true"] .tab-background {
border: 1px solid #313244 !important; border: 1px solid #313244 !important;
} }
--toolbar-bgcolor: rgb(30, 30, 46) !important; --toolbar-bgcolor: rgb(24, 24, 37) !important;
--toolbox-non-lwt-bgcolor: rgb(17, 17, 27) !important; --toolbox-non-lwt-bgcolor: rgb(17, 17, 27) !important;
--toolbox-non-lwt-textcolor: rgb(205, 214, 244) !important; --toolbox-non-lwt-textcolor: rgb(205, 214, 244) !important;
--input-bgcolor: rgb(24, 24, 37) !important; --input-bgcolor: rgb(24, 24, 37) !important;
@ -18,36 +18,36 @@
.tab-background[multiselected] { .tab-background[multiselected] {
--focus-outline-color: rgb(49, 50, 68); --focus-outline-color: rgb(49, 50, 68);
} }
--arrowpanel-background: rgb(30, 30, 46) !important; --arrowpanel-background: rgb(49, 50, 68) !important;
--arrowpanel-color: rgb(205, 214, 244) !important; --arrowpanel-color: rgb(205, 214, 244) !important;
--toolbarbutton-active-background: rgb(108, 112, 134) !important; --toolbarbutton-active-background: rgb(108, 112, 134) !important;
&:where([tabsintitlebar]) { &:where([tabsintitlebar]) {
--toolbox-non-lwt-bgcolor-inactive: rgb(17, 17, 27) !important; --toolbox-non-lwt-bgcolor-inactive: rgb(17, 17, 27) !important;
} }
--toolbarbutton-icon-fill-attention: rgb(249, 226, 175) !important; --toolbarbutton-icon-fill-attention: rgb(205, 214, 244) !important;
--toolbarbutton-icon-fill: rgb(205, 214, 244) !important; --toolbarbutton-icon-fill: rgb(205, 214, 244) !important;
--arrowpanel-border-color: rgb(49, 50, 68) !important; --arrowpanel-border-color: rgb(49, 50, 68) !important;
--urlbarView-highlight-color: rgb(205, 214, 244) !important; --urlbarView-highlight-color: rgb(205, 214, 244) !important;
--urlbarView-highlight-background: rgb(108, 112, 134) !important; --urlbarView-highlight-background: rgb(108, 112, 134) !important;
#tabbrowser-tabs { #tabbrowser-tabs {
--tab-loading-fill: rgb(249, 226, 175) !important; --tab-loading-fill: rgb(205, 214, 244) !important;
} }
--tab-selected-bgcolor: rgb(30, 30, 46) !important; --tab-selected-bgcolor: rgb(30, 30, 46) !important;
--tab-selected-textcolor: rgb(205, 214, 244) !important; --tab-selected-textcolor: rgb(205, 214, 244) !important;
--chrome-content-separator-color: rgb(30, 30, 46) !important; --chrome-content-separator-color: rgb(49, 50, 68) !important;
--toolbar-field-focus-border-color: rgb(49, 50, 68) !important; --toolbar-field-focus-border-color: rgb(49, 50, 68) !important;
--input-border-color: rgb(49, 50, 68) !important; --input-border-color: rgb(49, 50, 68) !important;
--toolbar-field-border-color: var(--input-border-color) !important; --toolbar-field-border-color: var(--input-border-color) !important;
--toolbar-field-focus-background-color: rgb(30, 30, 46) !important; --toolbar-field-focus-background-color: rgb(30, 30, 46) !important;
#urlbar-input:focus::selection, #urlbar-input:focus::selection,
.searchbar-textbox:focus::selection { .searchbar-textbox:focus::selection {
color: rgb(30, 30, 46); color: rgb(49, 50, 68);
} }
#urlbar-input:focus::selection, #urlbar-input:focus::selection,
.searchbar-textbox:focus::selection { .searchbar-textbox:focus::selection {
background-color: rgb(249, 226, 175); background-color: rgb(205, 214, 244);
} }
--toolbarseparator-color: rgb(249, 226, 175) !important; --toolbarseparator-color: rgb(205, 214, 244) !important;
} }
} }
@ -57,7 +57,7 @@
.tabbrowser-tab[selected="true"] .tab-background { .tabbrowser-tab[selected="true"] .tab-background {
border: 1px solid #ccd0da !important; border: 1px solid #ccd0da !important;
} }
--toolbar-bgcolor: rgb(239, 241, 245) !important; --toolbar-bgcolor: rgb(230, 233, 239) !important;
--toolbox-non-lwt-bgcolor: rgb(220, 224, 232) !important; --toolbox-non-lwt-bgcolor: rgb(220, 224, 232) !important;
--toolbox-non-lwt-textcolor: rgb(76, 79, 105) !important; --toolbox-non-lwt-textcolor: rgb(76, 79, 105) !important;
--input-bgcolor: rgb(230, 233, 239) !important; --input-bgcolor: rgb(230, 233, 239) !important;
@ -65,11 +65,11 @@
--input-color: rgb(76, 79, 105) !important; --input-color: rgb(76, 79, 105) !important;
--toolbar-field-color: var(--input-color) !important; --toolbar-field-color: var(--input-color) !important;
.tab-background[selected]:not([multiselected]) { .tab-background[selected]:not([multiselected]) {
outline: 1px solid rgb(223, 142, 29); outline: 1px solid rgb(76, 79, 105);
outline-offset: -1px; outline-offset: -1px;
} }
.tab-background[multiselected] { .tab-background[multiselected] {
--focus-outline-color: rgb(223, 142, 29); --focus-outline-color: rgb(76, 79, 105);
} }
--arrowpanel-background: rgb(239, 241, 245) !important; --arrowpanel-background: rgb(239, 241, 245) !important;
--arrowpanel-color: rgb(76, 79, 105) !important; --arrowpanel-color: rgb(76, 79, 105) !important;
@ -77,29 +77,29 @@
&:where([tabsintitlebar]) { &:where([tabsintitlebar]) {
--toolbox-non-lwt-bgcolor-inactive: rgb(220, 224, 232) !important; --toolbox-non-lwt-bgcolor-inactive: rgb(220, 224, 232) !important;
} }
--toolbarbutton-icon-fill-attention: rgb(223, 142, 29) !important; --toolbarbutton-icon-fill-attention: rgb(76, 79, 105) !important;
--toolbarbutton-icon-fill: rgb(76, 79, 105) !important; --toolbarbutton-icon-fill: rgb(76, 79, 105) !important;
--arrowpanel-border-color: rgb(223, 142, 29) !important; --arrowpanel-border-color: rgb(76, 79, 105) !important;
--urlbarView-highlight-color: rgb(76, 79, 105) !important; --urlbarView-highlight-color: rgb(76, 79, 105) !important;
--urlbarView-highlight-background: rgb(156, 160, 176) !important; --urlbarView-highlight-background: rgb(156, 160, 176) !important;
#tabbrowser-tabs { #tabbrowser-tabs {
--tab-loading-fill: rgb(223, 142, 29) !important; --tab-loading-fill: rgb(76, 79, 105) !important;
} }
--tab-selected-bgcolor: rgb(239, 241, 245) !important; --tab-selected-bgcolor: rgb(239, 241, 245) !important;
--tab-selected-textcolor: rgb(76, 79, 105) !important; --tab-selected-textcolor: rgb(76, 79, 105) !important;
--chrome-content-separator-color: rgb(239, 241, 245) !important; --chrome-content-separator-color: rgb(239, 241, 245) !important;
--toolbar-field-focus-border-color: rgb(223, 142, 29) !important; --toolbar-field-focus-border-color: rgb(76, 79, 105) !important;
--input-border-color: rgb(239, 241, 245) !important; --input-border-color: rgb(239, 241, 245) !important;
--toolbar-field-border-color: var(--input-border-color) !important; --toolbar-field-border-color: var(--input-border-color) !important;
--toolbar-field-focus-background-color: rgb(239, 241, 245) !important; --toolbar-field-focus-background-color: rgb(239, 241, 245) !important;
#urlbar-input:focus::selection, #urlbar-input:focus::selection,
.searchbar-textbox:focus::selection { .searchbar-textbox:focus::selection {
color: rgb(239, 241, 245); color: rgb(204, 208, 218);
} }
#urlbar-input:focus::selection, #urlbar-input:focus::selection,
.searchbar-textbox:focus::selection { .searchbar-textbox:focus::selection {
background-color: rgb(223, 142, 29); background-color: rgb(76, 79, 105);
} }
--toolbarseparator-color: rgb(223, 142, 29) !important; --toolbarseparator-color: rgb(76, 79, 105) !important;
} }
} }

View file

@ -0,0 +1,7 @@
#tracking-protection-icon-container {
display: none;
}
.bookmark-item[container] {
list-style-image: url("chrome://global/skin/dirListing/folder.png") !important;
}

View file

@ -0,0 +1,2 @@
@import "./theme/colors.css";
@import "./theme/hide.css";

View file

@ -1,11 +1,17 @@
# https://discourse.nixos.org/t/combining-best-of-system-firefox-and-home-manager-firefox-settings/37721 # https://discourse.nixos.org/t/combining-best-of-system-firefox-and-home-manager-firefox-settings/37721
{ pkgs, ... }: # https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
{ pkgs, config, ... }:
{ {
home.sessionVariables = rec { home.sessionVariables = rec {
MOZ_GMP_PATH = "${pkgs.widevine-firefox}/gmp-widevinecdm/system-installed"; MOZ_GMP_PATH = "${pkgs.widevine-firefox}/gmp-widevinecdm/system-installed";
}; };
home.file.".mozilla/firefox/default/chrome" = {
source = ./chrome;
force = true;
};
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox.override { package = pkgs.firefox.override {
@ -13,12 +19,68 @@
pkgs.firefoxpwa pkgs.firefoxpwa
]; ];
}; };
policies = {
BlockAboutConfig = true;
DefaultDownloadDirectory = "\${home}/Downloads";
# Check about:support for extension/add-on ID strings.
# Valid strings for installation_mode are "allowed", "blocked",
# "force_installed" and "normal_installed".
ExtensionSettings = {
"*" = {
"installation_mode" = "blocked";
};
"uBlock0@raymondhill.net" = {
installation_mode = "allowed";
};
"gdpr@cavi.au.dk" = {
installation_mode = "allowed";
};
"{5cce4ab5-3d47-41b9-af5e-8203eea05245}" = {
installation_mode = "allowed";
};
"plasma-browser-integration@kde.org" = {
installation_mode = "allowed";
};
"jid1-MnnxcxisBPnSXQ@jetpack" = {
installation_mode = "allowed";
};
"firefoxpwa@filips.si" = {
installation_mode = "allowed";
};
"sponsorBlocker@ajay.app" = {
installation_mode = "allowed";
};
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = {
installation_mode = "allowed";
};
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}" = {
installation_mode = "allowed";
};
};
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = false;
DisableAccounts = false;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "newtab"; # alternatives: "always" or "newtab"
DisplayMenuBar = "always"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate"
};
profiles = { profiles = {
default = { default = {
id = 0; id = 0;
name = "default"; name = "default";
isDefault = true; isDefault = true;
userChrome = ./userChrome.css;
extensions = { extensions = {
force = true; force = true;
packages = with pkgs.nur.repos.rycee.firefox-addons; [ packages = with pkgs.nur.repos.rycee.firefox-addons; [