Last active
September 14, 2024 17:29
-
-
Save lucasfernandodev/1571aec7ecdf050e9c8553f14915b683 to your computer and use it in GitHub Desktop.
How removing zen browser padding and margin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Navigate to `about:config`. | |
2. Search for `toolkit.legacyUserProfileCustomizations.stylesheets` and toggle it to `true` (by double-clicking on it). | |
3. Find the Zen profile folder. | |
4. Inside the Zen profile folder, create a new folder named `chrome`. | |
5. Inside the `chrome` folder, create two new files: `userContent.css` and `userChrome.css`. | |
6. Open `userChrome.css` using a text editor and paste the following code: | |
```css | |
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer { | |
border-radius: unset!important; | |
margin: unset!important; | |
padding: 0px !important; | |
} | |
:root:not([inDOMFullscreen="true"]) #tabbrowser-tabbox #tabbrowser-tabpanels[zen-split-view="true"] .browserSidebarContainer { | |
margin: unset!important; | |
padding: unset!important; | |
} | |
#tabbrowser-tabpanels > hbox { | |
margin: 0px!important; | |
padding: 0px!important; | |
} | |
@media (-moz-bool-pref: "zen.view.compact") { | |
#tabbrowser-tabpanels:not([zen-split-view]) { | |
--zen-webview-border-radius: 0 0 0 0; | |
--zen-element-separation: 0; | |
} | |
} | |
``` | |
7. Open Inspector Element Tools > Advanced Settings > check: | |
- Enable browser chrome and add-on debugging toolboxes. | |
8. Restart the browser! | |
References: | |
- https://www.reddit.com/r/browsers/comments/1erv3mv/any_way_to_remove_border_from_zen_browser/ | |
- https://github.com/zen-browser/desktop/discussions/233 | |
- https://old.reddit.com/r/FirefoxCSS/wiki/index/tutorials#wiki_setup | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment