Subscribe to
Posts
Comments
NSLog(); Header Image

Safari Window Sizing

Annoyed that Safari sometimes forgets your preferred window size? Here's an AppleScript (great for ~/Library/Scripts/Applications/Safari) and a bookmarklet that will resize your browser windows for you.

tell application "Safari"
    set myJS to "self.moveTo(8,28);self.resizeTo(1024,900);"
    repeat with thisWin in every document
        do JavaScript myJS in thisWin
    end repeat
end tell

Or, if you'd like a bookmarklet, copy the URL of this bookmarklet and add it to your bookmarks (probably in the bookmarks bar).

Edit as you see fit, of course.

5 Responses to "Safari Window Sizing"

  1. Here is a window resize bookmarklet that I use:

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

  2. Thank you. Your bookmarklet is a dream.

  3. I am trying to get info about safari to view on full scrreen but failed

    hope you might have some suggetions

    appreciate your reply

  4. Hi

    Thanks for the solution. its really working like a rocket. awesome!!!!!!!

    thanks a ton :mrgreen:

  5. I would also like to be able to make the Safari window full size but am a new user and not sure where to place the bookmarklet recommended above 🙄 . Thanks