I sometimes need to test if a website I develop is working correctly in dark mode, but dark/light mode buttons doesn’t work in LibreWolf devtools. Is there a solution for this?

  • z3rOR0ne@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 year ago

    Librewolf turns on resist fingerprinting by default. If you go into about:config and disable resist fingerprinting, you can re enable light/dark mode preferences being recognized by the browser.

    Or you could install the Dark Reader extension, but that will overwrite all CSS and approximate Dark Mode rather than use a customized CSS stylesheet.

    Or you could install Vanilla Firefox and use that only to develop while you use Librewolf to privately browse, which is what I do.

    • starmanOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      If there isn’t more convenient way, I’ll just disable RFP when needed. Thanks!

      • ReversalHatchery@beehaw.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        You can create a new profile on the about:profiles page, which you could use for development. This is like if you installed a new browser, but with your original one, because the new profile have it’s own separate settings.

    • sem@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      17 days ago

      I’ve been trying to figure out if there is a way to turn off just the part of RFP that blocks system-based light/dark mode, or bypass it somehow, on a site-by-site basis?

      Now that I use LibreWolf instead of Firefox, maybe it would be good to have two “profiles” under about:profiles – one that follows system darkmode / light mode but is less fingerprint-resistant, and one for more private things.

      Although otoh, I am pretty sure my browser is not very fingerprint resistant anyway, and I try to use TOR for any searches I don’t want linked to me… pretty annoying how some sites don’t work on TOR though :(