Firefox 中的选项卡关闭按钮位于右侧。但这在 macOS 中感觉很奇怪,所有关闭按钮都在左侧。是否可以将其移动到左侧,可能带有扩展名或配置设置?
幸运的是,Firefox UI 可以在~/Library/Application Support/Firefox/Profiles/<PROFILE_ID>/chrome/userChrome.css. 将以下内容添加到该文件中:
@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-close-button {
margin-left: -4px !important; // -2px before Firefox v89
margin-right: 1.5px !important; // 4px before Firefox v89
}
.tabbrowser-tab:not([pinned="true"]):hover .tab-close-button {
display: -moz-box !important;
}
.tabbrowser-tab:not([pinned="true"]):hover .tab-icon-image {
display: none;
}
.tab-close-button {
display: none;
}
Run Code Online (Sandbox Code Playgroud)
此外,在 Firefox 69+ 中默认禁用 userChrome.css,因此请转到about:config并设置toolkit.legacyUserProfileCustomizations.stylesheets为true
感谢https://support.mozilla.org/en-US/questions/1157451的启发。我还添加了包含此信息的 Gist。
| 归档时间: |
|
| 查看次数: |
1145 次 |
| 最近记录: |