如何删除Firefox窗口角落中的拖动选项卡

Cos*_*dis 4 firefox windows

我的 Firefox 浏览器的角落里有一个灰色的小区域。我相信它是用来拖动的,但我有一个关键的组合,并且想回收那个小小的灰色空间。

在此处输入图片说明

我怎样才能摆脱那个小灰色区域?我记得过去曾为此找到过解决方案,但升级到 Firefox 65 似乎又重新出现了这种麻烦:(

所以,找到了我的用户浏览器 chrome 设置:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 

.titlebar-placeholder[type="pre-tabs"],
.titlebar-placeholder[type="post-tabs"] {
  display:none !important;
}
Run Code Online (Sandbox Code Playgroud)

由于某种原因,这在升级到 Firefox 65 后不起作用。

此外,我禁用了管理选项卡组的扩展程序,重新启动了浏览器等等,但这不是罪魁祸首。

Cos*_*dis 5

好的,解决了这个问题。Firefox 似乎更新了标签空间可拖动区域的类名。

这是更新的css:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.titlebar-placeholder[type="pre-tabs"],
.titlebar-placeholder[type="post-tabs"] {
  display: none !important;
  width: 0px !important;
  max-width: 0px !important;
}

.titlebar-spacer[type="pre-tabs"],
.titlebar-spacer[type="post-tabs"] {
  display: none !important;
  width: 0px !important;
  max-width: 0px !important;
}
Run Code Online (Sandbox Code Playgroud)

上面的旧命名约定,下面的新命名约定。我的 display none 和 width 0 可能有点多余。

另外,对于那些不知道的人,这个文件应该被命名userChrome.css并且应该放在一个名为chrome你在里面创建的文件夹中~.mozzilla/firefox/random-lettersi432789fd.default

关于如何编辑 userChrome.css 文件,有比我更好的说明。

  • 请注意,在 Quantum 上,您需要转到 about:config 并启用 `toolkit.legacyUserProfileCustomizations.stylesheets` 以获取 userChrome.css。 (2认同)