It has always bothered me that hitting the green "maximize" button in Firefox makes the window take up the entire screen, instead of just maximizing it vertically. However, by reading
this how-to and combining it with
this javascript from the Mozilla documentation, I found a work-around:
- Open the Bookmarks manager.
- Create a new bookmark on your bookmarks bar with the Name set to resize and the Location set to this string:
javascript:self.moveTo(0,0);self.resizeTo(window.innerWidth+window.scrollMaxX,screen.availHeight);
There you go -- you're done! The bookmark should be in your bookmarks bar, so you can just click on the bookmark and it will resize your window to its maximum vertical size.