this post was submitted on 20 Jun 2023
1 points (100.0% liked)

Firefox CSS

446 readers
1 users here now

Pushing the limits of the Firefox Browser through the use of CSS.

#join #firefoxcss:mozilla.org

Post your Firefox UI customizations here!

What is userChrome.css?

Rules (enforced)

  1. Posts must have flair!

  2. Follow Lemmy.World rules

  3. Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.

  4. Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.

  5. When posting large amount of code use a service dedicated to hosting text snippets, such as pastebin, hastebin, github gist or equivalent. Relatively short snippets can be wrapped in code-block for inline viewing.

  6. Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.

Guidelines (not enforced)

Consider adding the following info to help people try your tweaks:

  1. Screenshots should have code in comments.

  2. Include Firefox version

  3. When asking for help you should share your custom style to help others understand what you are doing. This is increasingly important the more custom rules you have.

  4. List any other addons that may be changing the UI

  5. If a custom wallpaper is used, include a link to the original.

  6. If someone's comment solves you problem, reply to the comment to let them know, and change your post flair to solved.

Wiki

Find Helpful Knowledge and answers to common issues in /c/FirefoxCSS wiki.

Links

Lemmy Communities

Websites

founded 1 year ago
MODERATORS
 

Hello! I have changed a few websites appearance with the userContent.css, but I'd like this to only apply to normal browsing, and not to private browsing. the UserChrome instead I'd like to be applied for both normal and private browsing. Is this possible? searching the web didn't give me any useful result... thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[–] bali10050@lemmy.world 0 points 1 year ago (3 children)
[–] tubbadu@lemmy.world 0 points 1 year ago (1 children)

my userContent.css file is a bunch of

@-moz-document domain("example.com"){
  body {
    color: red !important;
  }
}

for each website I customized. however, this applies both to normal and private browsing, and I'd like it to apply only to normal browsing

[–] MrOtherGuy@lemmy.world 2 points 1 year ago (1 children)

I don't think it's possible. It would require some privileged @media query or something similar. Or, potentially using media query to match a feature that isn't available on private-browsing mode. There could be something like that, but I don't know one.

[–] tubbadu@lemmy.world 1 points 1 year ago

thanks for the answer! I'd like to disable it because if sometimes some website interface fucks things up, I can check if it's my fault or not, so visiting the site in private mode without my css would quickly show me who's fault

load more comments (1 replies)