Browser Resize Bookmark in Safari
by matt on Aug.07, 2008, under Mac OS X Hints, Rantings
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 1024×768:
Bookmark: 1024×768
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.availHeight);

