Matt Langtree

Browser Resize Bookmark in Safari

If you have made the switch from Firefox to Safari for web development (or perhaps you are looking to thoroughly test your website in Safari), and are longing for a way to quickly change browser size, try the following tip:

Open the Safari Bookmark manager (using option + command + b ) and add the following bookmark to the Bookmarks Bar.

To resize the browser window to 1024x768:
Bookmark: 1024x768 Address:

javascript:self.moveTo(0,0);self.resizeTo(1024,768);

To resize the browser window to Fill the Screen:
Bookmark: Fullscreen Address:

 javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeig ht);