You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firefox的userChrome.css修改仅在Ubuntu生效,Mac端无效果的问题求助

Firefox的userChrome.css修改仅在Ubuntu生效,Mac端无效果的问题求助

我在Ubuntu上用Firefox的时候,靠自定义的userChrome.css搞定了两个需求:一是把右键菜单里一堆用不上的选项隐藏掉,二是让全屏模式下的书签栏保持可见,一直用得挺顺畅的。

我的userChrome.css代码如下:

:root[inFullscreen] #PersonalToolbar {
  visibility: visible !important;
}

.openintabs-menuitem, 
#context-openlinkinusercontext-menu,
#context-savelinktopocket,
#context-pocket,
#context-searchselect, 
#context-sendlinktodevice,
#context-viewpartialsource-selection,
#context-selectall,
#context-sendpagetodevice,
#context-bookmarklink,
#context-savelink,
#context-reload,
#context-bookmarkpage
{
  display: none !important;
}

但最近把同一个文件原封不动放到Mac上的Firefox配置目录(具体路径是/Users/username/Library/Application Support/Firefox/Profiles/0uhtc3la.default-release-2/chrome)后,完全没达到预期效果——右键菜单里那些要隐藏的选项还在,全屏模式下书签栏也没显示出来。

我已经在about:config里把toolkit.legacyUserProfileCustomizations.stylesheets的值改成true了,和Ubuntu上的设置完全一致,但Mac端就是没反应。有没有懂行的朋友能帮我排查下问题出在哪?

备注:内容来源于stack exchange,提问作者LinusHasaWalkingDesk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 13:03:18