From 6b7b13a08b0df2cb22d3927d9d4e24e48b006120 Mon Sep 17 00:00:00 2001 From: brustybee Date: Fri, 13 Mar 2026 14:28:33 +0530 Subject: i like it boxy fix xorg systemd services startup and more --- common/programs/zenBrowser.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'common/programs/zenBrowser.nix') diff --git a/common/programs/zenBrowser.nix b/common/programs/zenBrowser.nix index 60a4ae3..8d9f08e 100644 --- a/common/programs/zenBrowser.nix +++ b/common/programs/zenBrowser.nix @@ -112,4 +112,38 @@ in } ) ]; + + xdg.configFile = { + "userContent.css" = { + enable = true; + text = + # css + '' + img, canvas, video, .avatar, + [class*="avatar"], + [class*="ProfileAvatar"], + [style*="border-radius"] { + border-radius: 0 !important; + clip-path: none !important; + mask-image: none !important; + -webkit-mask-image: none !important; + } + + /* 2. Reset standard rounding on all elements EXCEPT SVGs */ + :not(svg):not(circle):not(ellipse):not(path) { + border-radius: 0 !important; + } + + /* 3. Handle variables that usually affect containers/images */ + :root { + --border-radius: 0px !important; + --radius: 0px !important; + --rounded-corner: 0px !important; + --avatar-radius: 0px !important; + --pfp-radius: 0px !important; + } + ''; + }; + }; + } -- cgit v1.3.1