summaryrefslogtreecommitdiff
path: root/common/programs
diff options
context:
space:
mode:
Diffstat (limited to 'common/programs')
-rw-r--r--common/programs/zenBrowser.nix34
1 files changed, 34 insertions, 0 deletions
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;
+ }
+ '';
+ };
+ };
+
}