Dark Reader: Fix policy support.
This commit is contained in:
parent
c8dd0b179e
commit
01ff768f0f
|
@ -1,9 +1,9 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
url = "https://i.imgur.com/3fJXekt.jpeg";
|
url = "https://i.imgur.com/Q8ZTZCH.png";
|
||||||
sha256 = "sha256-3ZyFZwWuVg4oXZ0zfN2LuPgf7KEFdTS3zWd1FYScOdQ=";
|
sha256 = "sha256-HL3mJOeF6UKXL3ymj9ZynzgZTUJgw/lsxq9Xhpe3A8A=";
|
||||||
forceContrastText = true;
|
forceContrastText = false;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -54,7 +54,7 @@ let
|
||||||
];
|
];
|
||||||
|
|
||||||
prefs = [
|
prefs = [
|
||||||
# WARN: Remove when Dark Reader policies gets mnerged.
|
# WARN: Remove when Dark Reader policies gets merged.
|
||||||
(mkLockedPref "xpinstall.signatures.required" false)
|
(mkLockedPref "xpinstall.signatures.required" false)
|
||||||
|
|
||||||
# Bookmarks.
|
# Bookmarks.
|
||||||
|
@ -267,56 +267,55 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"addon@darkreader.org" = {
|
"addon@darkreader.org" = {
|
||||||
enabled = false;
|
enabled = true;
|
||||||
enabledByDefault = false;
|
enabledByDefault = true;
|
||||||
|
changeBrowserTheme = false;
|
||||||
|
detectDarkTheme = true;
|
||||||
|
enableContextMenus = true;
|
||||||
|
enableForPDF = true;
|
||||||
|
enableForProtectedPages = false;
|
||||||
|
fetchNews = false;
|
||||||
previewNewDesign = true;
|
previewNewDesign = true;
|
||||||
syncSettings = false;
|
syncSettings = false;
|
||||||
# disabledFor = [
|
syncSitesFixes = true;
|
||||||
# "home.voronind.com"
|
disabledFor = [
|
||||||
# ];
|
"home.voronind.com"
|
||||||
# fetchNews = false;
|
];
|
||||||
# theme = {
|
theme = {
|
||||||
# mode = 1;
|
mode = 1;
|
||||||
# brightness = 100;
|
brightness = 100;
|
||||||
# contrast = 100;
|
contrast = 100;
|
||||||
# grayscale = 0;
|
grayscale = 0;
|
||||||
# sepia = 0;
|
sepia = 0;
|
||||||
# useFont = true;
|
useFont = false;
|
||||||
# fontFamily = config.style.font.sansSerif.name;
|
fontFamily = config.style.font.sansSerif.name;
|
||||||
# textStroke = 0;
|
textStroke = 0;
|
||||||
# engine = "dynamicTheme"; # dynamicTheme, cssFilter or svgFilter.
|
engine = "dynamicTheme"; # dynamicTheme, cssFilter or svgFilter.
|
||||||
# stylesheet = "";
|
stylesheet = "";
|
||||||
# darkSchemeBackgroundColor = "ff0000";
|
darkSchemeBackgroundColor = "#${config.style.color.bg.dark}";
|
||||||
# darkSchemeTextColor = "00ff00";
|
darkSchemeTextColor = "#${config.style.color.fg.light}";
|
||||||
# lightSchemeBackgroundColor = "ff0000";
|
lightSchemeBackgroundColor = "#${config.style.color.bg.light}";
|
||||||
# lightSchemeTextColor = "00ff00";
|
lightSchemeTextColor = "#${config.style.color.fg.dark}";
|
||||||
# scrollbarColor = "0000ff";
|
scrollbarColor = "#${config.style.color.neutral}";
|
||||||
# selectionColor = "00ffff";
|
selectionColor = "#${config.style.color.selection}";
|
||||||
# styleSystemControls = true;
|
styleSystemControls = true;
|
||||||
# lightColorScheme = "Default";
|
lightColorScheme = "Default";
|
||||||
# darkColorScheme = "Default";
|
darkColorScheme = "Default";
|
||||||
# immediateModify = true;
|
immediateModify = true;
|
||||||
# };
|
};
|
||||||
# changeBrowserTheme = true;
|
automation = {
|
||||||
# syncSitesFixes = true;
|
enabled = false;
|
||||||
# automation = {
|
mode = "";
|
||||||
# enabled = false;
|
behavior = "OnOff";
|
||||||
# mode = "";
|
};
|
||||||
# behavior = "OnOff";
|
time = {
|
||||||
# };
|
activation = "18:00";
|
||||||
# time = {
|
deactivation = "9:00";
|
||||||
# activation = "18:00";
|
};
|
||||||
# deactivation = "9:00";
|
location = {
|
||||||
# };
|
latitude = null;
|
||||||
# location = {
|
longitude = null;
|
||||||
# latitude = null;
|
};
|
||||||
# longitude = null;
|
|
||||||
# };
|
|
||||||
# previewNewDesign = true;
|
|
||||||
# enableForPDF = true;
|
|
||||||
# enableForProtectedPages = false;
|
|
||||||
# enableContextMenus = true;
|
|
||||||
# detectDarkTheme = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# NOTE: `firefox-esr` edition is required to change search engines.
|
# NOTE: `firefox-esr` edition is required to change search engines.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
}:
|
}:
|
||||||
buildNpmPackage rec {
|
buildNpmPackage rec {
|
||||||
# version = "4.9.96";
|
# version = "4.9.96";
|
||||||
version = "c700f9e03440131d46c6506eca79499a65fb1bd8";
|
version = "af57bb1370bd449a7b294759bf2ce353f358ace8";
|
||||||
|
|
||||||
pname = "dark-reader";
|
pname = "dark-reader";
|
||||||
|
|
||||||
|
@ -15,12 +15,11 @@ buildNpmPackage rec {
|
||||||
owner = "nenikitov";
|
owner = "nenikitov";
|
||||||
repo = "darkreader";
|
repo = "darkreader";
|
||||||
# rev = "v${version}";
|
# rev = "v${version}";
|
||||||
# rev = "c700f9e03440131d46c6506eca79499a65fb1bd8";
|
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-oscW2V6GBBAa6/1uwhU4nimu2kMnd429p9rCEYZC7ZM=";
|
hash = "sha256-cX/kwG6lOjNTsf6x86jVWmYLvB6qIeK/B0s2aT08oJU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
npmDepsHash = "sha256-e41PXGgoQkVSHQj6kElqXPhzc6irnr09ltBAPmcUjik=";
|
npmDepsHash = "sha256-+FPYo5ev/ccp28vX6As/KbFtOtf9bQfhA0b1ufHVmTo=";
|
||||||
# npmDepsHash = "sha256-dSuCL8GZXiksqVQ+TypzOdAROn3q30ExaGCJu72GLyY=";
|
# npmDepsHash = "sha256-dSuCL8GZXiksqVQ+TypzOdAROn3q30ExaGCJu72GLyY=";
|
||||||
# npmDeps = fetchNpmDeps {
|
# npmDeps = fetchNpmDeps {
|
||||||
# inherit src;
|
# inherit src;
|
||||||
|
|
Loading…
Reference in a new issue