I just updated Firefox Nightly (2023-10-19) and it seems that about:config values are no longer detected by -moz-bool-pref().

Does anyone else have this issue. If so, is this just unintended behavior or is this permanent?

  • @MrOtherGuyM
    link
    28 months ago

    No, it does not work anymore - see bug 1859538

    Instead the same can now be done with media query which is simply amazing. Format would be like this:

    @media (-moz-bool-pref: "userChrome.some.testpref.enabled"){
      #nav-bar{background: #f00 !important;}
    }
    
    • ZapSNHOP
      link
      English
      18 months ago

      Apparently you no longer have to restart or refresh the CSS in order to see your config changes.

      Imgur

      (how do i embed video?)

    • @Godie
      link
      18 months ago

      @[email protected] could you help me with the syntax with not, or when I want use “or” or “and”, for example this not work: @media ( not -moz-bool-pref:"firefoxgx.tab-shapes") {...}

      • @MrOtherGuyM
        link
        18 months ago

        The not keyword should be outside the parentheses. So like @media not (-moz-bool-pref: "firefoxgx.tab-shapes"){...}

        • @Godie
          link
          18 months ago

          deleted by creator