Dark Reader: Disable featured site settings.

This commit is contained in:
Dmitry Voronin 2024-11-08 05:22:44 +03:00
parent 0c58d1f5c5
commit 40969c26f9
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -184,46 +184,48 @@ in
}; };
# REF: https://mozilla.github.io/policy-templates/ # REF: https://mozilla.github.io/policy-templates/
policies = { policies = {
AppAutoUpdate = false; AppAutoUpdate = false;
BackgroundAppUpdate = false; BackgroundAppUpdate = false;
DisableBuiltinPDFViewer = true; DisableBuiltinPDFViewer = true;
DisableFirefoxAccounts = true; DisableFirefoxAccounts = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
DisableFormHistory = true; DisableFormHistory = true;
DisableMasterPasswordCreation = true; DisableMasterPasswordCreation = true;
DisablePasswordReveal = true; DisablePasswordReveal = true;
DisablePocket = true; DisablePocket = true;
DisableProfileImport = true; DisableProfileImport = true;
DisableSetDesktopBackground = true; DisableSetDesktopBackground = true;
DisableTelemetry = true; DisableTelemetry = true;
DontCheckDefaultBrowser = true; DontCheckDefaultBrowser = true;
ExtensionUpdate = true; ExtensionUpdate = true;
ManagedBookmarks = [ { toplevel_name = "Pin"; } ] ++ bookmarks; ManagedBookmarks = [ { toplevel_name = "Pin"; } ] ++ bookmarks;
NoDefaultBookmarks = true; NoDefaultBookmarks = true;
OfferToSaveLogins = false; OfferToSaveLogins = false;
PasswordManagerEnabled = false; PasswordManagerEnabled = false;
Preferences = builtins.foldl' (acc: pref: acc // pref) { } prefs; Preferences = builtins.foldl' (acc: pref: acc // pref) { } prefs;
PromptForDownloadLocation = false; PromptForDownloadLocation = false;
SearchSuggestEnabled = false; SearchSuggestEnabled = false;
ShowHomeButton = false; ShowHomeButton = false;
StartDownloadsInTempDirectory = false; StartDownloadsInTempDirectory = false;
UseSystemPrintDialog = true; UseSystemPrintDialog = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value = true; Value = true;
Locked = false; Locked = false;
Cryptomining = true; Cryptomining = true;
Fingerprinting = true; Fingerprinting = true;
EmailTracking = true; EmailTracking = true;
Exceptions = [ "https://example.com" ]; Exceptions = [
"https://example.com"
];
}; };
EncryptedMediaExtensions = { EncryptedMediaExtensions = {
Enabled = true; Enabled = true;
Locked = true; Locked = true;
}; };
ExtensionSettings = { ExtensionSettings = {
# Block extension installation outside of this config. # Block extension installation outside of this config.
"*" = { "*" = {
install_sources = [ "*" ]; install_sources = [ "*" ];
installation_mode = "blocked"; installation_mode = "blocked";
}; };
} // builtins.foldl' (acc: ext: acc // ext) { } extensions; } // builtins.foldl' (acc: ext: acc // ext) { } extensions;
@ -265,51 +267,53 @@ in
]; ];
}; };
"addon@darkreader.org" = { "addon@darkreader.org" = {
enabled = true; enabled = true;
enabledByDefault = true; enabledByDefault = true;
changeBrowserTheme = false; changeBrowserTheme = false;
detectDarkTheme = false; detectDarkTheme = false;
enableContextMenus = false; enableContextMenus = false;
enableForPDF = true; enableForPDF = false;
enableForProtectedPages = false; enableForProtectedPages = false;
fetchNews = false; fetchNews = false;
previewNewDesign = true; previewNewDesign = true;
syncSettings = true; syncSettings = true;
syncSitesFixes = true; syncSitesFixes = false;
disabledFor = [ "home.voronind.com" ]; disabledFor = [
"home.voronind.com"
];
theme = { theme = {
mode = 1; brightness = 100;
brightness = 100; contrast = 100;
contrast = 100; darkColorScheme = "Default";
grayscale = 0; darkSchemeBackgroundColor = "#${config.module.style.color.bg.dark}";
sepia = 0; darkSchemeTextColor = "#${config.module.style.color.fg.light}";
useFont = false; engine = "dynamicTheme"; # dynamicTheme, cssFilter or svgFilter.
fontFamily = config.module.style.font.sansSerif.name; fontFamily = config.module.style.font.sansSerif.name;
textStroke = 0; grayscale = 0;
engine = "dynamicTheme"; # dynamicTheme, cssFilter or svgFilter. immediateModify = true;
stylesheet = ""; lightColorScheme = "Default";
darkSchemeBackgroundColor = "#${config.module.style.color.bg.dark}";
darkSchemeTextColor = "#${config.module.style.color.fg.light}";
lightSchemeBackgroundColor = "#${config.module.style.color.bg.light}"; lightSchemeBackgroundColor = "#${config.module.style.color.bg.light}";
lightSchemeTextColor = "#${config.module.style.color.fg.dark}"; lightSchemeTextColor = "#${config.module.style.color.fg.dark}";
scrollbarColor = "#${config.module.style.color.neutral}"; mode = 1;
selectionColor = "#${config.module.style.color.selection}"; scrollbarColor = "#${config.module.style.color.neutral}";
styleSystemControls = true; selectionColor = "#${config.module.style.color.selection}";
lightColorScheme = "Default"; sepia = 0;
darkColorScheme = "Default"; styleSystemControls = true;
immediateModify = true; stylesheet = "";
textStroke = 0;
useFont = false;
}; };
automation = { automation = {
enabled = false; enabled = false;
mode = "";
behavior = "OnOff"; behavior = "OnOff";
mode = "";
}; };
time = { time = {
activation = "18:00"; activation = "18:00";
deactivation = "9:00"; deactivation = "9:00";
}; };
location = { location = {
latitude = null; latitude = null;
longitude = null; longitude = null;
}; };
}; };
@ -327,19 +331,19 @@ in
]; ];
}; };
FirefoxHome = { FirefoxHome = {
Search = false; Highlights = false;
TopSites = false; Locked = true;
Pocket = false;
Search = false;
Snippets = false;
SponsoredTopSites = false; SponsoredTopSites = false;
Highlights = false; TopSites = false;
Pocket = false;
Snippets = false;
Locked = true;
}; };
FirefoxSuggest = { FirefoxSuggest = {
WebSuggestions = false; ImproveSuggest = false;
Locked = true;
SponsoredSuggestions = false; SponsoredSuggestions = false;
ImproveSuggest = false; WebSuggestions = false;
Locked = true;
}; };
PDFjs = { PDFjs = {
Enabled = false; Enabled = false;
@ -351,7 +355,7 @@ in
extensions = { extensions = {
pdf = { pdf = {
action = "useHelperApp"; action = "useHelperApp";
ask = true; ask = true;
handlers = [ handlers = [
{ {
name = "GNOME Document Viewer"; name = "GNOME Document Viewer";
@ -388,27 +392,27 @@ in
}; };
PictureInPicture = { PictureInPicture = {
Enabled = false; Enabled = false;
Locked = false; Locked = false;
}; };
SanitizeOnShutdown = { SanitizeOnShutdown = {
Cache = true; Cache = true;
Cookies = false; Cookies = false;
Downloads = false; Downloads = false;
FormData = true; FormData = true;
History = false; History = false;
Sessions = false; Locked = true;
OfflineApps = true;
Sessions = false;
SiteSettings = false; SiteSettings = false;
OfflineApps = true;
Locked = true;
}; };
UserMessaging = { UserMessaging = {
ExtensionRecommendations = false; ExtensionRecommendations = false;
FeatureRecommendations = false; FeatureRecommendations = false;
MoreFromMozilla = false; Locked = true;
SkipOnboarding = true; MoreFromMozilla = false;
UrlbarInterventions = false; SkipOnboarding = true;
WhatsNew = false; UrlbarInterventions = false;
Locked = true; WhatsNew = false;
}; };
}; };
} }