![Firefox 左侧标签页可以有关闭按钮吗?](https://linux22.com/image/1607651/Firefox%20%E5%B7%A6%E4%BE%A7%E6%A0%87%E7%AD%BE%E9%A1%B5%E5%8F%AF%E4%BB%A5%E6%9C%89%E5%85%B3%E9%97%AD%E6%8C%89%E9%92%AE%E5%90%97%EF%BC%9F.png)
答案1
不巧,Firefox UI 可以定制在 中~/Library/Application Support/Firefox/Profiles/<PROFILE_ID>/chrome/userChrome.css
。将以下内容添加到该文件(适用于 Firefox v98):
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tabbrowser-tab .tab-throbber,
.tabbrowser-tab .tab-icon-image,
.tabbrowser-tab .tab-sharing-icon-overlay,
.tabbrowser-tab .tab-icon-overlay,
.tabbrowser-tab .tab-label-container,
.tabbrowser-tab .tab-icon-sound {
-moz-box-ordinal-group: 2 !important;
}
.tabbrowser-tab .tab-label-container {
margin-left: 2px;
}
.tabbrowser-tab .tab-icon-image {
margin-left: 3px;
}
.tabbrowser-tab .tab-close-button {
margin-left: -5px !important;
margin-right: 2.5px !important;
}
.tabbrowser-tab:not([pinned="true"]):hover .tab-close-button {
display: -moz-box !important;
}
.tabbrowser-tab:not([pinned="true"]):hover .tab-icon-stack,
.tabbrowser-tab:not([pinned="true"]):hover .tab-throbber,
.tab-close-button {
display: none;
}
还,userChrome.css 在 Firefox 69+ 中默认被禁用,因此转到about:config
并设置toolkit.legacyUserProfileCustomizations.stylesheets
为true
谢谢https://support.mozilla.org/en-US/questions/1157451寻找灵感。我也添加了包含此信息的要点。