Safari window positioning...a hint.

Posted:
in Mac Software edited January 2014
Put a bookmark in the very left hand corner of your bookmark bar whose address is:



javascript:moveTo(180,0);window.resizeTo(800,scree n.availHeight-20)



(you can alter the co-ordinates, of course, if you wish)



--this will reposition any stray windows when clicked.

Comments

  • Reply 1 of 7
    GENIUS!
  • Reply 2 of 7
    You can also use FullScreenSafari.

    <a href="http://homepage.mac.com/castiglione/software.html"; target="_blank">http://homepage.mac.com/castiglione/software.html</a>;

    You need to have unsanities Application Enhancer installed, but I've found it too be very useful.
  • Reply 3 of 7
    kfakfa Posts: 5member
    I'm using this too (which I learned about via the apple discussion boards).



    If you have a 17-inch LCD monitor (resolution 1280x1024) and you want the Safari window to fill about 90 percent of the width of the screen (which is what I normally use) try this as a bookmark:



    javascript:moveTo(40,0);window.resizeTo(1200,scree n.availHeight-1)



    It works perfectly.



    kfa
  • Reply 4 of 7
    Great tips, guys.



    I tried setting that to my Home Page, so simply clicking the Home icon would return the window to its "home" position (which makes sense to me, but YMMV). I got:



    Cannot run the script moveTo(86,32);window.resizeTo(854,screen.availHeig ht-21) because Safari does not allow JavaScript to be used in this way.



    Any ideas? Any way around it? Anyways, thanks for the info! This browser is incredible!



    - Johnny Dangerously



    [EDIT]: Removed mistypes.



    [ 01-18-2003: Message edited by: Johnny Dangerously ]</p>
  • Reply 5 of 7
    kfakfa Posts: 5member
    To Johnny:



    I'm not sure why it wouldn't work as a homepage, but it works fine in the "Bookmarks Bar." Just place it there named "resize" or whatever you want to call it and you can easily/quickly click it any time.



    It works there.



    kfa
  • Reply 6 of 7
    emaneman Posts: 7,204member
    [quote]Originally posted by ericj551:

    <strong>You can also use FullScreenSafari.

    <a href="http://homepage.mac.com/castiglione/software.html"; target="_blank">http://homepage.mac.com/castiglione/software.html</a>;

    You need to have unsanities Application Enhancer installed, but I've found it too be very useful.</strong><hr></blockquote>

    That works great.
  • Reply 7 of 7
    [quote]Originally posted by kfa:

    <strong>I'm not sure why it wouldn't work as a homepage, but it works fine in the "Bookmarks Bar." Just place it there named "resize" or whatever you want to call it and you can easily/quickly click it any time.</strong><hr></blockquote>



    KFA:



    I know I can do that, and I am right now. I just found it curious that you couldn't have JS in the Home button.



    Hrmm...



    - Johnny Dangerously
Sign In or Register to comment.