r/FirefoxCSS • • 16d ago

Solved Tabs on Bottom for Firefox 160.0?

Can someone please post the userChrome.css for Tabs on Bottom for Firefox 160.0.

Thanks to a &$%&^@# hacker, I have to set up my computer right from scratch.

Please and thanks.

5 Upvotes

13 comments sorted by

3

u/sifferedd FF/TB/Win11/SUMO contributor 16d ago
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_v2.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* This reorders toolbar to place tabs below other toolbars. Requires Firefox 133+ */

@media -moz-pref("userchrome.force-window-controls-on-left.enabled"){
  #nav-bar > .titlebar-buttonbox-container{
    order: -1 !important;
    > .titlebar-buttonbox{
      flex-direction: row-reverse;
    }
  }
}
@media not -moz-pref("sidebar.verticalTabs"){
  .global-notificationbox,
  #tab-notification-deck,
  #notifications-toolbar,
  #TabsToolbar{
    order: 1;
  }
  #TabsToolbar > :is(.titlebar-spacer,.titlebar-buttonbox-container){
    display: none;
  }
  :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
    display: flex !important;
  }
  :root[customtitlebar] #toolbar-menubar:is([autohide=""],[autohide="true"],[collapsed]) ~ #nav-bar{
    > .titlebar-buttonbox-container{
      display: flex !important;
    }
    :root[sizemode="normal"] & {
      > .titlebar-spacer{
        display: flex !important;
      }
    }
    :root[sizemode="maximized"] & {
      > .titlebar-spacer[type="post-tabs"]{
        display: flex !important;
      }
      @media -moz-pref("userchrome.force-window-controls-on-left.enabled"),
        (-moz-gtk-csd-reversed-placement),
        (-moz-platform: macos){
        > .titlebar-spacer[type="post-tabs"]{
          display: none !important;
        }
        > .titlebar-spacer[type="pre-tabs"]{
          display: flex !important;
        }
      }
    }
  }
}

firefox-csshacks tag browser

2

u/t31os 16d ago

Just the essential parts version:

@media not -moz-pref("sidebar.verticalTabs") {

	.global-notificationbox,
	#tab-notification-deck,
	#notifications-toolbar,
	#TabsToolbar {
		order: 1;
	}

	#TabsToolbar > .titlebar-buttonbox-container {
		display: none;
	}

	:root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container,
	:root[customtitlebar] #toolbar-menubar:is( [autohide], [inactive="true"] ) ~ #nav-bar > .titlebar-buttonbox-container {
		display: revert !important;
	}
}

2

u/McBobby03 15d ago

Bless you. This one worked. Thanks

1

u/sifferedd FF/TB/Win11/SUMO contributor 16d ago

Does not WFM on a clean profile.

1

u/t31os 16d ago

2

u/sifferedd FF/TB/Win11/SUMO contributor 16d ago

OK, it works on new instance. Not sure what the problem is with my test profile!

2

u/t31os 16d ago

Almost the start of another mystery.... :)

2

u/sifferedd FF/TB/Win11/SUMO contributor 15d ago

Not going there with this one 🤪

1

u/McBobby03 16d ago edited 16d ago

Thank-you very much. Unfortunately, it doesn't work. I have style-sheets set to active, so I'm not sure what might be blocking it.

1

u/sifferedd FF/TB/Win11/SUMO contributor 16d ago

What version of FF? Post your userChrome file formatted as mentioned in Rule #2 ➡️➡️

2

u/mike_rumble 16d ago

After you get your computer the way you want it, please back it up. I use Macrium Reflect Free, but there are others. I can deliberately infect my computer just to see what happens. I can then restore my computer virus free in about 5 minutes. I keep a backup on my second hard drive and a copy on a removable drive, just in case. It will save you a lot of grief.

1

u/McBobby03 16d ago

Thank-you. I did have it backed up, but my computer was hacked and the backup deleted.

2

u/mike_rumble 16d ago

Your backup should be on at least another partition, but best choice would be an external drive or usb drive that can be removed and stored apart from your computer.