General Computing
google-chrome chromium
Updated Mon, 27 Jun 2022 01:57:01 GMT

How to hide the tab bar in Google Chrome

I'd like to hide the tab bar when there's only one tab opening. Because I open 4 windows so 4 tab bar actually takes quite a lot screen real estate.

I use Google Chrome the Linux version.


Here's a piece of javascript you can put into your browser's omnibox or into a bookmark:, "detab", "toolbar=0"); window.close()

This will open a new window with your current page without tabs and close the current page.

Comments (4)

  • +0 – +1 Thanks! I'm surprised no one has upvoted this yet. — Oct 12, 2013 at 05:33  
  • +3 – For this to work for me (window is not closing but other window is opening) on Chrome 42 on OS X 10.11, I need to make sure "javascript:" is on the front and "window.close()" has a trailing semicolon. — Dec 15, 2015 at 23:35  
  • +0window.close() doesn't work on Chromium 97. It fails with the error message: Scripts may close only the windows that were opened by them. You can still use the first command to open a new window without tab bar and then close the old one manually. — Feb 03, 2022 at 06:36  
  • +0 – on Ubuntu you get the system bar, so you don't gain any space — Mar 24, 2022 at 19:53