Resizer adds a single button to your Safari toolbar that will enable you to resize your browser window easily. 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. Alternatively the toolbar button can be used to show/hide the Resizer Bar giving easy access to your window settings. You can also select any of your enabled settings directly from the contextual menu or via keyboard shortcuts using the option key (⌥1 through ⌥0).
Why? Using a bookmarklet to resize a Safari browser window with more than one tab doesn't seem to work very well 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 toolbar button that can switch between a number of window sizes.
Note: the extension has been tested and is known to work in Safari 5.03 on OS X 10.5 Leopard (PowerPC) & 10.6 Snow Leopard (Intel) — it does not work in Safari on Windows (no idea why) but let me know if you find otherwise. Resizer is freeware — you can do whatever you like with it but a link back 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 toolbar button can be configured to cycle through your enabled window settings or show/hide the Resizer Bar.
The contextual menu can be enabled/disabled via a checkbox.
Keyboard shortcuts can be enabled/disabled via a checkbox. To switch between settings via the keyboard use the option key (⌥) and one of the number keys (⌥1 through ⌥0). These key combinations are usually used for special characters — Resizer knows this and will not invoke any settings while a form text input field has focus.
Each of the 10 settings can be enabled/disabled separately for the toolbar button and/or the contextual menu via a checkbox.
Each setting can be given a name — this will be used in the contextual menu and in the Resizer Bar buttons.
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 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, hit a keyboard shortcut 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 buttons for each setting to the Resizer Bar.
Added option to configure the toolbar button - it can either cycle through your enabled window settings or show/hide the Resizer Bar (default).
Added option to automatically close the Resizer Bar after clicking one of the buttons (off by default).
Added keyboard shortcuts for each setting — hit Option-1 (⌥1 for setting 1) through Option-0 (⌥0 for setting 10) to resize your window via the keyboard (thanks go to Serge Sander for showing me how). Note: you may need to restart Safari before this will work.
Added option to enable/disable keyboard shortcuts (on by default).
Changed some of the default settings.
Removed the special characters acting as mini icons in each setting name.
Fixed the update manifest so automatic updating should actually work now.