Firefox 中的左侧选项卡关闭按钮是否可行?

neu*_*242 3 firefox macos

Firefox 中的选项卡关闭按钮位于右侧。但这在 macOS 中感觉很奇怪,所有关闭按钮都在左侧。是否可以将其移动到左侧,可能带有扩展名或配置设置?

左侧关闭按钮

neu*_*242 5

幸运的是,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.stylesheetstrue

感谢https://support.mozilla.org/en-US/questions/1157451的启发。我还添加了包含此信息的 Gist