sidebery
sidebery copied to clipboard
Minimize Sidebar
Description
I'd like to be able to minimize the sidebar so it only shows panel icons and pinned tabs until I hover or click on one of those icons. This helps to regain some horizontal space in the browser when I'm not bouncing between tabs, without needing to hide or bring back the full sidebar.
This cannot be done through an extension, only through userChrome.css https://github.com/ongots/pseudo-fullscreen-firefox
One thing I've done is create an Autohotkey shortcut which overflows the sidebar portion and top tabs for presentations and focus (and I can toggle it back and forth with same hotkey). Here's the code you can use. You'll need to adjust things according to your monitor size.
#!f:: ;RESIZE FIREFOX (ONLY X470) Prev_TitleMatchMode := A_TitleMatchMode SetTitleMatchMode, regex WinGetActiveStats,t,w,h,x,y IfWinActive, ahk_exe firefox.exe { ; If ((x=2552) and (y=9) and (w=1936) and (h=1056)) If ((x=2310) and (y=-40) and (w=2178) and (h=1110)) { WinMove,A,,2552,9,1936,1056 WinMaximize } else { WinRestore, A WinMove,A,,2310,-40,2178,1110 ; WinMove,A,,2318,-40,2170,1110 ;WITHOUT SIDEBERY SCROLLBAR } } SetTitleMatchMode %Prev_TitleMatchMode% return
Use https://github.com/MrOtherGuy/firefox-csshacks/blob/master/chrome/autohide_sidebar.css
Looks like this:
@mbnuqw Could you please explain why this issue is attributed with "api limitation"? I got an impression that it's something like that https://www.youtube.com/watch?v=Y_rTY8tTAO8 and it would be nice to have indeed.
Firefox doesn't have any built in way to do this, so you have to use userChrome.css just like in the video you linked to.
Is this what you are describing?
Bugzilla link: https://bugzilla.mozilla.org/show_bug.cgi?id=1408077