Resizer adds a single button to your Safari toolbar that will resize the current browser window. The extension has 10 user configurable window settings (that can be named and enabled/disabled) and clicking the toolbar button will cycle through them in order. You can also select any of your enabled settings directly from the contextual menu.
Why? Using a bookmarklet to resize a Safari browser window with more than one tab doesn't seem to work but a Safari extension can solve this problem. If you're like me then you've probably installed a bunch of Safari extensions and now have several new toolbar buttons. I wanted to keep the clutter to a minimum with just a single additional toolbar button to switch between a number of window sizes.
Note: the extension has been tested and is known to work in Safari 5.01 on OS X 10.5 Leopard (PowerPC) & 10.6 Snow Leopard (Intel) — it does not work in Safari 5.01 on Win XP (no idea why) but let me know if you find otherwise. Resizer is freeware — you can do whatever you like with it but a hat tip in this direction would be appreciated.
Double-click the extension file in your Download folder.
Click "Install" when prompted.
Open Safari preferences.
Click on "Extensions" in the toolbar.
Click on "Resizer" in the left column.
Enter your preferred window settings...
The contextual menu can be enabled/disabled via a checkbox.
Each setting can be enabled/disabled for the toolbar button and/or the contextual menu separately via a checkbox.
Each setting can be given a name — this will be used in the contextual menu.
The offset values form the XY co-ordinate of the top left corner of the browser window — this is where your window will be moved to and the values should be entered in pixels.
You can optionally use "centre" (or "center" if you feel that way inclined) in the offsets to centre the window horizontally and/or vertically.
You can also use "half" in the offset settings to move the window to the bottom or right half of the screen.
Window width and height values are also specified in pixels.
You can optionally enter "max" in the width and height settings to have Safari use all the available screen width or height. When using the "max" setting the left/right offsets will be equal, as will the top/bottom offsets.
Width and height settings can also be set to "half" and the window will be resized to half the available space in each direction.
The default settings provide examples of what can be achieved using the above settings.
Go back to your browser window, click on the new toolbar button or right-click on web page and select one of your settings from the contextual menu to watch your browser cycle through the window settings or resize immediately to your preferred size. Smart!
Added an option to enable/disable the contextual menu.
Added options to enable settings for the toolbar button and the contextual menu separately - settings can be in enabled/disabled in either or both at the same time.
Added new "centre" (or "center") property for top and left offsets. You can now easily centre the window horizontally and/or vertically.
Added new "half" property for width and height settings. You can now easily resize the window to half the available vertical and/or horizontal screen width.
Added new "half" property for top and left offsets. You can now easily move the browser window to the bottom or right half of the screen.
Altered the default settings to demonstrate the new options.