Matt Langtree

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);
 

No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...