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. Quote MeJesse Shanks
    Posted 19 Apr 2003 at 4:48pm #

    Here is a window resize bookmarklet that I use:

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


  2. Quote MeJ2
    Posted 19 Apr 2003 at 11:43pm #

    Thank you. Your bookmarklet is a dream.


  3. Quote Mealnoor
    Posted 16 May 2003 at 3:33pm #

    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. Quote Merakesh zoom
    Posted 27 Dec 2007 at 1:17am #

    Hi

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

    thanks a ton :mrgreen:


  5. Quote Meannehi
    Posted 14 Mar 2008 at 2:25pm #

    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 :roll: . Thanks



Trackback URI | Comments RSS

Leave a Reply

Please abide by the comment policy. Valid HTML includes: <blockquote><p>, <em>, <strong>, <ul>, <ol>, and <a href>. Please use the "Quote Me" functionality to quote comments.