我转到我的配置文件设置并添加了一个名为“chrome”的文件夹和一个名为 userChrome.css
的文件。
我包含了这段代码:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#tabbrowser-tabs .tabbrowser-tab .tab-close-button { display:none!important; }
我重新启动了我的 Firefox 实例,它仍然在选项卡中显示 X 关闭按钮。
最佳答案
Note: Firefox 69 and new versions will not support userChrome.css and userContent.css by default unless preference is set by the user.
要使用 userChrome.css 请按照以下步骤操作:
about:config
toolkit.legacyUserProfileCustomizations.stylesheets
的属性True
并重新启动 firefoxhttps://stackoverflow.com/questions/60963449/