X
Tippen Sie hierhin, um die Version dieser Website für Mobilgeräte aufzurufen.

Hilfeforum

Disable middle click tab bar

Veröffentlicht

My previous question: https://support.mozilla.org/en-US/questions/1254024

With the latest update, the following css tweak to disable the creation of new tab when middle clicking the empty tab bar area no longer works.

https://pastebin.com/zSJYR8PJ

This along with the shortcut CTRL+SHIFT+P to open a new private window are features no other browsers have.

My previous question: https://support.mozilla.org/en-US/questions/1254024 With the latest update, the following css tweak to disable the creation of new tab when middle clicking the empty tab bar area no longer works. https://pastebin.com/zSJYR8PJ This along with the shortcut CTRL+SHIFT+P to open a new private window are features no other browsers have.

Geändert am von ZetiX

Ausgewählte Lösung

Hmm, still works for me, except the new tab + button wasn't working so I had to change its selector:

/* Block middle-click on tab bar */
#tabbrowser-tabs .arrowscrollbox-scrollbox {
  pointer-events: none;
}
/* Exceptions: tabs, new tab button */
.tabbrowser-tab, #tabs-newtab-button {
  pointer-events: auto !important;
}

This was in a new Firefox profile on Windows, so no title bar, no menu bar, tabs on top, etc.

Diese Antwort im Kontext lesen 0
Zitieren
jscher2000
  • Top 10 Contributor
8758 Lösungen 71655 Antworten
Veröffentlicht

Ausgewählte Lösung

Hmm, still works for me, except the new tab + button wasn't working so I had to change its selector:

/* Block middle-click on tab bar */
#tabbrowser-tabs .arrowscrollbox-scrollbox {
  pointer-events: none;
}
/* Exceptions: tabs, new tab button */
.tabbrowser-tab, #tabs-newtab-button {
  pointer-events: auto !important;
}

This was in a new Firefox profile on Windows, so no title bar, no menu bar, tabs on top, etc.

Hmm, still works for me, except the new tab + button wasn't working so I had to change its selector: <pre>/* Block middle-click on tab bar */ #tabbrowser-tabs .arrowscrollbox-scrollbox { pointer-events: none; } /* Exceptions: tabs, new tab button */ .tabbrowser-tab, #tabs-newtab-button { pointer-events: auto !important; } </pre> This was in a new Firefox profile on Windows, so no title bar, no menu bar, tabs on top, etc.
Hat Ihnen das weitergeholfen?
Zitieren
Veröffentlicht

Fragesteller

My bad, you're correct that it only stops the new tab button from working. I was really frustrated when posting this as I had to remove the css tweak from every device thinking it wouldn't work.

Thank you so much for resolving this!

My bad, you're correct that it only stops the new tab button from working. I was really frustrated when posting this as I had to remove the css tweak from every device thinking it wouldn't work. Thank you so much for resolving this!
Hat Ihnen das weitergeholfen?
Zitieren
cor-el
  • Top 10 Contributor
  • Moderator
17521 Lösungen 158427 Antworten
Veröffentlicht

Hilfreiche Antwort

This might be better code to allow a long press on the new tab button (containers tabs menu), otherwise you can't click an item in this drop-down menu.

/* TAB - Pointer Events */
#tabbrowser-tabs .arrowscrollbox-scrollbox{pointer-events: none}
.tabbrowser-tab,
#tabs-newtab-button,
.tabs-newtab-button,
.new-tab-popup, .new-tab-popup > *{pointer-events: auto}
This might be better code to allow a long press on the new tab button (containers tabs menu), otherwise you can't click an item in this drop-down menu. <pre><nowiki> /* TAB - Pointer Events */ #tabbrowser-tabs .arrowscrollbox-scrollbox{pointer-events: none} .tabbrowser-tab, #tabs-newtab-button, .tabs-newtab-button, .new-tab-popup, .new-tab-popup > *{pointer-events: auto}</nowiki></pre>
Hat Ihnen das weitergeholfen? 1
Zitieren
Stellen Sie eine Frage

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.