Skip to content

Instantly share code, notes, and snippets.

@automaticit
Created November 21, 2017 13:05
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save automaticit/cc6f539b99197124d7149dee90122c33 to your computer and use it in GitHub Desktop.
Save automaticit/cc6f539b99197124d7149dee90122c33 to your computer and use it in GitHub Desktop.
Hide Firefox Quantum tab bar
#!/bin/bash
#
# Based upon [[https://superuser.com/questions/1268732/how-to-hide-tab-bar-tabstrip-in-firefox-57-quantum/1268734#1268734][How to hide tab bar (tabstrip) in Firefox 57+ Quantum]] by [[https://superuser.com/users/162466/vasyanovikov][VasyaNovikov]]
# This causes the [[https://support.mozilla.org/en-US/questions/1187186][The Back Button is top right under the Red close button on my Mac]] issue.
# Resolve that by right-clicking the toolbar, then inserting three Flexible Space into the toolbar on the far-left-hand side.
case $( uname ) in
"Linux")
profile_dir=~/.mozilla/firefox/$( ls -tr ~/.mozilla/firefox/ | grep -v profiles.ini | tail -1 )
;;
"Darwin")
profile_dir=~/Library/Application\ Support/Firefox/Profiles/$( ls -tr ~/Library/Application\ Support/Firefox/Profiles | tail -1 )
;;
esac
if [ ! -d "${profile_dir}"/chrome ] ; then
mkdir -p "${profile_dir}"/chrome
fi
echo '#TabsToolbar { visibility: collapse !important; }' >> "${profile_dir}"/chrome/userChrome.css
@didibus
Copy link

didibus commented Feb 27, 2018

Would be neat to have the corresponding undo script.

@jt3k
Copy link

jt3k commented Sep 17, 2020

add undo-[script or functional] plz

@jt3k
Copy link

jt3k commented Sep 17, 2020

does not work with Firefox 80.0.1 on Mac 10.15.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment