From e5e3eaaff4dccf1ef3b0f855824fa32f8d91ee81 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Thu, 30 Jan 2025 13:42:38 +0100 Subject: [PATCH] cleanup firefox userchrome --- home-modules/firefox.nix | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/home-modules/firefox.nix b/home-modules/firefox.nix index 8895660..7524dd9 100644 --- a/home-modules/firefox.nix +++ b/home-modules/firefox.nix @@ -122,18 +122,6 @@ } } - @-moz-document domain(youtube.com) { - #background, #chips-wrapper, ytd-mini-guide-entry-renderer { - background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; - backdrop-filter: blur(${blur}px); - border: ${builtins.toString rice.border-width} solid ${border}; - } - body, html, ytd-app, ytd-mini-guide-renderer, div#content-container, #guide-content.ytd-app, #guide-wrapper, div#contentContainer { - background-color: transparent !important; - border: ${builtins.toString rice.border-width} solid ${border}; - } - } - @-moz-document domain(reddit.com) { header { background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; @@ -221,7 +209,7 @@ } } - @-moz-document domain(nx2.site) { + @-moz-document url-prefix("https://nx2.site/") { html { background: radial-gradient(rgba(255, 255, 255, 0.8) 5%, transparent 5%) !important; background-repeat: repeat !important; @@ -229,7 +217,13 @@ } } - @-moz-document domain(pw.nx2.site) { + @-moz-document url-prefix("pw.nx2.site") { + html { + background: black; + } + } + + @-moz-document url-prefix("pw.nx2.site") { html { background: radial-gradient(rgba(255, 255, 255, 0.8) 5%, transparent 5%) !important; background-repeat: repeat !important;