【问题标题】:Firefox 89 doesn't see userChrome.css even set toolkit.legacyUserProfileCustomizations.stylesheets=trueFirefox 89 看不到 userChrome.css 甚至设置了 toolkit.legacyUserProfileCustomizations.stylesheets=true
【发布时间】:2021-08-22 08:48:07
【问题描述】:

Firefox 刚刚更新,现在看不到 userChrome.css,toolkit.legacyUserProfileCustomizations.stylesheets 设置为 true。我试图通过

隐藏滚动条
html {
    scrollbar-width: none !important;
}

在 Firefox 更新之前一切正常。

我已经将 chrome/userChrome.css 放到了我拥有的每个配置文件文件夹中,并且每次都重新启动了 firefox,但它仍然看不到 userChrome.css 中的任何内容

--

UDP:

Firefox 仍然看不到我的自定义 CSS,但如果你想隐藏滚动条,this addon 可以。

【问题讨论】:

  • 您在 userChrome.css 文件中使用什么?您自己的还是您正在使用Arit-t2’s GitHub custom CSS?我问 Arti-t2 四小时前更新了他的 CSS,它对我有用(我用它来定位书签工具栏下方的标签)。
  • @RichDeBourke 不,我使用自己的 CSS 仅隐藏滚动条。

标签: html css firefox scrollbar userchrome.css


【解决方案1】:

尝试将toolkit.legacyUserProfileCustomizations.stylesheets 设置为true。根据 How to Create a userChrome.css File(在 userchrome.org 上)的说法,Firefox 过去在启动时会寻找 chrome/userChrome.css,但从 Firefox 69 开始,为了加快启动速度,这已不再是默认行为。

【讨论】:

  • 感谢您的回答,但我已经提到该属性设置为 true。
  • 今天在 Firefox 91.0.2 上对我有用,谢谢你的提示!
【解决方案2】:

widget.non-native-theme.enabled = false

【讨论】:

    【解决方案3】:

    您可以使用 userContent.css 文件代替 userChrome 文件来设置实际显示在 Firefox 上的页面样式

    【讨论】:

    • 您有备份建议解决方案的参考资料吗?不幸的是,您的回答没有进一步解释使用 userContent.css 文件如何以及为什么可以解决所描述的问题。简短的解释或超链接将非常有帮助。问候~
    • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2016-08-09
    • 2016-03-09
    • 2012-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-23
    相关资源
    最近更新 更多