Skip to content

Instantly share code, notes, and snippets.

@NicHub
Last active September 1, 2025 06:41
Show Gist options
  • Select an option

  • Save NicHub/54a5f1d44748e5a1ebd4b3c5b739fb4a to your computer and use it in GitHub Desktop.

Select an option

Save NicHub/54a5f1d44748e5a1ebd4b3c5b739fb4a to your computer and use it in GitHub Desktop.
css-dev-in-browser.md

# CSS DEV IN BROWSER

## FIREFOX

source: https://dev.to/colewalker/customizing-firefox-with-css-h4m

  • open the dev tools cmd+alt+i

  • open the preferences F1

  • on the right, there is a category called Advanced parameters

    • check the following options
      • Enable browser chrome and add-on debugging toolboxes
      • Enable remote debugging
  • open about:config

  • set toolkit.legacyUserProfileCustomizations.stylesheets to true

  • open about:support

  • search for Profile Folder (Dossier de profil)

  • create a chrome folder inside the profile folder PROFILE_FOLDER="$HOME/Library/Application Support/Firefox/Profiles/y8wm3bjn.dev-edition-default-1726121876931" CHROME_FOLDER=$PROFILE_FOLDER/chrome mkdir -p $CHROME_FOLDER touch $CHROME_FOLDER/userChrome.css code $CHROME_FOLDER

    touch $CHROME_FOLDER/userContent.css

@-moz-document domain(example.com) {
    img {
        opacity: 0.05 !important;
    }
}
@-moz-document domain(example.com) {
    img {
        opacity: 0.05 !important;
    }
}

Enable browser chrome and add-on debugging toolboxes" and "Enable remote debugging" options in the Developer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment