qutebrowser: update colros
This commit is contained in:
parent
8fb69e15fe
commit
dd00ce096a
|
@ -173,7 +173,7 @@ in
|
||||||
};
|
};
|
||||||
home.file = {
|
home.file = {
|
||||||
# For some stupid reason qutebrowser crashes if this dir does not exist
|
# For some stupid reason qutebrowser crashes if this dir does not exist
|
||||||
".config/qutebrowser/greasemonkey/darkreader.js".text = lib.optionalString (color.type == "dark" && true) ''
|
".config/qutebrowser/greasemonkey/darkreader.js".text = ''
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Dark Reader (Unofficial)
|
// @name Dark Reader (Unofficial)
|
||||||
// @icon https://darkreader.org/images/darkreader-icon-256x256.png
|
// @icon https://darkreader.org/images/darkreader-icon-256x256.png
|
||||||
|
@ -189,22 +189,34 @@ in
|
||||||
// @noframes
|
// @noframes
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
|
DarkReader.setFetchMethod(window.fetch)
|
||||||
|
|
||||||
|
if ("${color.type}" != "dark") {
|
||||||
|
DarkReader.disable();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const ignore_list = [
|
const ignore_list = [
|
||||||
"stackexchange.com",
|
"stackexchange.com",
|
||||||
];
|
];
|
||||||
|
|
||||||
for (let item of ignore_list) {
|
for (let item of ignore_list) {
|
||||||
if (window.location.origin.contains(item)) {
|
if (window.location.origin.indexOf(item) > 0) {
|
||||||
console.log("URL matched dark-mode ignore list");
|
console.log("URL matched dark-mode ignore list");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DarkReader.setFetchMethod(window.fetch)
|
|
||||||
DarkReader.enable({
|
DarkReader.enable({
|
||||||
brightness: 100,
|
brightness: 100,
|
||||||
contrast: 100,
|
contrast: 100,
|
||||||
sepia: 0
|
sepia: 0,
|
||||||
|
|
||||||
|
darkSchemeBackgroundColor: "${color.bg}",
|
||||||
|
darkSchemeTextColor: "${color.txt}",
|
||||||
|
|
||||||
|
lightSchemeBackgroundColor: "${color.bg}",
|
||||||
|
lightSchemeTextColor: "${color.txt}",
|
||||||
});
|
});
|
||||||
'';
|
'';
|
||||||
".config/qutebrowser/style.css".text = ''
|
".config/qutebrowser/style.css".text = ''
|
||||||
|
|
Loading…
Reference in a new issue