X
Πατήστε εδώ για μετάβαση στην έκδοση της ιστοσελίδας για κινητές συσκευές.

Φόρουμ υποστήριξης

Disable middle click tab bar

Δημοσιεύτηκε

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.

Τροποποιήθηκε στις από το χρήστη ZetiX

Επιλεγμένη λύση

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.

Ανάγνωση απάντησης σε πλαίσιο 0
Παράθεση

Επιπρόσθετες λεπτομέρειες συστήματος

Εφαρμογή

  • Πλατφόρμα χρήστη: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Περισσότερες πληροφορίες

jscher2000
  • Top 10 Contributor
8793 λύσεις 71930 απαντήσεις
Δημοσιεύτηκε

Επιλεγμένη λύση

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.
Σάς φάνηκε χρήσιμο;
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

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!
Σάς φάνηκε χρήσιμο;
Παράθεση
cor-el
  • Top 10 Contributor
  • Moderator
17578 λύσεις 159013 απαντήσεις
Δημοσιεύτηκε

Χρήσιμη απάντηση

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>
Σάς φάνηκε χρήσιμο; 1
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

Sorry for replying to this post again but is there another workaround for disabling this function or where the documentation for the tab bar CSS is?

Sorry for replying to this post again but is there another workaround for disabling this function or where the documentation for the tab bar CSS is?
Σάς φάνηκε χρήσιμο;
Παράθεση
cor-el
  • Top 10 Contributor
  • Moderator
17578 λύσεις 159013 απαντήσεις
Δημοσιεύτηκε

Χρήσιμη απάντηση

There appears to have been a change in Firefox 71 for the selector. I hardly use middle-click in that area, so I hadn't noticed it.


/* TAB - Pointer Events [tested:68-73] */
#tabbrowser-tabs :-moz-any(.arrowscrollbox-scrollbox, .tabbrowser-arrowscrollbox) {pointer-events: none}
.tabbrowser-tab, #tabs-newtab-button, .tabs-newtab-button {pointer-events: auto}
.scrollbutton-up, .scrollbutton-down {pointer-events:auto !important}
.new-tab-popup, .new-tab-popup > * {pointer-events: auto}  /*container tabs - longpress*/
There appears to have been a change in Firefox 71 for the selector. I hardly use middle-click in that area, so I hadn't noticed it. ---- <pre><nowiki>/* TAB - Pointer Events [tested:68-73] */ #tabbrowser-tabs :-moz-any(.arrowscrollbox-scrollbox, .tabbrowser-arrowscrollbox) {pointer-events: none} .tabbrowser-tab, #tabs-newtab-button, .tabs-newtab-button {pointer-events: auto} .scrollbutton-up, .scrollbutton-down {pointer-events:auto !important} .new-tab-popup, .new-tab-popup > * {pointer-events: auto} /*container tabs - longpress*/ </nowiki></pre>

Τροποποιήθηκε στις από το χρήστη cor-el

Σάς φάνηκε χρήσιμο; 1
Παράθεση
Δημοσιεύτηκε

Ιδιοκτήτης ερώτησης

cor-el said

There appears to have been a change in Firefox 71 for the selector. I hardly use middle-click in that area, so I hadn't noticed it.

Can I just say I love you so much. I really cannot use Firefox without this tweak and it's been driving me nuts each time it breaks. Thank you so much!

''cor-el [[#answer-1270909|said]]'' <blockquote> There appears to have been a change in Firefox 71 for the selector. I hardly use middle-click in that area, so I hadn't noticed it. </blockquote> Can I just say I love you so much. I really cannot use Firefox without this tweak and it's been driving me nuts each time it breaks. Thank you so much!
Σάς φάνηκε χρήσιμο;
Παράθεση
Κάντε μια ερώτηση

Πρέπει να συνδεθείτε στο λογαριασμό σας για να απαντήσετε στις δημοσιεύσεις. Παρακαλούμε ξεκινήστε μια νέα ερώτηση, αν δεν έχετε ήδη λογαριασμό.