From a85a5d665ed160ced9b18c61a6b1dcdc7917a096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikolaj=20=C5=A0ujskij?= <419654+skrattaren@users.noreply.github.com> Date: Tue, 10 Mar 2026 19:00:58 +0400 Subject: [PATCH] Add "Hide 'New tab' button when vertical tabs are enabled" style (#609) * Add "Hide 'New tab' button when vertical tabs are enabled" * hide vert new tab button: fix for the scrollable sidebar case --- chrome/hide_vert_new_tab_button.css | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 chrome/hide_vert_new_tab_button.css diff --git a/chrome/hide_vert_new_tab_button.css b/chrome/hide_vert_new_tab_button.css new file mode 100644 index 0000000..9c7ea92 --- /dev/null +++ b/chrome/hide_vert_new_tab_button.css @@ -0,0 +1,9 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_vert_new_tab_button.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* This style hides "New tab" button *when vertical tabs are enabled* + * (https://support.mozilla.org/en-US/kb/use-sidebar-access-tools-and-vertical-tabs#w_turn-on-vertical-tabs) +*/ +#tabbrowser-tabs[orient="vertical"] :is(#tabs-newtab-button, #vertical-tabs-newtab-button){ + display: none; +}